@whatwg-node/node-fetch 0.7.13-alpha-20250316013348-3c5910f2427d78311ae177c7ba02ffe499a1a399 → 0.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/Body.js +2 -1
- package/esm/Body.js +2 -1
- package/package.json +2 -2
package/cjs/Body.js
CHANGED
@@ -131,8 +131,9 @@ class PonyfillBody {
|
|
131
131
|
const _body = this.generateBody();
|
132
132
|
if (!_body) {
|
133
133
|
this._chunks = [];
|
134
|
-
return (0, utils_js_1.fakePromise)(
|
134
|
+
return (0, utils_js_1.fakePromise)(this._chunks);
|
135
135
|
}
|
136
|
+
this._chunks = [];
|
136
137
|
_body.readable.on('data', chunk => {
|
137
138
|
this._chunks.push(chunk);
|
138
139
|
});
|
package/esm/Body.js
CHANGED
@@ -127,8 +127,9 @@ export class PonyfillBody {
|
|
127
127
|
const _body = this.generateBody();
|
128
128
|
if (!_body) {
|
129
129
|
this._chunks = [];
|
130
|
-
return fakePromise(
|
130
|
+
return fakePromise(this._chunks);
|
131
131
|
}
|
132
|
+
this._chunks = [];
|
132
133
|
_body.readable.on('data', chunk => {
|
133
134
|
this._chunks.push(chunk);
|
134
135
|
});
|
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "@whatwg-node/node-fetch",
|
3
|
-
"version": "0.7.13
|
3
|
+
"version": "0.7.13",
|
4
4
|
"description": "Fetch API implementation for Node",
|
5
5
|
"sideEffects": false,
|
6
6
|
"dependencies": {
|
7
7
|
"@whatwg-node/disposablestack": "^0.0.6",
|
8
|
-
"@whatwg-node/promise-helpers": "1.2.5
|
8
|
+
"@whatwg-node/promise-helpers": "^1.2.5",
|
9
9
|
"busboy": "^1.6.0",
|
10
10
|
"tslib": "^2.6.3"
|
11
11
|
},
|