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:
authorisaacs <i@izs.me>2020-10-28 01:25:20 +0300
committerDarcy Clarke <darcy@darcyclarke.me>2020-11-03 22:28:26 +0300
commit6cd3cd08af56445e13757cac3af87f3e7d54ed27 (patch)
treef0586fc1f9756bd41a946ae1a800d3df45f68391 /tap-snapshots
parent48ee8d01edd11ed6186c483e1169ff4d2070b963 (diff)
Support *all* conf keys in publishConfig
This adds a flatOptions.flatten() method, which takes an object full of config keys, and turns it into an options object. This method expects an object that already inherits from npm's defaults, and is thus expected to be internal only. This commit also removes some config keys which were used by npm dependencies at the start of the v7 beta process, but are no longer: - all lockfile configs (since we don't use lockfiles any more! for anything! and good riddance, they're a rats' nest of race conditions) - cacheMax/cacheMin (we only use preferOffline/offline/online now, so these are strictly legacy support as input and never shared with deps) Once this lands in cli, we can remove the publishConfig handling logic in npm-registry-fetch, as it will be redundant.
Diffstat (limited to 'tap-snapshots')
-rw-r--r--tap-snapshots/test-lib-utils-flat-options.js-TAP.test.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/tap-snapshots/test-lib-utils-flat-options.js-TAP.test.js b/tap-snapshots/test-lib-utils-flat-options.js-TAP.test.js
index 3522084e6..0e6c053b2 100644
--- a/tap-snapshots/test-lib-utils-flat-options.js-TAP.test.js
+++ b/tap-snapshots/test-lib-utils-flat-options.js-TAP.test.js
@@ -21,11 +21,6 @@ Object {
"browser": "browser",
"ca": "ca",
"cache": "cache/_cacache",
- "cacheLockRetries": "cache-lock-retries",
- "cacheLockStale": "cache-lock-stale",
- "cacheLockWait": "cache-lock-wait",
- "cacheMax": "cache-max",
- "cacheMin": "cache-min",
"cafile": "cafile",
"call": "call",
"cert": "cert",
@@ -55,11 +50,6 @@ Object {
"legacyBundling": "legacy-bundling",
"legacyPeerDeps": undefined,
"localPrefix": "/path/to/npm/cli",
- "lockFile": Object {
- "retries": "cache-lock-retries",
- "stale": "cache-lock-stale",
- "wait": "cache-lock-wait",
- },
"log": Object {},
"long": undefined,
"message": "message",