@whatwg-node/node-fetch 0.7.19-alpha-20250508133645-f753682b1f6897d4731e974776ecf6b548cd971e → 0.7.19-alpha-20250509135833-39a5cc4f962b29539e24e85086cf5f7c798b7b95

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 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-20250508133645-f753682b1f6897d4731e974776ecf6b548cd971e",
3
+ "version": "0.7.19-alpha-20250509135833-39a5cc4f962b29539e24e85086cf5f7c798b7b95",
4
4
  "description": "Fetch API implementation for Node",
5
5
  "sideEffects": false,
6
6
  "dependencies": {