File tree Expand file tree Collapse file tree 8 files changed +8
-0
lines changed
chatgpt-auto-continue/utils/bump
chatgpt-infinity/utils/bump
chatgpt-widescreen/utils/bump Expand file tree Collapse file tree 8 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 9
9
const fs = require ( 'fs' ) , // to read/write files
10
10
path = require ( 'path' ) , // to manipulate paths
11
11
bumpUtilsFilePath = path . join ( __dirname , '.cache/bump-utils.mjs' )
12
+ fs . mkdirSync ( path . dirname ( bumpUtilsFilePath ) , { recursive : true } )
12
13
fs . writeFileSync ( bumpUtilsFilePath , Buffer . from ( await ( await fetch (
13
14
'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.mjs' ) ) . arrayBuffer ( ) ) )
14
15
const bump = await import ( require ( 'url' ) . pathToFileURL ( bumpUtilsFilePath ) )
Original file line number Diff line number Diff line change 9
9
const fs = require ( 'fs' ) , // to read/write files
10
10
path = require ( 'path' ) , // to manipulate paths
11
11
bumpUtilsFilePath = path . join ( __dirname , '.cache/bump-utils.mjs' )
12
+ fs . mkdirSync ( path . dirname ( bumpUtilsFilePath ) , { recursive : true } )
12
13
fs . writeFileSync ( bumpUtilsFilePath , Buffer . from ( await ( await fetch (
13
14
'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.mjs' ) ) . arrayBuffer ( ) ) )
14
15
const bump = await import ( require ( 'url' ) . pathToFileURL ( bumpUtilsFilePath ) )
Original file line number Diff line number Diff line change 9
9
const fs = require ( 'fs' ) , // to read/write files
10
10
path = require ( 'path' ) , // to manipulate paths
11
11
bumpUtilsFilePath = path . join ( __dirname , '.cache/bump-utils.mjs' )
12
+ fs . mkdirSync ( path . dirname ( bumpUtilsFilePath ) , { recursive : true } )
12
13
fs . writeFileSync ( bumpUtilsFilePath , Buffer . from ( await ( await fetch (
13
14
'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.mjs' ) ) . arrayBuffer ( ) ) )
14
15
const bump = await import ( require ( 'url' ) . pathToFileURL ( bumpUtilsFilePath ) )
Original file line number Diff line number Diff line change 9
9
const fs = require ( 'fs' ) , // to read/write files
10
10
path = require ( 'path' ) , // to manipulate paths
11
11
bumpUtilsFilePath = path . join ( __dirname , '.cache/bump-utils.mjs' )
12
+ fs . mkdirSync ( path . dirname ( bumpUtilsFilePath ) , { recursive : true } )
12
13
fs . writeFileSync ( bumpUtilsFilePath , Buffer . from ( await ( await fetch (
13
14
'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.mjs' ) ) . arrayBuffer ( ) ) )
14
15
const bump = await import ( require ( 'url' ) . pathToFileURL ( bumpUtilsFilePath ) )
Original file line number Diff line number Diff line change 9
9
const fs = require ( 'fs' ) , // to read/write files
10
10
path = require ( 'path' ) , // to manipulate paths
11
11
bumpUtilsFilePath = path . join ( __dirname , '.cache/bump-utils.mjs' )
12
+ fs . mkdirSync ( path . dirname ( bumpUtilsFilePath ) , { recursive : true } )
12
13
fs . writeFileSync ( bumpUtilsFilePath , Buffer . from ( await ( await fetch (
13
14
'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.mjs' ) ) . arrayBuffer ( ) ) )
14
15
const bump = await import ( require ( 'url' ) . pathToFileURL ( bumpUtilsFilePath ) )
Original file line number Diff line number Diff line change 9
9
const fs = require ( 'fs' ) , // to read/write files
10
10
path = require ( 'path' ) , // to manipulate paths
11
11
bumpUtilsFilePath = path . join ( __dirname , '.cache/bump-utils.mjs' )
12
+ fs . mkdirSync ( path . dirname ( bumpUtilsFilePath ) , { recursive : true } )
12
13
fs . writeFileSync ( bumpUtilsFilePath , Buffer . from ( await ( await fetch (
13
14
'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.mjs' ) ) . arrayBuffer ( ) ) )
14
15
const bump = await import ( require ( 'url' ) . pathToFileURL ( bumpUtilsFilePath ) )
Original file line number Diff line number Diff line change 9
9
const fs = require ( 'fs' ) , // to read/write files
10
10
path = require ( 'path' ) , // to manipulate paths
11
11
bumpUtilsFilePath = path . join ( __dirname , '.cache/bump-utils.mjs' )
12
+ fs . mkdirSync ( path . dirname ( bumpUtilsFilePath ) , { recursive : true } )
12
13
fs . writeFileSync ( bumpUtilsFilePath , Buffer . from ( await ( await fetch (
13
14
'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.mjs' ) ) . arrayBuffer ( ) ) )
14
15
const bump = await import ( require ( 'url' ) . pathToFileURL ( bumpUtilsFilePath ) )
Original file line number Diff line number Diff line change 11
11
const fs = require ( 'fs' ) , // to read/write files
12
12
path = require ( 'path' ) , // to manipulate paths
13
13
bumpUtilsFilePath = path . join ( __dirname , '.cache/bump-utils.mjs' )
14
+ fs . mkdirSync ( path . dirname ( bumpUtilsFilePath ) , { recursive : true } )
14
15
fs . writeFileSync ( bumpUtilsFilePath , Buffer . from ( await ( await fetch (
15
16
'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.mjs' ) ) . arrayBuffer ( ) ) )
16
17
const bump = await import ( require ( 'url' ) . pathToFileURL ( bumpUtilsFilePath ) )
You can’t perform that action at this time.
0 commit comments