@whatwg-node/node-fetch 0.0.1-alpha-20221228081333-b271a45 → 0.0.1-alpha-20221228082016-9ef2266
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 +2 -1
- package/index.mjs +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -128,7 +128,7 @@ class PonyfillReadableStream {
|
|
128
128
|
var _a;
|
129
129
|
try {
|
130
130
|
const controller = createController(0, this);
|
131
|
-
await ((_a = underlyingSource === null || underlyingSource === void 0 ? void 0 : underlyingSource.start) === null || _a === void 0 ? void 0 : _a.call(underlyingSource,
|
131
|
+
await ((_a = underlyingSource === null || underlyingSource === void 0 ? void 0 : underlyingSource.start) === null || _a === void 0 ? void 0 : _a.call(underlyingSource, controller));
|
132
132
|
controller._flush();
|
133
133
|
callback(null);
|
134
134
|
}
|
@@ -161,6 +161,7 @@ class PonyfillReadableStream {
|
|
161
161
|
}
|
162
162
|
getReader(_options) {
|
163
163
|
const iterator = this.readable[Symbol.asyncIterator]();
|
164
|
+
this.locked = true;
|
164
165
|
return {
|
165
166
|
read() {
|
166
167
|
return iterator.next();
|
package/index.mjs
CHANGED
@@ -124,7 +124,7 @@ class PonyfillReadableStream {
|
|
124
124
|
var _a;
|
125
125
|
try {
|
126
126
|
const controller = createController(0, this);
|
127
|
-
await ((_a = underlyingSource === null || underlyingSource === void 0 ? void 0 : underlyingSource.start) === null || _a === void 0 ? void 0 : _a.call(underlyingSource,
|
127
|
+
await ((_a = underlyingSource === null || underlyingSource === void 0 ? void 0 : underlyingSource.start) === null || _a === void 0 ? void 0 : _a.call(underlyingSource, controller));
|
128
128
|
controller._flush();
|
129
129
|
callback(null);
|
130
130
|
}
|
@@ -157,6 +157,7 @@ class PonyfillReadableStream {
|
|
157
157
|
}
|
158
158
|
getReader(_options) {
|
159
159
|
const iterator = this.readable[Symbol.asyncIterator]();
|
160
|
+
this.locked = true;
|
160
161
|
return {
|
161
162
|
read() {
|
162
163
|
return iterator.next();
|
package/package.json
CHANGED