From 81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 Mon Sep 17 00:00:00 2001 From: Piotr Russ Date: Wed, 18 Nov 2020 23:26:45 +0100 Subject: rm node_modules --- node_modules/update-notifier/check.js | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 node_modules/update-notifier/check.js (limited to 'node_modules/update-notifier/check.js') diff --git a/node_modules/update-notifier/check.js b/node_modules/update-notifier/check.js deleted file mode 100644 index 521f84a..0000000 --- a/node_modules/update-notifier/check.js +++ /dev/null @@ -1,22 +0,0 @@ -/* eslint-disable unicorn/no-process-exit */ -'use strict'; -let updateNotifier = require('.'); - -const options = JSON.parse(process.argv[2]); - -updateNotifier = new updateNotifier.UpdateNotifier(options); - -updateNotifier.checkNpm().then(update => { - // Only update the last update check time on success - updateNotifier.config.set('lastUpdateCheck', Date.now()); - - if (update.type && update.type !== 'latest') { - updateNotifier.config.set('update', update); - } - - // Call process exit explicitly to terminate the child process - // Otherwise the child process will run forever, according to the Node.js docs - process.exit(); -}).catch(() => { - process.exit(1); -}); -- cgit v1.2.3