We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4ff09e commit 1f9316fCopy full SHA for 1f9316f
1 file changed
source/operations/putFileContents.ts
@@ -28,7 +28,12 @@ export async function putFileContents(
28
const headers: Headers = {
29
"Content-Type": "application/octet-stream"
30
};
31
- if (typeof WEB === "undefined" && data instanceof Stream.Readable) {
+ if (
32
+ typeof WEB === "undefined" &&
33
+ typeof Stream !== "undefined" &&
34
+ typeof Stream?.Readable !== "undefined" &&
35
+ data instanceof Stream.Readable
36
+ ) {
37
// Skip, no content-length
38
} else if (contentLength === false) {
39
// Skip, disabled
0 commit comments