undici-types
Advanced tools
Comparing version 6.15.0 to 6.16.0
@@ -88,3 +88,3 @@ // based on https://github.com/Ethan-Arrowood/undici-fetch/blob/249269714db874351589d2d364a0645d5160ae71/index.d.ts (MIT license) | ||
readonly entries: () => SpecIterableIterator<[string, string]> | ||
readonly [Symbol.iterator]: () => SpecIterator<[string, string]> | ||
readonly [Symbol.iterator]: () => SpecIterableIterator<[string, string]> | ||
} | ||
@@ -167,2 +167,3 @@ | ||
readonly redirect: RequestRedirect | ||
readonly referrer: string | ||
readonly referrerPolicy: ReferrerPolicy | ||
@@ -169,0 +170,0 @@ readonly url: string |
@@ -74,7 +74,7 @@ import { IncomingHttpHeaders } from './header' | ||
path: string; | ||
origin: string; | ||
method: string; | ||
body?: BodyInit | Dispatcher.DispatchOptions['body']; | ||
headers: Headers | Record<string, string>; | ||
maxRedirections: number; | ||
headers?: Headers | Record<string, string>; | ||
origin?: string; | ||
body?: BodyInit | Dispatcher.DispatchOptions['body'] | null; | ||
maxRedirections?: number; | ||
} | ||
@@ -81,0 +81,0 @@ |
{ | ||
"name": "undici-types", | ||
"version": "6.15.0", | ||
"version": "6.16.0", | ||
"description": "A stand-alone types package for Undici", | ||
@@ -5,0 +5,0 @@ "homepage": "https://undici.nodejs.org", |
@@ -11,22 +11,9 @@ export namespace util { | ||
* @param headers Header object | ||
* @param obj Object to specify a proxy object. Used to assign parsed values. | ||
* @returns If `obj` is specified, it is equivalent to `obj`. | ||
*/ | ||
export function parseHeaders( | ||
headers: | ||
| Record<string, string | string[]> | ||
| (Buffer | string | (Buffer | string)[])[] | ||
headers: (Buffer | string | (Buffer | string)[])[], | ||
obj?: Record<string, string | string[]> | ||
): Record<string, string | string[]>; | ||
/** | ||
* Receives a header object and returns the parsed value. | ||
* @param headers Header object | ||
* @param obj Object to specify a proxy object. Used to assign parsed values. But, if `headers` is an object, it is not used. | ||
* @returns If `headers` is an object, it is `headers`. Otherwise, if `obj` is specified, it is equivalent to `obj`. | ||
*/ | ||
export function parseHeaders< | ||
H extends | ||
| Record<string, string | string[]> | ||
| (Buffer | string | (Buffer | string)[])[] | ||
>( | ||
headers: H, | ||
obj?: H extends any[] ? Record<string, string | string[]> : never | ||
): Record<string, string | string[]>; | ||
} |
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
83174
2036