Refactoring day1
This commit is contained in:
4
node_modules/update-notifier/index.js
generated
vendored
4
node_modules/update-notifier/index.js
generated
vendored
@@ -63,7 +63,7 @@ class UpdateNotifier {
|
||||
chalk().cyan(format(' sudo chown -R $USER:$(id -gn $USER) %s ', xdgBasedir().config));
|
||||
|
||||
process.on('exit', () => {
|
||||
console.error(boxen()(message, {align: 'center'}));
|
||||
console.error('\n' + boxen()(message, {align: 'center'}));
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -151,7 +151,7 @@ class UpdateNotifier {
|
||||
borderStyle: 'round'
|
||||
};
|
||||
|
||||
const message = boxen()(
|
||||
const message = '\n' + boxen()(
|
||||
pupa()(template, {
|
||||
packageName: this.packageName,
|
||||
currentVersion: this.update.current,
|
||||
|
||||
10
node_modules/update-notifier/package.json
generated
vendored
10
node_modules/update-notifier/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "update-notifier",
|
||||
"version": "4.1.1",
|
||||
"version": "4.1.0",
|
||||
"description": "Update notifications for your CLI app",
|
||||
"license": "BSD-2-Clause",
|
||||
"repository": "yeoman/update-notifier",
|
||||
@@ -54,11 +54,15 @@
|
||||
"fixture-stdout": "^0.2.1",
|
||||
"mock-require": "^3.0.3",
|
||||
"strip-ansi": "^6.0.0",
|
||||
"xo": "^0.25.0"
|
||||
"xo": "^0.26.1"
|
||||
},
|
||||
"xo": {
|
||||
"rules": {
|
||||
"prefer-object-spread": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
,"_resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.0.tgz"
|
||||
,"_integrity": "sha512-w3doE1qtI0/ZmgeoDoARmI5fjDoT93IfKgEGqm26dGUOh8oNpaSTsGNdYRN/SjOuo10jcJGwkEL3mroKzktkew=="
|
||||
,"_from": "update-notifier@4.1.0"
|
||||
}
|
||||
4
node_modules/update-notifier/readme.md
generated
vendored
4
node_modules/update-notifier/readme.md
generated
vendored
@@ -203,11 +203,11 @@ The idea for this module came from the desire to apply the browser update strate
|
||||
There are a bunch projects using it:
|
||||
|
||||
- [npm](https://github.com/npm/npm) - Package manager for JavaScript
|
||||
- [Yeoman](https://yeoman.io) - Modern workflows for modern webapps
|
||||
- [Yeoman](http://yeoman.io) - Modern workflows for modern webapps
|
||||
- [AVA](https://ava.li) - Simple concurrent test runner
|
||||
- [XO](https://github.com/xojs/xo) - JavaScript happiness style linter
|
||||
- [Pageres](https://github.com/sindresorhus/pageres) - Capture website screenshots
|
||||
- [Node GH](https://github.com/node-gh/gh) - GitHub command line tool
|
||||
- [Node GH](http://nodegh.io) - GitHub command line tool
|
||||
|
||||
[And 2700+ more…](https://www.npmjs.org/browse/depended/update-notifier)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user