@whatwg-node/node-fetch
Advanced tools
Comparing version 0.3.2 to 0.3.3-rc-20230320120712-ea18212
@@ -12,4 +12,7 @@ import { PonyfillBlob } from './Blob'; | ||
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>; | ||
entries(): IterableIterator<[string, FormDataEntryValue]>; | ||
keys(): IterableIterator<string>; | ||
values(): IterableIterator<FormDataEntryValue>; | ||
forEach(callback: (value: FormDataEntryValue, key: string, parent: this) => void): void; | ||
} | ||
export declare function getStreamFromFormData(formData: FormData, boundary?: string): PonyfillReadableStream<Uint8Array>; |
@@ -17,4 +17,6 @@ export type PonyfillHeadersInit = [string, string][] | Record<string, string | string[] | undefined> | Headers; | ||
forEach(callback: (value: string, key: string, parent: Headers) => void): void; | ||
keys(): IterableIterator<string>; | ||
values(): IterableIterator<string>; | ||
entries(): IterableIterator<[string, string]>; | ||
[Symbol.iterator](): IterableIterator<[string, string]>; | ||
} |
19
index.js
@@ -423,2 +423,15 @@ 'use strict'; | ||
} | ||
entries() { | ||
return this[Symbol.iterator](); | ||
} | ||
keys() { | ||
return this.map.keys(); | ||
} | ||
*values() { | ||
for (const values of this.map.values()) { | ||
for (const value of values) { | ||
yield value; | ||
} | ||
} | ||
} | ||
forEach(callback) { | ||
@@ -969,2 +982,8 @@ for (const [key, value] of this) { | ||
} | ||
keys() { | ||
return this.getMap().keys(); | ||
} | ||
values() { | ||
return this.getMap().values(); | ||
} | ||
entries() { | ||
@@ -971,0 +990,0 @@ return this.getMap().entries(); |
{ | ||
"name": "@whatwg-node/node-fetch", | ||
"version": "0.3.2", | ||
"version": "0.3.3-rc-20230320120712-ea18212", | ||
"description": "Fetch API implementation for Node", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
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
112757
3102