File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11// bump-utils.mjs for finding/bumping/hashing etc.
22// Source: https://github.com/adamlui/ai-web-extensions/blob/main/utils/bump/bump-utils.mjs
3- // Latest miniified release : https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.min.mjs
3+ // Latest minified build : https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.min.mjs
44
55import fs from 'fs' // to read/write files
66import ssri from 'ssri' // to generate SHA-256 hashes
Original file line number Diff line number Diff line change 3535 let bump
3636 if ( config . devMode ) // bypass cache for latest bump-utils.mjs
3737 bump = await import ( './bump-utils.mjs' )
38- else { // import sparsely updated remote bump-utils.min.mjs
38+ else { // import remote bump-utils.min.mjs updated every ~12h
3939 fs . mkdirSync ( path . dirname ( cachePaths . bumpUtils ) , { recursive : true } )
4040 fs . writeFileSync ( cachePaths . bumpUtils , ( await ( await fetch (
4141 'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.min.mjs' ) ) . text ( ) ) )
Original file line number Diff line number Diff line change 2828 let bump
2929 if ( config . devMode ) // bypass cache for latest bump-utils.mjs
3030 bump = await import ( './bump-utils.mjs' )
31- else { // import sparsely updated remote bump-utils.min.mjs
31+ else { // import remote bump-utils.min.mjs updated every ~12h
3232 fs . mkdirSync ( path . dirname ( cachePaths . bumpUtils ) , { recursive : true } )
3333 fs . writeFileSync ( cachePaths . bumpUtils , ( await ( await fetch (
3434 'https://cdn.jsdelivr.net/gh/adamlui/ai-web-extensions@latest/utils/bump/bump-utils.min.mjs' ) ) . text ( ) ) )
You can’t perform that action at this time.
0 commit comments