@whatwg-node/fetch
Advanced tools
Comparing version 0.4.4 to 0.4.5-alpha-20220925232816-030a991
# @whatwg-node/fetch | ||
## 0.4.5-alpha-20220925232816-030a991 | ||
### Patch Changes | ||
- [#140](https://github.com/ardatan/whatwg-node/pull/140) [`77b4592`](https://github.com/ardatan/whatwg-node/commit/77b4592a6ee5aa35ff92c4f8a76c2f93127d8045) Thanks [@ardatan](https://github.com/ardatan)! - Fix Request.formData method | ||
## 0.4.4 | ||
@@ -4,0 +10,0 @@ |
@@ -19,3 +19,3 @@ const busboy = require('busboy'); | ||
fileStream.on('data', (chunk) => { | ||
chunks.push(chunk); | ||
chunks.push(...chunk); | ||
}) | ||
@@ -26,3 +26,3 @@ fileStream.on('close', () => { | ||
} | ||
const file = new File(chunks, filename, { type: mimeType }); | ||
const file = new File([new Uint8Array(chunks)], filename, { type: mimeType }); | ||
formData.set(name, file); | ||
@@ -29,0 +29,0 @@ resolve(file); |
{ | ||
"name": "@whatwg-node/fetch", | ||
"version": "0.4.4", | ||
"version": "0.4.5-alpha-20220925232816-030a991", | ||
"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
27209
11
619