@whatwg-node/node-fetch 0.0.1-alpha-20221228080239-7c1fd2a → 0.0.1-alpha-20221228081333-b271a45
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/index.js +3 -1
- package/index.mjs +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -78,7 +78,7 @@ function createController(desiredSize, readable) {
|
|
78
78
|
readable.push(concatenated);
|
79
79
|
chunks = [];
|
80
80
|
}
|
81
|
-
}
|
81
|
+
},
|
82
82
|
};
|
83
83
|
}
|
84
84
|
class PonyfillReadableStream {
|
@@ -127,7 +127,9 @@ class PonyfillReadableStream {
|
|
127
127
|
async construct(callback) {
|
128
128
|
var _a;
|
129
129
|
try {
|
130
|
+
const controller = createController(0, this);
|
130
131
|
await ((_a = underlyingSource === null || underlyingSource === void 0 ? void 0 : underlyingSource.start) === null || _a === void 0 ? void 0 : _a.call(underlyingSource, createController(0, this)));
|
132
|
+
controller._flush();
|
131
133
|
callback(null);
|
132
134
|
}
|
133
135
|
catch (err) {
|
package/index.mjs
CHANGED
@@ -74,7 +74,7 @@ function createController(desiredSize, readable) {
|
|
74
74
|
readable.push(concatenated);
|
75
75
|
chunks = [];
|
76
76
|
}
|
77
|
-
}
|
77
|
+
},
|
78
78
|
};
|
79
79
|
}
|
80
80
|
class PonyfillReadableStream {
|
@@ -123,7 +123,9 @@ class PonyfillReadableStream {
|
|
123
123
|
async construct(callback) {
|
124
124
|
var _a;
|
125
125
|
try {
|
126
|
+
const controller = createController(0, this);
|
126
127
|
await ((_a = underlyingSource === null || underlyingSource === void 0 ? void 0 : underlyingSource.start) === null || _a === void 0 ? void 0 : _a.call(underlyingSource, createController(0, this)));
|
128
|
+
controller._flush();
|
127
129
|
callback(null);
|
128
130
|
}
|
129
131
|
catch (err) {
|
package/package.json
CHANGED