@lerna/npm-conf
Advanced tools
Comparing version 3.4.1 to 3.7.0
@@ -6,2 +6,14 @@ # Change Log | ||
# [3.7.0](https://github.com/lerna/lerna/compare/v3.6.0...v3.7.0) (2018-12-19) | ||
### Bug Fixes | ||
* **npm-conf:** Port kevva/npm-conf/pull/12 ([@zkochan](https://github.com/zkochan)) ([d58b741](https://github.com/lerna/lerna/commit/d58b741)) | ||
* **npm-conf:** Update defaults & types to npm v6.5.0+ ([6a8aa83](https://github.com/lerna/lerna/commit/6a8aa83)) | ||
## [3.4.1](https://github.com/lerna/lerna/compare/v3.4.0...v3.4.1) (2018-10-04) | ||
@@ -8,0 +20,0 @@ |
@@ -63,2 +63,4 @@ // Generated with `lib/make.js` | ||
also: null, | ||
audit: true, | ||
"audit-level": "low", | ||
"auth-type": "legacy", | ||
@@ -132,2 +134,3 @@ "bin-links": true, | ||
prefix: globalPrefix, | ||
preid: "", | ||
production: process.env.NODE_ENV === "production", | ||
@@ -137,3 +140,3 @@ progress: !process.env.TRAVIS && !process.env.CI, | ||
"https-proxy": null, | ||
"no-proxy": null, | ||
noproxy: null, | ||
"user-agent": "npm/{npm-version} " + "node/{node-version} " + "{platform} " + "{arch}", | ||
@@ -161,2 +164,3 @@ "read-only": false, | ||
shrinkwrap: true, | ||
"sign-git-commit": false, | ||
"sign-git-tag": false, | ||
@@ -176,4 +180,5 @@ "sso-poll-frequency": 500, | ||
process.getuid() !== 0, | ||
"update-notifier": true, | ||
usage: false, | ||
user: process.platform === "win32" ? 0 : "nobody", | ||
user: process.platform === "win32" || os.type() === "OS400" ? 0 : "nobody", | ||
userconfig: path.resolve(home, ".npmrc"), | ||
@@ -186,4 +191,5 @@ umask: process.umask ? process.umask() : umask.fromString("022"), | ||
}; | ||
return defaults; | ||
}, | ||
}); |
@@ -20,3 +20,3 @@ "use strict"; | ||
? Object.keys(opts).reduce((acc, key) => { | ||
if (opts && opts[key] !== undefined) { | ||
if (opts[key] !== undefined) { | ||
// eslint-disable-next-line no-param-reassign | ||
@@ -37,2 +37,3 @@ acc[key] = opts[key]; | ||
/* istanbul ignore else */ | ||
if (!conf.get("global") && projectConf !== userConf) { | ||
@@ -46,2 +47,3 @@ conf.addFile(projectConf, "project"); | ||
/* istanbul ignore else */ | ||
if (conf.get("prefix")) { | ||
@@ -58,2 +60,3 @@ const etc = path.resolve(conf.get("prefix"), "etc"); | ||
/* istanbul ignore if */ | ||
if (caFile) { | ||
@@ -60,0 +63,0 @@ conf.loadCAFile(caFile); |
@@ -67,3 +67,4 @@ "use strict"; | ||
if (isNumber && !field.isNan()) { | ||
// eslint-disable-next-line no-restricted-globals | ||
if (isNumber && !isNaN(field)) { | ||
field = Number(field); | ||
@@ -70,0 +71,0 @@ } |
@@ -19,2 +19,4 @@ // Generated with `lib/make.js` | ||
also: [null, "dev", "development"], | ||
audit: Boolean, | ||
"audit-level": ["low", "moderate", "high", "critical"], | ||
"auth-type": ["legacy", "sso", "saml", "oauth"], | ||
@@ -69,4 +71,2 @@ "bin-links": Boolean, | ||
link: Boolean, | ||
// local-address must be listed as an IP for a local network interface | ||
// must be IPv4 due to node bug | ||
"local-address": getLocalAddresses(), | ||
@@ -82,3 +82,3 @@ loglevel: ["silent", "error", "warn", "notice", "http", "timing", "info", "verbose", "silly"], | ||
"node-version": [null, semver], | ||
"no-proxy": [null, String, Array], | ||
noproxy: [null, String, Array], | ||
offline: Boolean, | ||
@@ -89,3 +89,3 @@ "onload-script": [null, String], | ||
"package-lock": Boolean, | ||
otp: Number, | ||
otp: [null, String], | ||
"package-lock-only": Boolean, | ||
@@ -96,6 +96,7 @@ parseable: Boolean, | ||
prefix: path, | ||
preid: String, | ||
production: Boolean, | ||
progress: Boolean, | ||
// allow proxy to be disabled explicitly | ||
proxy: [null, false, url], | ||
// allow proxy to be disabled explicitly | ||
"read-only": Boolean, | ||
@@ -122,2 +123,3 @@ "rebuild-bundle": Boolean, | ||
shrinkwrap: Boolean, | ||
"sign-git-commit": Boolean, | ||
"sign-git-tag": Boolean, | ||
@@ -132,2 +134,3 @@ "sso-poll-frequency": Number, | ||
"unsafe-perm": Boolean, | ||
"update-notifier": Boolean, | ||
usage: Boolean, | ||
@@ -134,0 +137,0 @@ user: [Number, String], |
{ | ||
"name": "@lerna/npm-conf", | ||
"version": "3.4.1", | ||
"version": "3.7.0", | ||
"description": "Vendored npm-conf with updates", | ||
@@ -41,3 +41,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "05a27a6d579fdc962f0e0588585b9fb7d0a453b7" | ||
"gitHead": "89b53ff2b561e69fad3a3e8671d7dcd0f1c09c3e" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25845
722