mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
# add dist
This commit is contained in:
20
ng2-components/ng2-alfresco-documentslist/dist/node_modules/update-notifier/check.js
generated
vendored
Normal file
20
ng2-components/ng2-alfresco-documentslist/dist/node_modules/update-notifier/check.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
var updateNotifier = require('./');
|
||||
var options = JSON.parse(process.argv[2]);
|
||||
|
||||
updateNotifier = new updateNotifier.UpdateNotifier(options);
|
||||
|
||||
updateNotifier.checkNpm().then(function (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 nodejs docs)
|
||||
process.exit();
|
||||
}).catch(function () {
|
||||
process.exit(1);
|
||||
});
|
Reference in New Issue
Block a user