@whatwg-node/node-fetch 0.7.19-alpha-20250507141659-b5d5ecfe8f5fc29da590514bd08c927cc182e990 → 0.7.19-alpha-20250509132307-25d5aec24b2127bc1e621034f59d0a085d67333a
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/FormData.js +1 -0
- package/esm/FormData.js +1 -0
- package/package.json +1 -1
package/cjs/FormData.js
CHANGED
@@ -101,6 +101,7 @@ function getStreamFromFormData(formData, boundary = '---') {
|
|
101
101
|
controller.enqueue(node_buffer_1.Buffer.from(`Content-Disposition: form-data; name="${key}"${filenamePart}\r\n`));
|
102
102
|
controller.enqueue(node_buffer_1.Buffer.from(`Content-Type: ${blobOrString.type || 'application/octet-stream'}\r\n\r\n`));
|
103
103
|
const entryStream = blobOrString.stream();
|
104
|
+
// @ts-expect-error - ReadableStream is async iterable
|
104
105
|
currentAsyncIterator = entryStream[Symbol.asyncIterator]();
|
105
106
|
}
|
106
107
|
hasBefore = true;
|
package/esm/FormData.js
CHANGED
@@ -96,6 +96,7 @@ export function getStreamFromFormData(formData, boundary = '---') {
|
|
96
96
|
controller.enqueue(Buffer.from(`Content-Disposition: form-data; name="${key}"${filenamePart}\r\n`));
|
97
97
|
controller.enqueue(Buffer.from(`Content-Type: ${blobOrString.type || 'application/octet-stream'}\r\n\r\n`));
|
98
98
|
const entryStream = blobOrString.stream();
|
99
|
+
// @ts-expect-error - ReadableStream is async iterable
|
99
100
|
currentAsyncIterator = entryStream[Symbol.asyncIterator]();
|
100
101
|
}
|
101
102
|
hasBefore = true;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@whatwg-node/node-fetch",
|
3
|
-
"version": "0.7.19-alpha-
|
3
|
+
"version": "0.7.19-alpha-20250509132307-25d5aec24b2127bc1e621034f59d0a085d67333a",
|
4
4
|
"description": "Fetch API implementation for Node",
|
5
5
|
"sideEffects": false,
|
6
6
|
"dependencies": {
|