@edge-runtime/cookies
Advanced tools
Comparing version 3.2.3 to 3.3.0
@@ -178,2 +178,3 @@ // Type definitions for cookie 0.5 | ||
getAll(...args: [key: string] | [options: ResponseCookie] | []): ResponseCookie[]; | ||
has(name: string): boolean; | ||
/** | ||
@@ -190,2 +191,7 @@ * {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise. | ||
declare function stringifyCookie(c: ResponseCookie | RequestCookie): string; | ||
/** Parse a `Cookie` header value */ | ||
declare function parseCookie(cookie: string): Map<string, string>; | ||
/** Parse a `Set-Cookie` header value */ | ||
declare function parseSetCookie(setCookie: string): undefined | ResponseCookie; | ||
/** | ||
@@ -205,2 +211,2 @@ * @source https://github.com/nfriedly/set-cookie-parser/blob/master/lib/set-cookie.js | ||
export { CookieListItem, RequestCookie, RequestCookies, ResponseCookie, ResponseCookies, splitCookiesString }; | ||
export { CookieListItem, RequestCookie, RequestCookies, ResponseCookie, ResponseCookies, parseCookie, parseSetCookie, splitCookiesString, stringifyCookie }; |
@@ -25,3 +25,6 @@ "use strict"; | ||
ResponseCookies: () => ResponseCookies, | ||
splitCookiesString: () => splitCookiesString | ||
parseCookie: () => parseCookie, | ||
parseSetCookie: () => parseSetCookie, | ||
splitCookiesString: () => splitCookiesString, | ||
stringifyCookie: () => stringifyCookie | ||
}); | ||
@@ -265,2 +268,5 @@ module.exports = __toCommonJS(src_exports); | ||
} | ||
has(name) { | ||
return this._parsed.has(name); | ||
} | ||
/** | ||
@@ -313,3 +319,6 @@ * {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise. | ||
ResponseCookies, | ||
splitCookiesString | ||
parseCookie, | ||
parseSetCookie, | ||
splitCookiesString, | ||
stringifyCookie | ||
}); |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://edge-runtime.vercel.app/packages/cookies", | ||
"version": "3.2.3", | ||
"version": "3.3.0", | ||
"main": "dist/index.js", | ||
@@ -8,0 +8,0 @@ "module": "dist/index.mjs", |
Sorry, the diff of this file is not supported yet
47422
804