File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 path = require ( 'path' ) , // to manipulate paths
1313 bumpUtilsFilePath = path . join ( __dirname , '.cache/bump-utils.mjs' )
1414 fs . mkdirSync ( path . dirname ( bumpUtilsFilePath ) , { recursive : true } )
15- fs . writeFileSync ( bumpUtilsFilePath , Buffer . from ( await ( await fetch (
16- 'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.mjs' ) ) . arrayBuffer ( ) ) )
17- const bump = await import ( require ( 'url' ) . pathToFileURL ( bumpUtilsFilePath ) )
15+ fs . writeFileSync ( bumpUtilsFilePath , ( await ( await fetch (
16+ 'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.min.mjs' ) ) . text ( )
17+ ) . replace ( / ^ \/ \* \* [ \s \S ] * ?\* \/ \s * / , '' ) ) // strip JSD header minification comment
18+ const bump = await import ( 'file://' + bumpUtilsFilePath )
1819
1920 // Init CACHE vars
2021 const cache = { mode : process . argv . includes ( '--cache' ) , filePath : path . join ( __dirname , '.cache/userJSpaths.json' ) }
You can’t perform that action at this time.
0 commit comments