Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created September 16, 2020 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/9d7032da09d8456b97010367d6bf18a9 to your computer and use it in GitHub Desktop.
Save isaacs/9d7032da09d8456b97010367d6bf18a9 to your computer and use it in GitHub Desktop.
diff --git a/node_modules/minipass-fetch/lib/body.js b/node_modules/minipass-fetch/lib/body.js
index baa3fa3e2..fb7ffc356 100644
--- a/node_modules/minipass-fetch/lib/body.js
+++ b/node_modules/minipass-fetch/lib/body.js
@@ -130,6 +130,12 @@ class Body {
this.url} (over ${this.timeout}ms)`, 'body-timeout'))
}, this.timeout) : null
+ // do not keep the process open just for this timeout, even
+ // though we expect it'll get cleared eventually.
+ if (resTimeout) {
+ resTimeout.unref()
+ }
+
// do the pipe in the promise, because the pipe() can send too much
// data through right away and upset the MP Sized object
return new Promise((resolve, reject) => {
diff --git a/node_modules/minipass-fetch/package.json b/node_modules/minipass-fetch/package.json
index 24853d1bd..74402cb32 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.0",
+ "version": "1.3.1",
"description": "An implementation of window.fetch in Node.js using Minipass streams",
"license": "MIT",
"main": "lib/index.js",
@@ -28,7 +28,8 @@
"dependencies": {
"minipass": "^3.1.0",
"minipass-sized": "^1.0.3",
- "minizlib": "^2.0.0"
+ "minizlib": "^2.0.0",
+ "encoding": "^0.1.12"
},
"optionalDependencies": {
"encoding": "^0.1.12"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment