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>2015-08-14 09:33:00 +0300
committerRebecca Turner <me@re-becca.org>2015-08-14 22:25:46 +0300
commit139dd922aca4595163e62645eb3dddf3076f3c7a (patch)
treed8dd828c2094e2869aa8d22c19e5721d966a96b1 /node_modules/init-package-json
parentb50105fcb2ef2c96df0521a4fe7bfd4ee39a8702 (diff)
init-package-json@1.8.0
Fixes #8716 PR-URL: https://github.com/npm/npm/pull/9269
Diffstat (limited to 'node_modules/init-package-json')
-rw-r--r--node_modules/init-package-json/default-input.js3
-rw-r--r--node_modules/init-package-json/package.json34
2 files changed, 20 insertions, 17 deletions
diff --git a/node_modules/init-package-json/default-input.js b/node_modules/init-package-json/default-input.js
index ef5161e79..59f8fec61 100644
--- a/node_modules/init-package-json/default-input.js
+++ b/node_modules/init-package-json/default-input.js
@@ -32,6 +32,9 @@ function readDeps (test) { return function (cb) {
try { p = JSON.parse(p) }
catch (e) { return next() }
if (!p.version) return next()
+ if (p._requiredBy) {
+ if (!p._requiredBy.some(function (req) { return req === '#USER' })) return next()
+ }
deps[d] = config.get('save-exact') ? p.version : config.get('save-prefix') + p.version
return next()
})
diff --git a/node_modules/init-package-json/package.json b/node_modules/init-package-json/package.json
index c7aed1b69..db2f7957d 100644
--- a/node_modules/init-package-json/package.json
+++ b/node_modules/init-package-json/package.json
@@ -1,36 +1,35 @@
{
"_args": [
[
- "init-package-json@~1.7.1",
+ "init-package-json@~1.8.0",
"/Users/rebecca/code/npm"
]
],
- "_from": "init-package-json@>=1.7.1 <1.8.0",
- "_id": "init-package-json@1.7.1",
+ "_from": "init-package-json@>=1.8.0 <1.9.0",
+ "_id": "init-package-json@1.8.0",
"_inCache": true,
"_location": "/init-package-json",
- "_nodeVersion": "2.3.1",
+ "_nodeVersion": "3.0.0",
"_npmUser": {
- "email": "ogd@aoaioxxysz.net",
- "name": "othiym23"
+ "email": "me@re-becca.org",
+ "name": "iarna"
},
- "_npmVersion": "2.13.1",
+ "_npmVersion": "2.13.3",
"_phantomChildren": {},
"_requested": {
"name": "init-package-json",
- "raw": "init-package-json@~1.7.1",
- "rawSpec": "~1.7.1",
+ "raw": "init-package-json@~1.8.0",
+ "rawSpec": "~1.8.0",
"scope": null,
- "spec": ">=1.7.1 <1.8.0",
+ "spec": ">=1.8.0 <1.9.0",
"type": "range"
},
"_requiredBy": [
"/"
],
- "_resolved": "https://registry.npmjs.org/init-package-json/-/init-package-json-1.7.1.tgz",
- "_shasum": "32a8643779c91732d901a6fdc7505de7119fb7ad",
+ "_shasum": "b868fcb698a993a00e70d8eb008b64e3c9bb3097",
"_shrinkwrap": null,
- "_spec": "init-package-json@~1.7.1",
+ "_spec": "init-package-json@~1.8.0",
"_where": "/Users/rebecca/code/npm",
"author": {
"email": "i@izs.me",
@@ -58,11 +57,12 @@
},
"directories": {},
"dist": {
- "shasum": "32a8643779c91732d901a6fdc7505de7119fb7ad",
- "tarball": "http://registry.npmjs.org/init-package-json/-/init-package-json-1.7.1.tgz"
+ "shasum": "b868fcb698a993a00e70d8eb008b64e3c9bb3097",
+ "tarball": "http://registry.npmjs.org/init-package-json/-/init-package-json-1.8.0.tgz"
},
- "gitHead": "443031e837c81bb10548212a7b3700b5dde94cfb",
+ "gitHead": "7f79195a15c74711928f50e301ae996e835cfec5",
"homepage": "https://github.com/isaacs/init-package-json#readme",
+ "installable": true,
"keywords": [
"helper",
"init",
@@ -98,5 +98,5 @@
"scripts": {
"test": "tap test/*.js"
},
- "version": "1.7.1"
+ "version": "1.8.0"
}