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-09-28 21:16:40 +0300
committernlf <quitlahok@gmail.com>2020-09-29 21:43:49 +0300
commit2469ae5153fa4114a72684376a1b226aa07edf81 (patch)
tree394ecaf2ec1fb087bc65fb68be128f8a99103cb6 /tap-snapshots
parente225ddcf8d74a6b1cfb24ec49e37e3f5d06e5151 (diff)
Add 'fetch-timeout' config
This gets passed down to dependencies as 'timeout', so that the HTTP request libraries will all get the right value. Fix: https://github.com/npm/cli/issues/1780 PR-URL: https://github.com/npm/cli/pull/1870 Credit: @isaacs Close: #1870 Reviewed-by: @nlf
Diffstat (limited to 'tap-snapshots')
-rw-r--r--tap-snapshots/test-lib-utils-config.js-TAP.test.js6
-rw-r--r--tap-snapshots/test-lib-utils-flat-options.js-TAP.test.js1
2 files changed, 7 insertions, 0 deletions
diff --git a/tap-snapshots/test-lib-utils-config.js-TAP.test.js b/tap-snapshots/test-lib-utils-config.js-TAP.test.js
index 90030fef7..a6f662736 100644
--- a/tap-snapshots/test-lib-utils-config.js-TAP.test.js
+++ b/tap-snapshots/test-lib-utils-config.js-TAP.test.js
@@ -42,6 +42,7 @@ Object {
"fetch-retry-factor": 10,
"fetch-retry-maxtimeout": 60000,
"fetch-retry-mintimeout": 10000,
+ "fetch-timeout": 300000,
"force": false,
"format-package-lock": true,
"fund": true,
@@ -339,6 +340,7 @@ Object {
"fetch-retry-factor": "{Number TYPE}",
"fetch-retry-maxtimeout": "{Number TYPE}",
"fetch-retry-mintimeout": "{Number TYPE}",
+ "fetch-timeout": "{Number TYPE}",
"force": "{Boolean TYPE}",
"format-package-lock": "{Boolean TYPE}",
"fund": "{Boolean TYPE}",
@@ -554,6 +556,7 @@ Object {
"fetch-retry-factor": 10,
"fetch-retry-maxtimeout": 60000,
"fetch-retry-mintimeout": 10000,
+ "fetch-timeout": 300000,
"force": false,
"format-package-lock": true,
"fund": true,
@@ -851,6 +854,7 @@ Object {
"fetch-retry-factor": "{Number TYPE}",
"fetch-retry-maxtimeout": "{Number TYPE}",
"fetch-retry-mintimeout": "{Number TYPE}",
+ "fetch-timeout": "{Number TYPE}",
"force": "{Boolean TYPE}",
"format-package-lock": "{Boolean TYPE}",
"fund": "{Boolean TYPE}",
@@ -1066,6 +1070,7 @@ Object {
"fetch-retry-factor": 10,
"fetch-retry-maxtimeout": 60000,
"fetch-retry-mintimeout": 10000,
+ "fetch-timeout": 300000,
"force": false,
"format-package-lock": true,
"fund": true,
@@ -1363,6 +1368,7 @@ Object {
"fetch-retry-factor": "{Number TYPE}",
"fetch-retry-maxtimeout": "{Number TYPE}",
"fetch-retry-mintimeout": "{Number TYPE}",
+ "fetch-timeout": "{Number TYPE}",
"force": "{Boolean TYPE}",
"format-package-lock": "{Boolean TYPE}",
"fund": "{Boolean TYPE}",
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 d9aa8e8b6..0e7b7c33e 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
@@ -115,6 +115,7 @@ Object {
"strictSSL": "strict-ssl",
"tag": "tag",
"tagVersionPrefix": "tag-version-prefix",
+ "timeout": "fetch-timeout",
"tmp": "/tmp",
"umask": 18,
"unicode": undefined,