Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2017-03-10 01:04:36 +0300
committerKat Marchán <kzm@sykosomatic.org>2017-03-10 03:08:28 +0300
commit0682848e39ef0b80db48794b3b71cba846b6a720 (patch)
tree8e74121fd3957078a82dd5e1378fea52a37b306c /node_modules/update-notifier
parentc40a1164b981d4ebf4aa765e51a810db825b7497 (diff)
update-notifier@2.1.0
Diffstat (limited to 'node_modules/update-notifier')
-rw-r--r--node_modules/update-notifier/index.js4
-rw-r--r--node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/index.js2
-rw-r--r--node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/package.json26
-rw-r--r--node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/readme.md10
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/index.js4
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/LICENSE.BSD8
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/LICENSE.MIT30
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/README.md2
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/browser.js2
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/lib/utils.js1
l---------node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/.bin/strip-json-comments1
-rwxr-xr-xnode_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/cli.js41
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/index.js70
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/package.json62
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/readme.md40
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/strip-json-comments.js73
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/package.json28
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/test/ini.js1
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/test/nested-env-vars.js2
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/LICENSE.BSD8
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/LICENSE.MIT30
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/README.md2
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/browser.js2
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/lib/utils.js1
l---------node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/.bin/strip-json-comments1
-rwxr-xr-xnode_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/cli.js41
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/index.js70
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/package.json70
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/readme.md40
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/strip-json-comments.js73
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/package.json30
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/test/ini.js1
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/test/nested-env-vars.js2
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/package.json26
-rw-r--r--node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/readme.md2
-rw-r--r--node_modules/update-notifier/package.json34
-rw-r--r--node_modules/update-notifier/readme.md7
37 files changed, 375 insertions, 472 deletions
diff --git a/node_modules/update-notifier/index.js b/node_modules/update-notifier/index.js
index 95156fdc8..0a11dbf1f 100644
--- a/node_modules/update-notifier/index.js
+++ b/node_modules/update-notifier/index.js
@@ -107,10 +107,10 @@ class UpdateNotifier {
return this;
}
- opts = opts || {};
+ opts = Object.assign({isGlobal: true}, opts);
opts.message = opts.message || 'Update available ' + chalk().dim(this.update.current) + chalk().reset(' → ') +
- chalk().green(this.update.latest) + ' \nRun ' + chalk().cyan('npm i -g ' + this.packageName) + ' to update';
+ chalk().green(this.update.latest) + ' \nRun ' + chalk().cyan('npm i ' + (opts.isGlobal ? '-g ' : '') + this.packageName) + ' to update';
opts.boxenOpts = opts.boxenOpts || {
padding: 1,
diff --git a/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/index.js b/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/index.js
index 7417ef673..59a0e2264 100644
--- a/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/index.js
+++ b/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/index.js
@@ -22,7 +22,7 @@ function getPathSegments(path) {
module.exports = {
get(obj, path, value) {
if (!isObj(obj) || typeof path !== 'string') {
- return obj;
+ return value === undefined ? obj : value;
}
const pathArr = getPathSegments(path);
diff --git a/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/package.json b/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/package.json
index 51ff367bb..f4204a1ad 100644
--- a/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/package.json
+++ b/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/package.json
@@ -10,23 +10,23 @@
"spec": ">=4.1.0 <5.0.0",
"type": "range"
},
- "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/configstore"
+ "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/configstore"
]
],
"_from": "dot-prop@>=4.1.0 <5.0.0",
- "_id": "dot-prop@4.1.0",
+ "_id": "dot-prop@4.1.1",
"_inCache": true,
"_location": "/update-notifier/configstore/dot-prop",
- "_nodeVersion": "7.2.0",
+ "_nodeVersion": "4.6.2",
"_npmOperationalInternal": {
- "host": "packages-18-east.internal.npmjs.com",
- "tmp": "tmp/dot-prop-4.1.0.tgz_1480265156334_0.7113023274578154"
+ "host": "packages-12-west.internal.npmjs.com",
+ "tmp": "tmp/dot-prop-4.1.1.tgz_1487442351691_0.9279007718432695"
},
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
- "_npmVersion": "3.10.9",
+ "_npmVersion": "2.15.11",
"_phantomChildren": {},
"_requested": {
"raw": "dot-prop@^4.1.0",
@@ -40,11 +40,11 @@
"_requiredBy": [
"/update-notifier/configstore"
],
- "_resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.1.0.tgz",
- "_shasum": "eb29eac57dfa31fda1edef50ea462ee3d38ff3ab",
+ "_resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.1.1.tgz",
+ "_shasum": "a8493f0b7b5eeec82525b5c7587fa7de7ca859c1",
"_shrinkwrap": null,
"_spec": "dot-prop@^4.1.0",
- "_where": "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/configstore",
+ "_where": "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/configstore",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
@@ -64,8 +64,8 @@
},
"directories": {},
"dist": {
- "shasum": "eb29eac57dfa31fda1edef50ea462ee3d38ff3ab",
- "tarball": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.1.0.tgz"
+ "shasum": "a8493f0b7b5eeec82525b5c7587fa7de7ca859c1",
+ "tarball": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.1.1.tgz"
},
"engines": {
"node": ">=4"
@@ -73,7 +73,7 @@
"files": [
"index.js"
],
- "gitHead": "d49fb11519d5cbb7974ec3d3b5b57719f3c17514",
+ "gitHead": "49f0809db1201f2cf13735de4f3631191a692658",
"homepage": "https://github.com/sindresorhus/dot-prop#readme",
"keywords": [
"obj",
@@ -108,7 +108,7 @@
"bench": "matcha bench.js",
"test": "xo && ava"
},
- "version": "4.1.0",
+ "version": "4.1.1",
"xo": {
"esnext": true
}
diff --git a/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/readme.md b/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/readme.md
index 3d5cfb933..f612c47f7 100644
--- a/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/readme.md
+++ b/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/readme.md
@@ -57,7 +57,7 @@ console.log(obj);
## API
-### get(obj, path, [value])
+### get(obj, path, [defaultValue])
### set(obj, path, value)
@@ -83,7 +83,13 @@ Use `\\.` if you have a `.` in the key.
Type: `any`
-Value to set at `path` or optional default value to return from get.
+Value to set at `path`.
+
+#### defaultValue
+
+Type: `any`
+
+Default value.
## License
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/index.js b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/index.js
index e1d206677..1e97b7c86 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/index.js
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/index.js
@@ -20,8 +20,8 @@ module.exports = (name, version) => {
.then(res => {
let data = res.body;
- if (version === 'latest') {
- data = data.versions[data['dist-tags'].latest];
+ if (data['dist-tags'][version]) {
+ data = data.versions[data['dist-tags'][version]];
} else if (version) {
if (!data.versions[version]) {
const versions = Object.keys(data.versions);
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/LICENSE.BSD b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/LICENSE.BSD
index c6f2e5490..96bb796aa 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/LICENSE.BSD
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/LICENSE.BSD
@@ -2,13 +2,13 @@ Copyright (c) 2013, Dominic Tarr
All rights reserved.
Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
+modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
+ list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
+ and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
@@ -22,5 +22,5 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those
-of the authors and should not be interpreted as representing official policies,
+of the authors and should not be interpreted as representing official policies,
either expressed or implied, of the FreeBSD Project.
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/LICENSE.MIT b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/LICENSE.MIT
index 49e7da41f..6eafbd734 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/LICENSE.MIT
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/LICENSE.MIT
@@ -2,23 +2,23 @@ The MIT License
Copyright (c) 2011 Dominic Tarr
-Permission is hereby granted, free of charge,
-to any person obtaining a copy of this software and
-associated documentation files (the "Software"), to
-deal in the Software without restriction, including
-without limitation the rights to use, copy, modify,
-merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom
-the Software is furnished to do so,
+Permission is hereby granted, free of charge,
+to any person obtaining a copy of this software and
+associated documentation files (the "Software"), to
+deal in the Software without restriction, including
+without limitation the rights to use, copy, modify,
+merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom
+the Software is furnished to do so,
subject to the following conditions:
-The above copyright notice and this permission notice
+The above copyright notice and this permission notice
shall be included in all copies or substantial portions of the Software.
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
-ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/README.md b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/README.md
index b7f77d566..65a5f0687 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/README.md
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/README.md
@@ -141,7 +141,7 @@ such as strict, valid JSON only.
## Note on Performance
-`rc` is running `fs.statSync`-- so make sure you don't use it in a hot code path (e.g. a request handler)
+`rc` is running `fs.statSync`-- so make sure you don't use it in a hot code path (e.g. a request handler)
## License
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/browser.js b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/browser.js
index 9ea1a3e39..8c230c5cd 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/browser.js
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/browser.js
@@ -1,5 +1,5 @@
-// when this is loaded into the browser,
+// when this is loaded into the browser,
// just use the defaults...
module.exports = function (name, defaults) {
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/lib/utils.js b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/lib/utils.js
index c1bbe4d38..ae6dec0ba 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/lib/utils.js
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/lib/utils.js
@@ -100,3 +100,4 @@ var find = exports.find = function () {
}
return find(process.cwd(), rel)
}
+
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/.bin/strip-json-comments b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/.bin/strip-json-comments
deleted file mode 120000
index 63d549f96..000000000
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/.bin/strip-json-comments
+++ /dev/null
@@ -1 +0,0 @@
-../strip-json-comments/cli.js \ No newline at end of file
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/cli.js b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/cli.js
deleted file mode 100755
index aec5aa20e..000000000
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/cli.js
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-var fs = require('fs');
-var strip = require('./strip-json-comments');
-var input = process.argv[2];
-
-
-function getStdin(cb) {
- var ret = '';
-
- process.stdin.setEncoding('utf8');
-
- process.stdin.on('data', function (data) {
- ret += data;
- });
-
- process.stdin.on('end', function () {
- cb(ret);
- });
-}
-
-if (process.argv.indexOf('-h') !== -1 || process.argv.indexOf('--help') !== -1) {
- console.log('strip-json-comments input-file > output-file');
- console.log('or');
- console.log('strip-json-comments < input-file > output-file');
- return;
-}
-
-if (process.argv.indexOf('-v') !== -1 || process.argv.indexOf('--version') !== -1) {
- console.log(require('./package').version);
- return;
-}
-
-if (input) {
- process.stdout.write(strip(fs.readFileSync(input, 'utf8')));
- return;
-}
-
-getStdin(function (data) {
- process.stdout.write(strip(data));
-});
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/index.js b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/index.js
new file mode 100644
index 000000000..4e6576e6d
--- /dev/null
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/index.js
@@ -0,0 +1,70 @@
+'use strict';
+var singleComment = 1;
+var multiComment = 2;
+
+function stripWithoutWhitespace() {
+ return '';
+}
+
+function stripWithWhitespace(str, start, end) {
+ return str.slice(start, end).replace(/\S/g, ' ');
+}
+
+module.exports = function (str, opts) {
+ opts = opts || {};
+
+ var currentChar;
+ var nextChar;
+ var insideString = false;
+ var insideComment = false;
+ var offset = 0;
+ var ret = '';
+ var strip = opts.whitespace === false ? stripWithoutWhitespace : stripWithWhitespace;
+
+ for (var i = 0; i < str.length; i++) {
+ currentChar = str[i];
+ nextChar = str[i + 1];
+
+ if (!insideComment && currentChar === '"') {
+ var escaped = str[i - 1] === '\\' && str[i - 2] !== '\\';
+ if (!escaped) {
+ insideString = !insideString;
+ }
+ }
+
+ if (insideString) {
+ continue;
+ }
+
+ if (!insideComment && currentChar + nextChar === '//') {
+ ret += str.slice(offset, i);
+ offset = i;
+ insideComment = singleComment;
+ i++;
+ } else if (insideComment === singleComment && currentChar + nextChar === '\r\n') {
+ i++;
+ insideComment = false;
+ ret += strip(str, offset, i);
+ offset = i;
+ continue;
+ } else if (insideComment === singleComment && currentChar === '\n') {
+ insideComment = false;
+ ret += strip(str, offset, i);
+ offset = i;
+ } else if (!insideComment && currentChar + nextChar === '/*') {
+ ret += str.slice(offset, i);
+ offset = i;
+ insideComment = multiComment;
+ i++;
+ continue;
+ } else if (insideComment === multiComment && currentChar + nextChar === '*/') {
+ i++;
+ insideComment = false;
+ ret += strip(str, offset, i + 1);
+ offset = i + 1;
+ continue;
+ }
+ }
+
+ return ret + (insideComment ? strip(str.substr(offset)) : str.substr(offset));
+};
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/package.json b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/package.json
index cf7e940c6..eddf20728 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/package.json
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/package.json
@@ -2,75 +2,76 @@
"_args": [
[
{
- "raw": "strip-json-comments@~1.0.4",
+ "raw": "strip-json-comments@~2.0.1",
"scope": null,
"escapedName": "strip-json-comments",
"name": "strip-json-comments",
- "rawSpec": "~1.0.4",
- "spec": ">=1.0.4 <1.1.0",
+ "rawSpec": "~2.0.1",
+ "spec": ">=2.0.1 <2.1.0",
"type": "range"
},
- "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc"
+ "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc"
]
],
- "_from": "strip-json-comments@>=1.0.4 <1.1.0",
- "_id": "strip-json-comments@1.0.4",
+ "_from": "strip-json-comments@>=2.0.1 <2.1.0",
+ "_id": "strip-json-comments@2.0.1",
"_inCache": true,
"_location": "/update-notifier/latest-version/package-json/registry-auth-token/rc/strip-json-comments",
- "_nodeVersion": "0.12.5",
+ "_nodeVersion": "4.2.4",
+ "_npmOperationalInternal": {
+ "host": "packages-9-west.internal.npmjs.com",
+ "tmp": "tmp/strip-json-comments-2.0.1.tgz_1455006605207_0.8280157081317157"
+ },
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
- "_npmVersion": "2.11.2",
+ "_npmVersion": "3.7.2",
"_phantomChildren": {},
"_requested": {
- "raw": "strip-json-comments@~1.0.4",
+ "raw": "strip-json-comments@~2.0.1",
"scope": null,
"escapedName": "strip-json-comments",
"name": "strip-json-comments",
- "rawSpec": "~1.0.4",
- "spec": ">=1.0.4 <1.1.0",
+ "rawSpec": "~2.0.1",
+ "spec": ">=2.0.1 <2.1.0",
"type": "range"
},
"_requiredBy": [
"/update-notifier/latest-version/package-json/registry-auth-token/rc"
],
- "_resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz",
- "_shasum": "1e15fbcac97d3ee99bf2d73b4c656b082bbafb91",
+ "_resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
+ "_shasum": "3c531942e908c2697c0ec344858c286c7ca0a60a",
"_shrinkwrap": null,
- "_spec": "strip-json-comments@~1.0.4",
- "_where": "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc",
+ "_spec": "strip-json-comments@~2.0.1",
+ "_where": "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
- "bin": {
- "strip-json-comments": "cli.js"
- },
"bugs": {
"url": "https://github.com/sindresorhus/strip-json-comments/issues"
},
"dependencies": {},
"description": "Strip comments from JSON. Lets you use comments in your JSON files!",
"devDependencies": {
- "mocha": "*"
+ "ava": "*",
+ "xo": "*"
},
"directories": {},
"dist": {
- "shasum": "1e15fbcac97d3ee99bf2d73b4c656b082bbafb91",
- "tarball": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz"
+ "shasum": "3c531942e908c2697c0ec344858c286c7ca0a60a",
+ "tarball": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz"
},
"engines": {
- "node": ">=0.8.0"
+ "node": ">=0.10.0"
},
"files": [
- "cli.js",
- "strip-json-comments.js"
+ "index.js"
],
- "gitHead": "f58348696368583cc5bb18525fe31eacc9bd00e1",
- "homepage": "https://github.com/sindresorhus/strip-json-comments",
+ "gitHead": "1aef99eaa70d07981156e8aaa722e750c3b4eaf9",
+ "homepage": "https://github.com/sindresorhus/strip-json-comments#readme",
"keywords": [
"json",
"strip",
@@ -86,12 +87,9 @@
"settings",
"util",
"env",
- "environment",
- "cli",
- "bin"
+ "environment"
],
"license": "MIT",
- "main": "strip-json-comments",
"maintainers": [
{
"name": "sindresorhus",
@@ -106,7 +104,7 @@
"url": "git+https://github.com/sindresorhus/strip-json-comments.git"
},
"scripts": {
- "test": "mocha --ui tdd"
+ "test": "xo && ava"
},
- "version": "1.0.4"
+ "version": "2.0.1"
}
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/readme.md b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/readme.md
index 63ce165b2..0ee58dfe3 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/readme.md
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/readme.md
@@ -11,34 +11,23 @@ This is now possible:
}
```
-It will remove single-line comments `//` and multi-line comments `/**/`.
+It will replace single-line comments `//` and multi-line comments `/**/` with whitespace. This allows JSON error positions to remain as close as possible to the original source.
Also available as a [gulp](https://github.com/sindresorhus/gulp-strip-json-comments)/[grunt](https://github.com/sindresorhus/grunt-strip-json-comments)/[broccoli](https://github.com/sindresorhus/broccoli-strip-json-comments) plugin.
--
-
-*There's also [`json-comments`](https://npmjs.org/package/json-comments), but it's only for Node.js, inefficient, bloated as it also minifies, and comes with a `require` hook, which is :(*
-
## Install
-```sh
-$ npm install --save strip-json-comments
-```
-
-```sh
-$ bower install --save strip-json-comments
```
-
-```sh
-$ component install sindresorhus/strip-json-comments
+$ npm install --save strip-json-comments
```
## Usage
```js
-var json = '{/*rainbows*/"unicorn":"cake"}';
+const json = '{/*rainbows*/"unicorn":"cake"}';
+
JSON.parse(stripJsonComments(json));
//=> {unicorn: 'cake'}
```
@@ -46,7 +35,7 @@ JSON.parse(stripJsonComments(json));
## API
-### stripJsonComments(input)
+### stripJsonComments(input, [options])
#### input
@@ -54,25 +43,20 @@ Type: `string`
Accepts a string with JSON and returns a string without comments.
+#### options
-## CLI
+##### whitespace
-```sh
-$ npm install --global strip-json-comments
-```
+Type: `boolean`
+Default: `true`
-```sh
-$ strip-json-comments --help
-
-strip-json-comments input-file > output-file
-# or
-strip-json-comments < input-file > output-file
-```
+Replace comments with whitespace instead of stripping them entirely.
## Related
-- [`strip-css-comments`](https://github.com/sindresorhus/strip-css-comments)
+- [strip-json-comments-cli](https://github.com/sindresorhus/strip-json-comments-cli) - CLI for this module
+- [strip-css-comments](https://github.com/sindresorhus/strip-css-comments) - Strip comments from CSS
## License
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/strip-json-comments.js b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/strip-json-comments.js
deleted file mode 100644
index eb77ce745..000000000
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/node_modules/strip-json-comments/strip-json-comments.js
+++ /dev/null
@@ -1,73 +0,0 @@
-/*!
- strip-json-comments
- Strip comments from JSON. Lets you use comments in your JSON files!
- https://github.com/sindresorhus/strip-json-comments
- by Sindre Sorhus
- MIT License
-*/
-(function () {
- 'use strict';
-
- var singleComment = 1;
- var multiComment = 2;
-
- function stripJsonComments(str) {
- var currentChar;
- var nextChar;
- var insideString = false;
- var insideComment = false;
- var ret = '';
-
- for (var i = 0; i < str.length; i++) {
- currentChar = str[i];
- nextChar = str[i + 1];
-
- if (!insideComment && currentChar === '"') {
- var escaped = str[i - 1] === '\\' && str[i - 2] !== '\\';
- if (!insideComment && !escaped && currentChar === '"') {
- insideString = !insideString;
- }
- }
-
- if (insideString) {
- ret += currentChar;
- continue;
- }
-
- if (!insideComment && currentChar + nextChar === '//') {
- insideComment = singleComment;
- i++;
- } else if (insideComment === singleComment && currentChar + nextChar === '\r\n') {
- insideComment = false;
- i++;
- ret += currentChar;
- ret += nextChar;
- continue;
- } else if (insideComment === singleComment && currentChar === '\n') {
- insideComment = false;
- } else if (!insideComment && currentChar + nextChar === '/*') {
- insideComment = multiComment;
- i++;
- continue;
- } else if (insideComment === multiComment && currentChar + nextChar === '*/') {
- insideComment = false;
- i++;
- continue;
- }
-
- if (insideComment) {
- continue;
- }
-
- ret += currentChar;
- }
-
- return ret;
- }
-
- if (typeof module !== 'undefined' && module.exports) {
- module.exports = stripJsonComments;
- } else {
- window.stripJsonComments = stripJsonComments;
- }
-})();
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/package.json b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/package.json
index afcbc8542..4273b5d53 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/package.json
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/package.json
@@ -10,19 +10,23 @@
"spec": ">=1.1.6 <2.0.0",
"type": "range"
},
- "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token"
+ "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token"
]
],
"_from": "rc@>=1.1.6 <2.0.0",
- "_id": "rc@1.1.6",
+ "_id": "rc@1.1.7",
"_inCache": true,
"_location": "/update-notifier/latest-version/package-json/registry-auth-token/rc",
- "_nodeVersion": "4.2.3",
+ "_nodeVersion": "6.9.4",
+ "_npmOperationalInternal": {
+ "host": "packages-18-east.internal.npmjs.com",
+ "tmp": "tmp/rc-1.1.7.tgz_1487322919345_0.9128507312852889"
+ },
"_npmUser": {
"name": "dominictarr",
"email": "dominic.tarr@gmail.com"
},
- "_npmVersion": "3.5.1",
+ "_npmVersion": "3.10.10",
"_phantomChildren": {},
"_requested": {
"raw": "rc@^1.1.6",
@@ -36,11 +40,11 @@
"_requiredBy": [
"/update-notifier/latest-version/package-json/registry-auth-token"
],
- "_resolved": "https://registry.npmjs.org/rc/-/rc-1.1.6.tgz",
- "_shasum": "43651b76b6ae53b5c802f1151fa3fc3b059969c9",
+ "_resolved": "https://registry.npmjs.org/rc/-/rc-1.1.7.tgz",
+ "_shasum": "c5ea564bb07aff9fd3a5b32e906c1d3a65940fea",
"_shrinkwrap": null,
"_spec": "rc@^1.1.6",
- "_where": "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token",
+ "_where": "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token",
"author": {
"name": "Dominic Tarr",
"email": "dominic.tarr@gmail.com",
@@ -57,16 +61,16 @@
"deep-extend": "~0.4.0",
"ini": "~1.3.0",
"minimist": "^1.2.0",
- "strip-json-comments": "~1.0.4"
+ "strip-json-comments": "~2.0.1"
},
"description": "hardwired configuration loader",
"devDependencies": {},
"directories": {},
"dist": {
- "shasum": "43651b76b6ae53b5c802f1151fa3fc3b059969c9",
- "tarball": "https://registry.npmjs.org/rc/-/rc-1.1.6.tgz"
+ "shasum": "c5ea564bb07aff9fd3a5b32e906c1d3a65940fea",
+ "tarball": "https://registry.npmjs.org/rc/-/rc-1.1.7.tgz"
},
- "gitHead": "132062de0e61881a025cc4784d9a2798409c2bf1",
+ "gitHead": "13bca1296fa95cd7795d30681652b2b7499d85d3",
"homepage": "https://github.com/dominictarr/rc#readme",
"keywords": [
"config",
@@ -92,5 +96,5 @@
"scripts": {
"test": "set -e; node test/test.js; node test/ini.js; node test/nested-env-vars.js"
},
- "version": "1.1.6"
+ "version": "1.1.7"
}
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/test/ini.js b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/test/ini.js
index cdb199006..e6857f8b3 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/test/ini.js
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/test/ini.js
@@ -13,3 +13,4 @@ function test(obj) {
test({hello: true})
+
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/test/nested-env-vars.js b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/test/nested-env-vars.js
index 47be98982..f576fb153 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/test/nested-env-vars.js
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc/test/nested-env-vars.js
@@ -36,3 +36,5 @@ assert.equal(config.someOpt.z, 186577)
assert.equal(config.someOpt.z/*.x*/, 186577)
assert.equal(config.someOpt.w.w, 18629)
assert.equal(config.z.i, 9999)
+
+
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/LICENSE.BSD b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/LICENSE.BSD
index c6f2e5490..96bb796aa 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/LICENSE.BSD
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/LICENSE.BSD
@@ -2,13 +2,13 @@ Copyright (c) 2013, Dominic Tarr
All rights reserved.
Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
+modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
+ list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
+ and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
@@ -22,5 +22,5 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those
-of the authors and should not be interpreted as representing official policies,
+of the authors and should not be interpreted as representing official policies,
either expressed or implied, of the FreeBSD Project.
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/LICENSE.MIT b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/LICENSE.MIT
index 49e7da41f..6eafbd734 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/LICENSE.MIT
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/LICENSE.MIT
@@ -2,23 +2,23 @@ The MIT License
Copyright (c) 2011 Dominic Tarr
-Permission is hereby granted, free of charge,
-to any person obtaining a copy of this software and
-associated documentation files (the "Software"), to
-deal in the Software without restriction, including
-without limitation the rights to use, copy, modify,
-merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom
-the Software is furnished to do so,
+Permission is hereby granted, free of charge,
+to any person obtaining a copy of this software and
+associated documentation files (the "Software"), to
+deal in the Software without restriction, including
+without limitation the rights to use, copy, modify,
+merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom
+the Software is furnished to do so,
subject to the following conditions:
-The above copyright notice and this permission notice
+The above copyright notice and this permission notice
shall be included in all copies or substantial portions of the Software.
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
-ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/README.md b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/README.md
index b7f77d566..65a5f0687 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/README.md
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/README.md
@@ -141,7 +141,7 @@ such as strict, valid JSON only.
## Note on Performance
-`rc` is running `fs.statSync`-- so make sure you don't use it in a hot code path (e.g. a request handler)
+`rc` is running `fs.statSync`-- so make sure you don't use it in a hot code path (e.g. a request handler)
## License
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/browser.js b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/browser.js
index 9ea1a3e39..8c230c5cd 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/browser.js
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/browser.js
@@ -1,5 +1,5 @@
-// when this is loaded into the browser,
+// when this is loaded into the browser,
// just use the defaults...
module.exports = function (name, defaults) {
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/lib/utils.js b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/lib/utils.js
index c1bbe4d38..ae6dec0ba 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/lib/utils.js
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/lib/utils.js
@@ -100,3 +100,4 @@ var find = exports.find = function () {
}
return find(process.cwd(), rel)
}
+
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/.bin/strip-json-comments b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/.bin/strip-json-comments
deleted file mode 120000
index 63d549f96..000000000
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/.bin/strip-json-comments
+++ /dev/null
@@ -1 +0,0 @@
-../strip-json-comments/cli.js \ No newline at end of file
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/cli.js b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/cli.js
deleted file mode 100755
index aec5aa20e..000000000
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/cli.js
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-var fs = require('fs');
-var strip = require('./strip-json-comments');
-var input = process.argv[2];
-
-
-function getStdin(cb) {
- var ret = '';
-
- process.stdin.setEncoding('utf8');
-
- process.stdin.on('data', function (data) {
- ret += data;
- });
-
- process.stdin.on('end', function () {
- cb(ret);
- });
-}
-
-if (process.argv.indexOf('-h') !== -1 || process.argv.indexOf('--help') !== -1) {
- console.log('strip-json-comments input-file > output-file');
- console.log('or');
- console.log('strip-json-comments < input-file > output-file');
- return;
-}
-
-if (process.argv.indexOf('-v') !== -1 || process.argv.indexOf('--version') !== -1) {
- console.log(require('./package').version);
- return;
-}
-
-if (input) {
- process.stdout.write(strip(fs.readFileSync(input, 'utf8')));
- return;
-}
-
-getStdin(function (data) {
- process.stdout.write(strip(data));
-});
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/index.js b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/index.js
new file mode 100644
index 000000000..4e6576e6d
--- /dev/null
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/index.js
@@ -0,0 +1,70 @@
+'use strict';
+var singleComment = 1;
+var multiComment = 2;
+
+function stripWithoutWhitespace() {
+ return '';
+}
+
+function stripWithWhitespace(str, start, end) {
+ return str.slice(start, end).replace(/\S/g, ' ');
+}
+
+module.exports = function (str, opts) {
+ opts = opts || {};
+
+ var currentChar;
+ var nextChar;
+ var insideString = false;
+ var insideComment = false;
+ var offset = 0;
+ var ret = '';
+ var strip = opts.whitespace === false ? stripWithoutWhitespace : stripWithWhitespace;
+
+ for (var i = 0; i < str.length; i++) {
+ currentChar = str[i];
+ nextChar = str[i + 1];
+
+ if (!insideComment && currentChar === '"') {
+ var escaped = str[i - 1] === '\\' && str[i - 2] !== '\\';
+ if (!escaped) {
+ insideString = !insideString;
+ }
+ }
+
+ if (insideString) {
+ continue;
+ }
+
+ if (!insideComment && currentChar + nextChar === '//') {
+ ret += str.slice(offset, i);
+ offset = i;
+ insideComment = singleComment;
+ i++;
+ } else if (insideComment === singleComment && currentChar + nextChar === '\r\n') {
+ i++;
+ insideComment = false;
+ ret += strip(str, offset, i);
+ offset = i;
+ continue;
+ } else if (insideComment === singleComment && currentChar === '\n') {
+ insideComment = false;
+ ret += strip(str, offset, i);
+ offset = i;
+ } else if (!insideComment && currentChar + nextChar === '/*') {
+ ret += str.slice(offset, i);
+ offset = i;
+ insideComment = multiComment;
+ i++;
+ continue;
+ } else if (insideComment === multiComment && currentChar + nextChar === '*/') {
+ i++;
+ insideComment = false;
+ ret += strip(str, offset, i + 1);
+ offset = i + 1;
+ continue;
+ }
+ }
+
+ return ret + (insideComment ? strip(str.substr(offset)) : str.substr(offset));
+};
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/package.json b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/package.json
index 38aeb8b24..b2e492338 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/package.json
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/package.json
@@ -2,87 +2,88 @@
"_args": [
[
{
- "raw": "strip-json-comments@~1.0.4",
+ "raw": "strip-json-comments@~2.0.1",
"scope": null,
"escapedName": "strip-json-comments",
"name": "strip-json-comments",
- "rawSpec": "~1.0.4",
- "spec": ">=1.0.4 <1.1.0",
+ "rawSpec": "~2.0.1",
+ "spec": ">=2.0.1 <2.1.0",
"type": "range"
},
- "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc"
+ "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token/node_modules/rc"
],
[
{
- "raw": "strip-json-comments@~1.0.4",
+ "raw": "strip-json-comments@~2.0.1",
"scope": null,
"escapedName": "strip-json-comments",
"name": "strip-json-comments",
- "rawSpec": "~1.0.4",
- "spec": ">=1.0.4 <1.1.0",
+ "rawSpec": "~2.0.1",
+ "spec": ">=2.0.1 <2.1.0",
"type": "range"
},
- "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc"
+ "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc"
]
],
- "_from": "strip-json-comments@~1.0.4",
- "_id": "strip-json-comments@1.0.4",
+ "_from": "strip-json-comments@~2.0.1",
+ "_id": "strip-json-comments@2.0.1",
"_inCache": true,
"_location": "/update-notifier/latest-version/package-json/registry-url/rc/strip-json-comments",
- "_nodeVersion": "0.12.5",
+ "_nodeVersion": "4.2.4",
+ "_npmOperationalInternal": {
+ "host": "packages-9-west.internal.npmjs.com",
+ "tmp": "tmp/strip-json-comments-2.0.1.tgz_1455006605207_0.8280157081317157"
+ },
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
- "_npmVersion": "2.11.2",
+ "_npmVersion": "3.7.2",
"_phantomChildren": {},
"_requested": {
- "raw": "strip-json-comments@~1.0.4",
+ "raw": "strip-json-comments@~2.0.1",
"scope": null,
"escapedName": "strip-json-comments",
"name": "strip-json-comments",
- "rawSpec": "~1.0.4",
- "spec": ">=1.0.4 <1.1.0",
+ "rawSpec": "~2.0.1",
+ "spec": ">=2.0.1 <2.1.0",
"type": "range"
},
"_requiredBy": [
"/update-notifier/latest-version/package-json/registry-url/rc"
],
- "_resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz",
- "_shasum": "1e15fbcac97d3ee99bf2d73b4c656b082bbafb91",
+ "_resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
+ "_shasum": "3c531942e908c2697c0ec344858c286c7ca0a60a",
"_shrinkwrap": null,
- "_spec": "strip-json-comments@~1.0.4",
- "_where": "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc",
+ "_spec": "strip-json-comments@~2.0.1",
+ "_where": "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
- "bin": {
- "strip-json-comments": "cli.js"
- },
"bugs": {
"url": "https://github.com/sindresorhus/strip-json-comments/issues"
},
"dependencies": {},
"description": "Strip comments from JSON. Lets you use comments in your JSON files!",
"devDependencies": {
- "mocha": "*"
+ "ava": "*",
+ "xo": "*"
},
"directories": {},
"dist": {
- "shasum": "1e15fbcac97d3ee99bf2d73b4c656b082bbafb91",
- "tarball": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz"
+ "shasum": "3c531942e908c2697c0ec344858c286c7ca0a60a",
+ "tarball": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz"
},
"engines": {
- "node": ">=0.8.0"
+ "node": ">=0.10.0"
},
"files": [
- "cli.js",
- "strip-json-comments.js"
+ "index.js"
],
- "gitHead": "f58348696368583cc5bb18525fe31eacc9bd00e1",
- "homepage": "https://github.com/sindresorhus/strip-json-comments",
+ "gitHead": "1aef99eaa70d07981156e8aaa722e750c3b4eaf9",
+ "homepage": "https://github.com/sindresorhus/strip-json-comments#readme",
"keywords": [
"json",
"strip",
@@ -98,12 +99,9 @@
"settings",
"util",
"env",
- "environment",
- "cli",
- "bin"
+ "environment"
],
"license": "MIT",
- "main": "strip-json-comments",
"maintainers": [
{
"name": "sindresorhus",
@@ -118,7 +116,7 @@
"url": "git+https://github.com/sindresorhus/strip-json-comments.git"
},
"scripts": {
- "test": "mocha --ui tdd"
+ "test": "xo && ava"
},
- "version": "1.0.4"
+ "version": "2.0.1"
}
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/readme.md b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/readme.md
index 63ce165b2..0ee58dfe3 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/readme.md
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/readme.md
@@ -11,34 +11,23 @@ This is now possible:
}
```
-It will remove single-line comments `//` and multi-line comments `/**/`.
+It will replace single-line comments `//` and multi-line comments `/**/` with whitespace. This allows JSON error positions to remain as close as possible to the original source.
Also available as a [gulp](https://github.com/sindresorhus/gulp-strip-json-comments)/[grunt](https://github.com/sindresorhus/grunt-strip-json-comments)/[broccoli](https://github.com/sindresorhus/broccoli-strip-json-comments) plugin.
--
-
-*There's also [`json-comments`](https://npmjs.org/package/json-comments), but it's only for Node.js, inefficient, bloated as it also minifies, and comes with a `require` hook, which is :(*
-
## Install
-```sh
-$ npm install --save strip-json-comments
-```
-
-```sh
-$ bower install --save strip-json-comments
```
-
-```sh
-$ component install sindresorhus/strip-json-comments
+$ npm install --save strip-json-comments
```
## Usage
```js
-var json = '{/*rainbows*/"unicorn":"cake"}';
+const json = '{/*rainbows*/"unicorn":"cake"}';
+
JSON.parse(stripJsonComments(json));
//=> {unicorn: 'cake'}
```
@@ -46,7 +35,7 @@ JSON.parse(stripJsonComments(json));
## API
-### stripJsonComments(input)
+### stripJsonComments(input, [options])
#### input
@@ -54,25 +43,20 @@ Type: `string`
Accepts a string with JSON and returns a string without comments.
+#### options
-## CLI
+##### whitespace
-```sh
-$ npm install --global strip-json-comments
-```
+Type: `boolean`
+Default: `true`
-```sh
-$ strip-json-comments --help
-
-strip-json-comments input-file > output-file
-# or
-strip-json-comments < input-file > output-file
-```
+Replace comments with whitespace instead of stripping them entirely.
## Related
-- [`strip-css-comments`](https://github.com/sindresorhus/strip-css-comments)
+- [strip-json-comments-cli](https://github.com/sindresorhus/strip-json-comments-cli) - CLI for this module
+- [strip-css-comments](https://github.com/sindresorhus/strip-css-comments) - Strip comments from CSS
## License
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/strip-json-comments.js b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/strip-json-comments.js
deleted file mode 100644
index eb77ce745..000000000
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/node_modules/strip-json-comments/strip-json-comments.js
+++ /dev/null
@@ -1,73 +0,0 @@
-/*!
- strip-json-comments
- Strip comments from JSON. Lets you use comments in your JSON files!
- https://github.com/sindresorhus/strip-json-comments
- by Sindre Sorhus
- MIT License
-*/
-(function () {
- 'use strict';
-
- var singleComment = 1;
- var multiComment = 2;
-
- function stripJsonComments(str) {
- var currentChar;
- var nextChar;
- var insideString = false;
- var insideComment = false;
- var ret = '';
-
- for (var i = 0; i < str.length; i++) {
- currentChar = str[i];
- nextChar = str[i + 1];
-
- if (!insideComment && currentChar === '"') {
- var escaped = str[i - 1] === '\\' && str[i - 2] !== '\\';
- if (!insideComment && !escaped && currentChar === '"') {
- insideString = !insideString;
- }
- }
-
- if (insideString) {
- ret += currentChar;
- continue;
- }
-
- if (!insideComment && currentChar + nextChar === '//') {
- insideComment = singleComment;
- i++;
- } else if (insideComment === singleComment && currentChar + nextChar === '\r\n') {
- insideComment = false;
- i++;
- ret += currentChar;
- ret += nextChar;
- continue;
- } else if (insideComment === singleComment && currentChar === '\n') {
- insideComment = false;
- } else if (!insideComment && currentChar + nextChar === '/*') {
- insideComment = multiComment;
- i++;
- continue;
- } else if (insideComment === multiComment && currentChar + nextChar === '*/') {
- insideComment = false;
- i++;
- continue;
- }
-
- if (insideComment) {
- continue;
- }
-
- ret += currentChar;
- }
-
- return ret;
- }
-
- if (typeof module !== 'undefined' && module.exports) {
- module.exports = stripJsonComments;
- } else {
- window.stripJsonComments = stripJsonComments;
- }
-})();
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/package.json b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/package.json
index 7bab9edeb..27c8dd9b3 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/package.json
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/package.json
@@ -10,7 +10,7 @@
"spec": ">=1.1.6 <2.0.0",
"type": "range"
},
- "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token"
+ "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-auth-token"
],
[
{
@@ -22,19 +22,23 @@
"spec": ">=1.0.1 <2.0.0",
"type": "range"
},
- "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url"
+ "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url"
]
],
"_from": "rc@^1.0.1",
- "_id": "rc@1.1.6",
+ "_id": "rc@1.1.7",
"_inCache": true,
"_location": "/update-notifier/latest-version/package-json/registry-url/rc",
- "_nodeVersion": "4.2.3",
+ "_nodeVersion": "6.9.4",
+ "_npmOperationalInternal": {
+ "host": "packages-18-east.internal.npmjs.com",
+ "tmp": "tmp/rc-1.1.7.tgz_1487322919345_0.9128507312852889"
+ },
"_npmUser": {
"name": "dominictarr",
"email": "dominic.tarr@gmail.com"
},
- "_npmVersion": "3.5.1",
+ "_npmVersion": "3.10.10",
"_phantomChildren": {},
"_requested": {
"raw": "rc@^1.0.1",
@@ -48,11 +52,11 @@
"_requiredBy": [
"/update-notifier/latest-version/package-json/registry-url"
],
- "_resolved": "https://registry.npmjs.org/rc/-/rc-1.1.6.tgz",
- "_shasum": "43651b76b6ae53b5c802f1151fa3fc3b059969c9",
+ "_resolved": "https://registry.npmjs.org/rc/-/rc-1.1.7.tgz",
+ "_shasum": "c5ea564bb07aff9fd3a5b32e906c1d3a65940fea",
"_shrinkwrap": null,
"_spec": "rc@^1.0.1",
- "_where": "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url",
+ "_where": "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url",
"author": {
"name": "Dominic Tarr",
"email": "dominic.tarr@gmail.com",
@@ -69,16 +73,16 @@
"deep-extend": "~0.4.0",
"ini": "~1.3.0",
"minimist": "^1.2.0",
- "strip-json-comments": "~1.0.4"
+ "strip-json-comments": "~2.0.1"
},
"description": "hardwired configuration loader",
"devDependencies": {},
"directories": {},
"dist": {
- "shasum": "43651b76b6ae53b5c802f1151fa3fc3b059969c9",
- "tarball": "https://registry.npmjs.org/rc/-/rc-1.1.6.tgz"
+ "shasum": "c5ea564bb07aff9fd3a5b32e906c1d3a65940fea",
+ "tarball": "https://registry.npmjs.org/rc/-/rc-1.1.7.tgz"
},
- "gitHead": "132062de0e61881a025cc4784d9a2798409c2bf1",
+ "gitHead": "13bca1296fa95cd7795d30681652b2b7499d85d3",
"homepage": "https://github.com/dominictarr/rc#readme",
"keywords": [
"config",
@@ -104,5 +108,5 @@
"scripts": {
"test": "set -e; node test/test.js; node test/ini.js; node test/nested-env-vars.js"
},
- "version": "1.1.6"
+ "version": "1.1.7"
}
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/test/ini.js b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/test/ini.js
index cdb199006..e6857f8b3 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/test/ini.js
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/test/ini.js
@@ -13,3 +13,4 @@ function test(obj) {
test({hello: true})
+
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/test/nested-env-vars.js b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/test/nested-env-vars.js
index 47be98982..f576fb153 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/test/nested-env-vars.js
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/rc/test/nested-env-vars.js
@@ -36,3 +36,5 @@ assert.equal(config.someOpt.z, 186577)
assert.equal(config.someOpt.z/*.x*/, 186577)
assert.equal(config.someOpt.w.w, 18629)
assert.equal(config.z.i, 9999)
+
+
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/package.json b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/package.json
index 9896a2206..617a6b8ab 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/package.json
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/package.json
@@ -10,23 +10,23 @@
"spec": ">=3.0.0 <4.0.0",
"type": "range"
},
- "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/latest-version"
+ "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/latest-version"
]
],
"_from": "package-json@>=3.0.0 <4.0.0",
- "_id": "package-json@3.0.0",
+ "_id": "package-json@3.1.0",
"_inCache": true,
"_location": "/update-notifier/latest-version/package-json",
- "_nodeVersion": "4.6.2",
+ "_nodeVersion": "7.5.0",
"_npmOperationalInternal": {
- "host": "packages-12-west.internal.npmjs.com",
- "tmp": "tmp/package-json-3.0.0.tgz_1486978854880_0.7248586353380233"
+ "host": "packages-18-east.internal.npmjs.com",
+ "tmp": "tmp/package-json-3.1.0.tgz_1487399518076_0.5145169137977064"
},
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
- "_npmVersion": "2.15.11",
+ "_npmVersion": "4.1.2",
"_phantomChildren": {
"ini": "1.3.4"
},
@@ -42,11 +42,11 @@
"_requiredBy": [
"/update-notifier/latest-version"
],
- "_resolved": "https://registry.npmjs.org/package-json/-/package-json-3.0.0.tgz",
- "_shasum": "dc11f79ebdb436e55fe2b9b294ee3f2a87a33b13",
+ "_resolved": "https://registry.npmjs.org/package-json/-/package-json-3.1.0.tgz",
+ "_shasum": "ce281900fe8052150cc6709c6c006c18fdb2f379",
"_shrinkwrap": null,
"_spec": "package-json@^3.0.0",
- "_where": "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/latest-version",
+ "_where": "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/latest-version",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
@@ -69,8 +69,8 @@
},
"directories": {},
"dist": {
- "shasum": "dc11f79ebdb436e55fe2b9b294ee3f2a87a33b13",
- "tarball": "https://registry.npmjs.org/package-json/-/package-json-3.0.0.tgz"
+ "shasum": "ce281900fe8052150cc6709c6c006c18fdb2f379",
+ "tarball": "https://registry.npmjs.org/package-json/-/package-json-3.1.0.tgz"
},
"engines": {
"node": ">=4"
@@ -78,7 +78,7 @@
"files": [
"index.js"
],
- "gitHead": "1436eb4b8b191f5099a1c453c104e71445bc37fa",
+ "gitHead": "11dcc826e6219bd473f9b3314528def3b61233cf",
"homepage": "https://github.com/sindresorhus/package-json#readme",
"keywords": [
"npm",
@@ -112,5 +112,5 @@
"scripts": {
"test": "xo && ava"
},
- "version": "3.0.0"
+ "version": "3.1.0"
}
diff --git a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/readme.md b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/readme.md
index 72527f7cf..4fe7d7af8 100644
--- a/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/readme.md
+++ b/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/readme.md
@@ -32,7 +32,7 @@ packageJson('@company/package', 'latest').then(json => {
### packageJson(name, [version])
-You can optionally specify a version (e.g. `1.0.0`) or `latest`. If you don't specify a version you'll get the [main entry](http://registry.npmjs.org/pageres/) containing all versions.
+You can optionally specify a version (e.g. `1.0.0`) or a [dist tag](https://docs.npmjs.com/cli/dist-tag) such as `latest`. If you don't specify a version you'll get the [main entry](http://registry.npmjs.org/pageres/) containing all versions.
The version can also be in any format supported by the [semver](https://www.npmjs.com/package/semver) module. For example:
diff --git a/node_modules/update-notifier/package.json b/node_modules/update-notifier/package.json
index 34fb27823..5c478ca05 100644
--- a/node_modules/update-notifier/package.json
+++ b/node_modules/update-notifier/package.json
@@ -2,31 +2,31 @@
"_args": [
[
{
- "raw": "update-notifier",
+ "raw": "update-notifier@latest",
"scope": null,
"escapedName": "update-notifier",
"name": "update-notifier",
- "rawSpec": "",
+ "rawSpec": "latest",
"spec": "latest",
"type": "tag"
},
- "/Users/ceej/code/Tools/npm"
+ "/Users/zkat/Documents/code/npm"
]
],
"_from": "update-notifier@latest",
- "_id": "update-notifier@2.0.0",
+ "_id": "update-notifier@2.1.0",
"_inCache": true,
"_location": "/update-notifier",
- "_nodeVersion": "4.6.2",
+ "_nodeVersion": "7.5.0",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
- "tmp": "tmp/update-notifier-2.0.0.tgz_1486998603563_0.23791463673114777"
+ "tmp": "tmp/update-notifier-2.1.0.tgz_1487399187832_0.08143048011697829"
},
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
- "_npmVersion": "2.15.11",
+ "_npmVersion": "4.1.2",
"_phantomChildren": {
"ansi-regex": "2.1.1",
"graceful-fs": "4.1.11",
@@ -38,11 +38,11 @@
"write-file-atomic": "1.3.1"
},
"_requested": {
- "raw": "update-notifier",
+ "raw": "update-notifier@latest",
"scope": null,
"escapedName": "update-notifier",
"name": "update-notifier",
- "rawSpec": "",
+ "rawSpec": "latest",
"spec": "latest",
"type": "tag"
},
@@ -50,11 +50,11 @@
"#USER",
"/"
],
- "_resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-2.0.0.tgz",
- "_shasum": "1f2712fd2079f415980b5af95eb120e4aceea9a6",
+ "_resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-2.1.0.tgz",
+ "_shasum": "ec0c1e53536b76647a24b77cb83966d9315123d9",
"_shrinkwrap": null,
- "_spec": "update-notifier",
- "_where": "/Users/ceej/code/Tools/npm",
+ "_spec": "update-notifier@latest",
+ "_where": "/Users/zkat/Documents/code/npm",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
@@ -83,8 +83,8 @@
},
"directories": {},
"dist": {
- "shasum": "1f2712fd2079f415980b5af95eb120e4aceea9a6",
- "tarball": "https://registry.npmjs.org/update-notifier/-/update-notifier-2.0.0.tgz"
+ "shasum": "ec0c1e53536b76647a24b77cb83966d9315123d9",
+ "tarball": "https://registry.npmjs.org/update-notifier/-/update-notifier-2.1.0.tgz"
},
"engines": {
"node": ">=4"
@@ -93,7 +93,7 @@
"index.js",
"check.js"
],
- "gitHead": "d295cf395852979bd9db90715b31b9fbb0db9b70",
+ "gitHead": "86ca238959d8176929499f69a31cb0ddb0c74e96",
"homepage": "https://github.com/yeoman/update-notifier#readme",
"keywords": [
"npm",
@@ -145,5 +145,5 @@
"scripts": {
"test": "xo && mocha --timeout 20000"
},
- "version": "2.0.0"
+ "version": "2.1.0"
}
diff --git a/node_modules/update-notifier/readme.md b/node_modules/update-notifier/readme.md
index 2c5cda9c8..f76e3215c 100644
--- a/node_modules/update-notifier/readme.md
+++ b/node_modules/update-notifier/readme.md
@@ -131,6 +131,13 @@ Default: [See above screenshot](https://github.com/yeoman/update-notifier#update
Message that will be shown when an update is available.
+##### isGlobal
+
+Type: `boolean`<br>
+Default: `true`
+
+Include the `-g` argument in the default message's `npm i` recommendation. You may want to change this if your CLI package can be installed as a dependency of another project, and don't want to recommend a global installation. This option is ignored if you supply your own `message` (see above).
+
##### boxenOpts
Type: `Object`<br>