@whatwg-node/node-fetch 0.5.4 → 0.5.5-alpha-20240125133545-c893171f80c7ec82a9649f392816a91811d710fa
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 +1 -1
- package/cjs/ReadableStream.js +1 -1
- package/esm/Body.js +1 -1
- package/esm/ReadableStream.js +1 -1
- package/package.json +1 -1
package/cjs/Body.js
CHANGED
@@ -250,7 +250,7 @@ function processBodyInit(bodyInit) {
|
|
250
250
|
},
|
251
251
|
};
|
252
252
|
}
|
253
|
-
if (bodyInit instanceof ReadableStream_js_1.PonyfillReadableStream) {
|
253
|
+
if (bodyInit instanceof ReadableStream_js_1.PonyfillReadableStream && bodyInit.readable != null) {
|
254
254
|
return {
|
255
255
|
bodyType: BodyInitType.ReadableStream,
|
256
256
|
bodyFactory: () => bodyInit,
|
package/cjs/ReadableStream.js
CHANGED
@@ -52,7 +52,7 @@ function isReadableStream(obj) {
|
|
52
52
|
class PonyfillReadableStream {
|
53
53
|
constructor(underlyingSource) {
|
54
54
|
this.locked = false;
|
55
|
-
if (underlyingSource instanceof PonyfillReadableStream) {
|
55
|
+
if (underlyingSource instanceof PonyfillReadableStream && underlyingSource.readable != null) {
|
56
56
|
this.readable = underlyingSource.readable;
|
57
57
|
}
|
58
58
|
else if (isNodeReadable(underlyingSource)) {
|
package/esm/Body.js
CHANGED
@@ -245,7 +245,7 @@ function processBodyInit(bodyInit) {
|
|
245
245
|
},
|
246
246
|
};
|
247
247
|
}
|
248
|
-
if (bodyInit instanceof PonyfillReadableStream) {
|
248
|
+
if (bodyInit instanceof PonyfillReadableStream && bodyInit.readable != null) {
|
249
249
|
return {
|
250
250
|
bodyType: BodyInitType.ReadableStream,
|
251
251
|
bodyFactory: () => bodyInit,
|
package/esm/ReadableStream.js
CHANGED
@@ -49,7 +49,7 @@ function isReadableStream(obj) {
|
|
49
49
|
export class PonyfillReadableStream {
|
50
50
|
constructor(underlyingSource) {
|
51
51
|
this.locked = false;
|
52
|
-
if (underlyingSource instanceof PonyfillReadableStream) {
|
52
|
+
if (underlyingSource instanceof PonyfillReadableStream && underlyingSource.readable != null) {
|
53
53
|
this.readable = underlyingSource.readable;
|
54
54
|
}
|
55
55
|
else if (isNodeReadable(underlyingSource)) {
|
package/package.json
CHANGED