@whatwg-node/fetch
Advanced tools
Comparing version 0.4.5-alpha-20220926022311-d4721dd to 0.4.5-alpha-20220926033952-9ec09b0
# @whatwg-node/fetch | ||
## 0.4.5-alpha-20220926022311-d4721dd | ||
## 0.4.5-alpha-20220926033952-9ec09b0 | ||
@@ -5,0 +5,0 @@ ### Patch Changes |
@@ -168,21 +168,2 @@ const handleFileRequest = require("./handle-file-request"); | ||
options = options || {}; | ||
if (options.body != null && options.body.read && options.body.on) { | ||
const readable = options.body; | ||
options.body = new ponyfills.ReadableStream({ | ||
pull(controller) { | ||
const chunk = readable.read(); | ||
if (chunk != null) { | ||
controller.enqueue(chunk); | ||
} else { | ||
controller.close(); | ||
} | ||
}, | ||
close(e) { | ||
readable.destroy(e); | ||
} | ||
}); | ||
Object.defineProperty(options.body, Symbol.asyncIterator, { | ||
value: () => readable[Symbol.asyncIterator]() | ||
}); | ||
} | ||
super(requestOrUrl, options); | ||
@@ -189,0 +170,0 @@ const contentType = this.headers.get("content-type"); |
{ | ||
"name": "@whatwg-node/fetch", | ||
"version": "0.4.5-alpha-20220926022311-d4721dd", | ||
"version": "0.4.5-alpha-20220926033952-9ec09b0", | ||
"description": "Cross Platform Smart Fetch Ponyfill", | ||
@@ -5,0 +5,0 @@ "author": "Arda TANRIKULU <ardatanrikulu@gmail.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26356
604