@edge-runtime/cookies
Advanced tools
Comparing version 3.2.2 to 3.2.3
@@ -185,3 +185,3 @@ // Type definitions for cookie 0.5 | ||
*/ | ||
delete(...args: [key: string] | [options: ResponseCookie]): this; | ||
delete(...args: [key: string] | [options: Omit<ResponseCookie, 'value' | 'expires'>]): this; | ||
toString(): string; | ||
@@ -188,0 +188,0 @@ } |
@@ -278,4 +278,4 @@ "use strict"; | ||
delete(...args) { | ||
const name = typeof args[0] === "string" ? args[0] : args[0].name; | ||
return this.set({ name, value: "", expires: /* @__PURE__ */ new Date(0) }); | ||
const [name, path, domain] = typeof args[0] === "string" ? [args[0]] : [args[0].name, args[0].path, args[0].domain]; | ||
return this.set({ name, path, domain, value: "", expires: /* @__PURE__ */ new Date(0) }); | ||
} | ||
@@ -282,0 +282,0 @@ [Symbol.for("edge-runtime.inspect.custom")]() { |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://edge-runtime.vercel.app/packages/cookies", | ||
"version": "3.2.2", | ||
"version": "3.2.3", | ||
"main": "dist/index.js", | ||
@@ -8,0 +8,0 @@ "module": "dist/index.mjs", |
Sorry, the diff of this file is not supported yet
46716