From f10b96d3cb5cbb20f566d76c1313cbc722d88c40 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 28 May 2021 11:44:52 +0100 Subject: [PATCH 1/3] fix: use node-fetch fork with fix for stream closed prematurely bug https://github.com/node-fetch/node-fetch/pull/1064 fixes a bug in node-fetch to make it handle situations where the stream closes prematurely but it's been merged into the v3 release tree which is still future tech with no release date. https://github.com/node-fetch/node-fetch/pull/1172 backports that fix to v2 but although approved it's not been merged and released yet so here we use a temporary fork published with that PR merged in. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e11bd07..1d3bb0d 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "nanoid": "^3.1.20", "native-abort-controller": "^1.0.3", "native-fetch": "^3.0.0", - "node-fetch": "^2.6.1", + "node-fetch": "npm:@achingbrain/node-fetch", "react-native-fetch-api": "^1.0.2", "stream-to-it": "^0.2.2" }, From 5290f3101c20dc455b68ca84f59ffc7335256f4d Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 28 May 2021 16:48:42 +0100 Subject: [PATCH 2/3] chore: add version number --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1d3bb0d..593d0d7 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "nanoid": "^3.1.20", "native-abort-controller": "^1.0.3", "native-fetch": "^3.0.0", - "node-fetch": "npm:@achingbrain/node-fetch", + "node-fetch": "npm:@achingbrain/node-fetch@^2.0.0", "react-native-fetch-api": "^1.0.2", "stream-to-it": "^0.2.2" }, From 0edd2c0bc23a7f39829f6811946ab07cd1070a90 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 28 May 2021 16:49:11 +0100 Subject: [PATCH 3/3] chore: add version number --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 593d0d7..d59d94d 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "nanoid": "^3.1.20", "native-abort-controller": "^1.0.3", "native-fetch": "^3.0.0", - "node-fetch": "npm:@achingbrain/node-fetch@^2.0.0", + "node-fetch": "npm:@achingbrain/node-fetch@^2.6.3", "react-native-fetch-api": "^1.0.2", "stream-to-it": "^0.2.2" },