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) {
328
328
pkg,
329
329
updateCheckInterval : 1000 * 60 * 60 * 24 * 7 ,
330
330
} ) ;
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.
332
335
if ( ! notifier . disabled && Date . now ( ) - notifier . config . get ( 'lastUpdateCheck' ) < 50 ) {
333
336
notifier . config . set ( 'lastUpdateCheck' , 0 ) ;
334
337
notifier . check ( ) ;
335
338
}
336
339
340
+ // Set the config update as notifier clears this after reading.
337
341
if ( notifier . update && notifier . update . current !== notifier . update . latest ) {
338
342
notifier . config . set ( 'update' , notifier . update ) ;
339
343
notifier . notify ( { isGlobal : true } ) ;
You can’t perform that action at this time.
0 commit comments