node_modules: update

This commit is contained in:
dawidd6 authored and github-actions[bot] committed 2026-10-22 19:47:05 +00:00
1 parent 67d71b1eee
commit b43b7a6aba
13 files changed
+154 -23

No files matched your search

+18 -1
View File
@@ -107,6 +107,22 @@ export declare function buildHeaderValue(structured: StructuredHeaderValue): str
* @return A list of encoded keys and headers
*/
export declare function buildHeaderParam(key: string, data: string | Buffer, maxLength?: number): EncodedHeaderParam[];
/**
* Options of parseHeaderValue()
*/
export interface ParseHeaderValueOptions {
/**
* Drop the RFC 822 comments outside quoted strings, which the MIME headers allow and
* which are not part of the value: 'boundary=b (comment)' names the boundary 'b'. A
* parenthesis right behind the '=' of a parameter or behind a token character of its
* value continues the token, as it does for Python and postal-mime, so 'Invoice(1).pdf'
* keeps its name and 'boundary=(c)b' names the boundary '(c)b'. A comment that never
* closes runs to the end of the value, unless a parameter follows it, in which case it is
* content and the parameter survives. Comments are kept by default for the sake of the
* callers of this exported function, not because keeping them is ever the better reading
*/
stripComments?: boolean | undefined;
}
/**
* Parses a header value with key=value arguments into a structured
* object.
@@ -120,9 +136,10 @@ export declare function buildHeaderParam(key: string, data: string | Buffer, max
* }
*
* @param str Header value
* @param options Options, see ParseHeaderValueOptions
* @return Header value as a parsed structure
*/
export declare function parseHeaderValue(str: string): ParsedHeaderValue;
export declare function parseHeaderValue(str: string, options?: ParseHeaderValueOptions): ParsedHeaderValue;
/**
* Returns file extension for a content type string. If no suitable extensions
* are found, 'bin' is used as the default extension