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-02 21:22:20 +0300
committerisaacs <i@izs.me>2020-10-02 21:22:20 +0300
commit384f5ec47091eed66c2a47f2c98df3ba7506ec9f (patch)
tree4fc200d30d030e6a64684a7063b604727aec11dc /node_modules/minipass-fetch
parent281a7f39ac314bd7657ce2bcd7918b21eee99210 (diff)
update minipass-fetch
This fixes many 'cb() never called' errors in the CITGM tests on v7.
Diffstat (limited to 'node_modules/minipass-fetch')
-rw-r--r--node_modules/minipass-fetch/lib/index.js4
-rw-r--r--node_modules/minipass-fetch/package.json6
2 files changed, 6 insertions, 4 deletions
diff --git a/node_modules/minipass-fetch/lib/index.js b/node_modules/minipass-fetch/lib/index.js
index 591891240..d6ed57942 100644
--- a/node_modules/minipass-fetch/lib/index.js
+++ b/node_modules/minipass-fetch/lib/index.js
@@ -205,7 +205,9 @@ const fetch = (url, opts) => {
const body = new Minipass()
// exceedingly rare that the stream would have an error,
// but just in case we proxy it to the stream in use.
- res.on('error', /* istanbul ignore next */ er => body.emit('error', er)).pipe(body)
+ res.on('error', /* istanbul ignore next */ er => body.emit('error', er))
+ res.on('data', (chunk) => body.write(chunk))
+ res.on('end', () => body.end())
const responseOptions = {
url: request.url,
diff --git a/node_modules/minipass-fetch/package.json b/node_modules/minipass-fetch/package.json
index 74402cb32..a9585c951 100644
--- a/node_modules/minipass-fetch/package.json
+++ b/node_modules/minipass-fetch/package.json
@@ -1,6 +1,6 @@
{
"name": "minipass-fetch",
- "version": "1.3.1",
+ "version": "1.3.2",
"description": "An implementation of window.fetch in Node.js using Minipass streams",
"license": "MIT",
"main": "lib/index.js",
@@ -26,10 +26,10 @@
"whatwg-url": "^7.0.0"
},
"dependencies": {
+ "encoding": "^0.1.12",
"minipass": "^3.1.0",
"minipass-sized": "^1.0.3",
- "minizlib": "^2.0.0",
- "encoding": "^0.1.12"
+ "minizlib": "^2.0.0"
},
"optionalDependencies": {
"encoding": "^0.1.12"