Skip to content

Commit 68f4dd8

Browse files
committed
Updated method refs
1 parent ca17278 commit 68f4dd8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

utils/bump/resources.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
userJSfiles = JSON.parse(fs.readFileSync(cache.filePath, 'utf-8'))
4242
console.log(userJSfiles) ; console.log('')
4343
}
44-
} else { // use findUserJS()
44+
} else { // use bump.findUserJS()
4545
userJSfiles = await bump.findUserJS() ; console.log('') }
4646

4747
// Collect resources
@@ -92,7 +92,7 @@
9292
if (!await bump.isValidResource(updatedURL)) continue // to next resource
9393

9494
// Generate/compare/update SRI hash
95-
console.log(`${ !log.endedWithLineBreak ? '\n' : '' }Generating SRI (SHA-256) hash for ${resName}...`)
95+
console.log(`${ !bump.log.endedWithLineBreak ? '\n' : '' }Generating SRI (SHA-256) hash for ${resName}...`)
9696
const newSRIhash = await bump.generateSRIhash(updatedURL)
9797
if (regEx.hash.sri.exec(resURL)?.[0] == newSRIhash) { // SRI hash didn't change
9898
console.log(`${resName} already up-to-date!`) ; bump.log.endedWithLineBreak = false
@@ -108,7 +108,7 @@
108108
bump.log.success(`${resName} bumped!\n`) ; urlsUpdatedCnt++ ; fileUpdated = true
109109
}
110110
if (fileUpdated) {
111-
console.log(`${ !log.endedWithLineBreak ? '\n' : '' }Bumping userscript version...`)
111+
console.log(`${ !bump.log.endedWithLineBreak ? '\n' : '' }Bumping userscript version...`)
112112
bump.bumpUserJSver(userJSfilePath) ; filesUpdatedCnt++
113113
}
114114
}

0 commit comments

Comments
 (0)