@otterhttp/cookie
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -11,14 +11,14 @@ /** | ||
}): Record<string, string>; | ||
type SerializeOptions = Partial<{ | ||
encode: (str: string) => string; | ||
maxAge: number; | ||
domain: string; | ||
path: string; | ||
httpOnly: boolean; | ||
secure: boolean; | ||
sameSite: boolean | "Strict" | "strict" | "Lax" | "lax" | "None" | "none" | string; | ||
expires: Date; | ||
}>; | ||
type SerializeOptions = { | ||
encode?: ((str: string) => string) | null | undefined; | ||
maxAge?: number | null | undefined; | ||
domain?: string | null | undefined; | ||
path?: string | null | undefined; | ||
httpOnly?: boolean | null | undefined; | ||
secure?: boolean | null | undefined; | ||
sameSite?: boolean | "Strict" | "strict" | "Lax" | "lax" | "None" | "none" | string | null | undefined; | ||
expires?: Date | null | undefined; | ||
}; | ||
declare function serialize(name: string, val: string, options?: SerializeOptions): string; | ||
export { type SerializeOptions, parse, serialize }; |
{ | ||
"name": "@otterhttp/cookie", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "HTTP cookie parser and serializer for Node.js", |
11422