File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
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 }
You can’t perform that action at this time.
0 commit comments