File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -328,12 +328,16 @@ module.exports = function run(args, rawArgs) {
328328 pkg,
329329 updateCheckInterval : 1000 * 60 * 60 * 24 * 7 ,
330330 } ) ;
331-
331+
332+ // Checks for update on first run.
333+ // Set lastUpdateCheck to 0 to spawn the check update process as notifier sets this to Date.now() for preventing
334+ // the check untill one interval period. It runs once.
332335 if ( ! notifier . disabled && Date . now ( ) - notifier . config . get ( 'lastUpdateCheck' ) < 50 ) {
333336 notifier . config . set ( 'lastUpdateCheck' , 0 ) ;
334337 notifier . check ( ) ;
335338 }
336339
340+ // Set the config update as notifier clears this after reading.
337341 if ( notifier . update && notifier . update . current !== notifier . update . latest ) {
338342 notifier . config . set ( 'update' , notifier . update ) ;
339343 notifier . notify ( { isGlobal : true } ) ;
You can’t perform that action at this time.
0 commit comments