File tree Expand file tree Collapse file tree 18 files changed +104
-104
lines changed
chatgpt-auto-continue/utils/bump
chatgpt-infinity/utils/bump
chatgpt-omnibox/utils/bump
chatgpt-widescreen/utils/bump
deepseek-omnibox/utils/bump
perplexity-omnibox/utils/bump
you.com-omnibox/utils/bump Expand file tree Collapse file tree 18 files changed +104
-104
lines changed Original file line number Diff line number Diff line change 1010 path = require ( 'path' ) // to manipulate paths
1111
1212 // Init CACHE vars
13- const cache = { mode : process . argv . includes ( '--cache' ) , paths : { root : '.cache/' } }
14- cache . paths . bumpUtils = path . join ( __dirname , `${ cache . paths . root } bump-utils.min.mjs` )
13+ const cachePaths = { root : '.cache/' }
14+ cachePaths . bumpUtils = path . join ( __dirname , `${ cachePaths . root } bump-utils.min.mjs` )
1515
1616 // Import BUMP UTILS
17- fs . mkdirSync ( path . dirname ( cache . paths . bumpUtils ) , { recursive : true } )
18- fs . writeFileSync ( cache . paths . bumpUtils , ( await ( await fetch (
17+ fs . mkdirSync ( path . dirname ( cachePaths . bumpUtils ) , { recursive : true } )
18+ fs . writeFileSync ( cachePaths . bumpUtils , ( await ( await fetch (
1919 'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.min.mjs' ) ) . text ( )
2020 ) . replace ( / ^ \/ \* \* [ \s \S ] * ?\* \/ \s * / , '' ) ) // strip JSD header minification comment
21- const bump = await import ( `file://${ cache . paths . bumpUtils } ` ) ; fs . unlinkSync ( cache . paths . bumpUtils )
21+ const bump = await import ( `file://${ cachePaths . bumpUtils } ` ) ; fs . unlinkSync ( cachePaths . bumpUtils )
2222
2323 // Init REPO context
2424 const repoName = ( ( ) => {
Original file line number Diff line number Diff line change 1313 { execSync, spawnSync } = require ( 'child_process' )
1414
1515 // Init CACHE vars
16- const cache = { paths : { root : '.cache/' } }
17- cache . paths . bumpUtils = path . join ( __dirname , `${ cache . paths . root } bump-utils.min.mjs` )
16+ const cachePaths = { root : '.cache/' }
17+ cachePaths . bumpUtils = path . join ( __dirname , `${ cachePaths . root } bump-utils.min.mjs` )
1818
1919 // Import BUMP UTILS
20- fs . mkdirSync ( path . dirname ( cache . paths . bumpUtils ) , { recursive : true } )
21- fs . writeFileSync ( cache . paths . bumpUtils , ( await ( await fetch (
20+ fs . mkdirSync ( path . dirname ( cachePaths . bumpUtils ) , { recursive : true } )
21+ fs . writeFileSync ( cachePaths . bumpUtils , ( await ( await fetch (
2222 'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.min.mjs' ) ) . text ( )
2323 ) . replace ( / ^ \/ \* \* [ \s \S ] * ?\* \/ \s * / , '' ) ) // strip JSD header minification comment
24- const bump = await import ( `file://${ cache . paths . bumpUtils } ` ) ; fs . unlinkSync ( cache . paths . bumpUtils )
24+ const bump = await import ( `file://${ cachePaths . bumpUtils } ` ) ; fs . unlinkSync ( cachePaths . bumpUtils )
2525
2626 // Parse ARGS
2727 const args = process . argv . slice ( 2 ) ,
Original file line number Diff line number Diff line change 1010 path = require ( 'path' ) // to manipulate paths
1111
1212 // Init CACHE vars
13- const cache = { mode : process . argv . includes ( '--cache' ) , paths : { root : '.cache/' } }
14- cache . paths . bumpUtils = path . join ( __dirname , `${ cache . paths . root } bump-utils.min.mjs` )
13+ const cachePaths = { root : '.cache/' }
14+ cachePaths . bumpUtils = path . join ( __dirname , `${ cachePaths . root } bump-utils.min.mjs` )
1515
1616 // Import BUMP UTILS
17- fs . mkdirSync ( path . dirname ( cache . paths . bumpUtils ) , { recursive : true } )
18- fs . writeFileSync ( cache . paths . bumpUtils , ( await ( await fetch (
17+ fs . mkdirSync ( path . dirname ( cachePaths . bumpUtils ) , { recursive : true } )
18+ fs . writeFileSync ( cachePaths . bumpUtils , ( await ( await fetch (
1919 'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.min.mjs' ) ) . text ( )
2020 ) . replace ( / ^ \/ \* \* [ \s \S ] * ?\* \/ \s * / , '' ) ) // strip JSD header minification comment
21- const bump = await import ( `file://${ cache . paths . bumpUtils } ` ) ; fs . unlinkSync ( cache . paths . bumpUtils )
21+ const bump = await import ( `file://${ cachePaths . bumpUtils } ` ) ; fs . unlinkSync ( cachePaths . bumpUtils )
2222
2323 // Init REPO context
2424 const repoName = ( ( ) => {
Original file line number Diff line number Diff line change 1313 { execSync, spawnSync } = require ( 'child_process' )
1414
1515 // Init CACHE vars
16- const cache = { paths : { root : '.cache/' } }
17- cache . paths . bumpUtils = path . join ( __dirname , `${ cache . paths . root } bump-utils.min.mjs` )
16+ const cachePaths = { root : '.cache/' }
17+ cachePaths . bumpUtils = path . join ( __dirname , `${ cachePaths . root } bump-utils.min.mjs` )
1818
1919 // Import BUMP UTILS
20- fs . mkdirSync ( path . dirname ( cache . paths . bumpUtils ) , { recursive : true } )
21- fs . writeFileSync ( cache . paths . bumpUtils , ( await ( await fetch (
20+ fs . mkdirSync ( path . dirname ( cachePaths . bumpUtils ) , { recursive : true } )
21+ fs . writeFileSync ( cachePaths . bumpUtils , ( await ( await fetch (
2222 'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.min.mjs' ) ) . text ( )
2323 ) . replace ( / ^ \/ \* \* [ \s \S ] * ?\* \/ \s * / , '' ) ) // strip JSD header minification comment
24- const bump = await import ( `file://${ cache . paths . bumpUtils } ` ) ; fs . unlinkSync ( cache . paths . bumpUtils )
24+ const bump = await import ( `file://${ cachePaths . bumpUtils } ` ) ; fs . unlinkSync ( cachePaths . bumpUtils )
2525
2626 // Parse ARGS
2727 const args = process . argv . slice ( 2 ) ,
Original file line number Diff line number Diff line change 1010 path = require ( 'path' ) // to manipulate paths
1111
1212 // Init CACHE vars
13- const cache = { mode : process . argv . includes ( '--cache' ) , paths : { root : '.cache/' } }
14- cache . paths . bumpUtils = path . join ( __dirname , `${ cache . paths . root } bump-utils.min.mjs` )
13+ const cachePaths = { root : '.cache/' }
14+ cachePaths . bumpUtils = path . join ( __dirname , `${ cachePaths . root } bump-utils.min.mjs` )
1515
1616 // Import BUMP UTILS
17- fs . mkdirSync ( path . dirname ( cache . paths . bumpUtils ) , { recursive : true } )
18- fs . writeFileSync ( cache . paths . bumpUtils , ( await ( await fetch (
17+ fs . mkdirSync ( path . dirname ( cachePaths . bumpUtils ) , { recursive : true } )
18+ fs . writeFileSync ( cachePaths . bumpUtils , ( await ( await fetch (
1919 'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.min.mjs' ) ) . text ( )
2020 ) . replace ( / ^ \/ \* \* [ \s \S ] * ?\* \/ \s * / , '' ) ) // strip JSD header minification comment
21- const bump = await import ( `file://${ cache . paths . bumpUtils } ` ) ; fs . unlinkSync ( cache . paths . bumpUtils )
21+ const bump = await import ( `file://${ cachePaths . bumpUtils } ` ) ; fs . unlinkSync ( cachePaths . bumpUtils )
2222
2323 // Init REPO context
2424 const repoName = ( ( ) => {
Original file line number Diff line number Diff line change 1313 { execSync, spawnSync } = require ( 'child_process' )
1414
1515 // Init CACHE vars
16- const cache = { paths : { root : '.cache/' } }
17- cache . paths . bumpUtils = path . join ( __dirname , `${ cache . paths . root } bump-utils.min.mjs` )
16+ const cachePaths = { root : '.cache/' }
17+ cachePaths . bumpUtils = path . join ( __dirname , `${ cachePaths . root } bump-utils.min.mjs` )
1818
1919 // Import BUMP UTILS
20- fs . mkdirSync ( path . dirname ( cache . paths . bumpUtils ) , { recursive : true } )
21- fs . writeFileSync ( cache . paths . bumpUtils , ( await ( await fetch (
20+ fs . mkdirSync ( path . dirname ( cachePaths . bumpUtils ) , { recursive : true } )
21+ fs . writeFileSync ( cachePaths . bumpUtils , ( await ( await fetch (
2222 'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.min.mjs' ) ) . text ( )
2323 ) . replace ( / ^ \/ \* \* [ \s \S ] * ?\* \/ \s * / , '' ) ) // strip JSD header minification comment
24- const bump = await import ( `file://${ cache . paths . bumpUtils } ` ) ; fs . unlinkSync ( cache . paths . bumpUtils )
24+ const bump = await import ( `file://${ cachePaths . bumpUtils } ` ) ; fs . unlinkSync ( cachePaths . bumpUtils )
2525
2626 // Parse ARGS
2727 const args = process . argv . slice ( 2 ) ,
Original file line number Diff line number Diff line change 1010 path = require ( 'path' ) // to manipulate paths
1111
1212 // Init CACHE vars
13- const cache = { mode : process . argv . includes ( '--cache' ) , paths : { root : '.cache/' } }
14- cache . paths . bumpUtils = path . join ( __dirname , `${ cache . paths . root } bump-utils.min.mjs` )
13+ const cachePaths = { root : '.cache/' }
14+ cachePaths . bumpUtils = path . join ( __dirname , `${ cachePaths . root } bump-utils.min.mjs` )
1515
1616 // Import BUMP UTILS
17- fs . mkdirSync ( path . dirname ( cache . paths . bumpUtils ) , { recursive : true } )
18- fs . writeFileSync ( cache . paths . bumpUtils , ( await ( await fetch (
17+ fs . mkdirSync ( path . dirname ( cachePaths . bumpUtils ) , { recursive : true } )
18+ fs . writeFileSync ( cachePaths . bumpUtils , ( await ( await fetch (
1919 'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.min.mjs' ) ) . text ( )
2020 ) . replace ( / ^ \/ \* \* [ \s \S ] * ?\* \/ \s * / , '' ) ) // strip JSD header minification comment
21- const bump = await import ( `file://${ cache . paths . bumpUtils } ` ) ; fs . unlinkSync ( cache . paths . bumpUtils )
21+ const bump = await import ( `file://${ cachePaths . bumpUtils } ` ) ; fs . unlinkSync ( cachePaths . bumpUtils )
2222
2323 // Init REPO context
2424 const repoName = ( ( ) => {
Original file line number Diff line number Diff line change 1313 { execSync, spawnSync } = require ( 'child_process' )
1414
1515 // Init CACHE vars
16- const cache = { paths : { root : '.cache/' } }
17- cache . paths . bumpUtils = path . join ( __dirname , `${ cache . paths . root } bump-utils.min.mjs` )
16+ const cachePaths = { root : '.cache/' }
17+ cachePaths . bumpUtils = path . join ( __dirname , `${ cachePaths . root } bump-utils.min.mjs` )
1818
1919 // Import BUMP UTILS
20- fs . mkdirSync ( path . dirname ( cache . paths . bumpUtils ) , { recursive : true } )
21- fs . writeFileSync ( cache . paths . bumpUtils , ( await ( await fetch (
20+ fs . mkdirSync ( path . dirname ( cachePaths . bumpUtils ) , { recursive : true } )
21+ fs . writeFileSync ( cachePaths . bumpUtils , ( await ( await fetch (
2222 'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.min.mjs' ) ) . text ( )
2323 ) . replace ( / ^ \/ \* \* [ \s \S ] * ?\* \/ \s * / , '' ) ) // strip JSD header minification comment
24- const bump = await import ( `file://${ cache . paths . bumpUtils } ` ) ; fs . unlinkSync ( cache . paths . bumpUtils )
24+ const bump = await import ( `file://${ cachePaths . bumpUtils } ` ) ; fs . unlinkSync ( cachePaths . bumpUtils )
2525
2626 // Parse ARGS
2727 const args = process . argv . slice ( 2 ) ,
Original file line number Diff line number Diff line change 1313 { execSync, spawnSync } = require ( 'child_process' )
1414
1515 // Init CACHE vars
16- const cache = { paths : { root : '.cache/' } }
17- cache . paths . bumpUtils = path . join ( __dirname , `${ cache . paths . root } bump-utils.min.mjs` )
16+ const cachePaths = { root : '.cache/' }
17+ cachePaths . bumpUtils = path . join ( __dirname , `${ cachePaths . root } bump-utils.min.mjs` )
1818
1919 // Import BUMP UTILS
20- fs . mkdirSync ( path . dirname ( cache . paths . bumpUtils ) , { recursive : true } )
21- fs . writeFileSync ( cache . paths . bumpUtils , ( await ( await fetch (
20+ fs . mkdirSync ( path . dirname ( cachePaths . bumpUtils ) , { recursive : true } )
21+ fs . writeFileSync ( cachePaths . bumpUtils , ( await ( await fetch (
2222 'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.min.mjs' ) ) . text ( )
2323 ) . replace ( / ^ \/ \* \* [ \s \S ] * ?\* \/ \s * / , '' ) ) // strip JSD header minification comment
24- const bump = await import ( `file://${ cache . paths . bumpUtils } ` ) ; fs . unlinkSync ( cache . paths . bumpUtils )
24+ const bump = await import ( `file://${ cachePaths . bumpUtils } ` ) ; fs . unlinkSync ( cachePaths . bumpUtils )
2525
2626 // Parse ARGS
2727 const args = process . argv . slice ( 2 ) ,
Original file line number Diff line number Diff line change 1010 path = require ( 'path' ) // to manipulate paths
1111
1212 // Init CACHE vars
13- const cache = { mode : process . argv . includes ( '--cache' ) , paths : { root : '.cache/' } }
14- cache . paths . bumpUtils = path . join ( __dirname , `${ cache . paths . root } bump-utils.min.mjs` )
13+ const cachePaths = { root : '.cache/' }
14+ cachePaths . bumpUtils = path . join ( __dirname , `${ cachePaths . root } bump-utils.min.mjs` )
1515
1616 // Import BUMP UTILS
17- fs . mkdirSync ( path . dirname ( cache . paths . bumpUtils ) , { recursive : true } )
18- fs . writeFileSync ( cache . paths . bumpUtils , ( await ( await fetch (
17+ fs . mkdirSync ( path . dirname ( cachePaths . bumpUtils ) , { recursive : true } )
18+ fs . writeFileSync ( cachePaths . bumpUtils , ( await ( await fetch (
1919 'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.min.mjs' ) ) . text ( )
2020 ) . replace ( / ^ \/ \* \* [ \s \S ] * ?\* \/ \s * / , '' ) ) // strip JSD header minification comment
21- const bump = await import ( `file://${ cache . paths . bumpUtils } ` ) ; fs . unlinkSync ( cache . paths . bumpUtils )
21+ const bump = await import ( `file://${ cachePaths . bumpUtils } ` ) ; fs . unlinkSync ( cachePaths . bumpUtils )
2222
2323 // Init REPO context
2424 const repoName = 'chatgpt-widescreen' ,
You can’t perform that action at this time.
0 commit comments