@edge-runtime/cookies
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -146,3 +146,3 @@ /** | ||
constructor(requestHeaders: Headers); | ||
[Symbol.iterator](): IterableIterator<[string, RequestCookie]>; | ||
[Symbol.iterator](): MapIterator<[string, RequestCookie]>; | ||
/** | ||
@@ -149,0 +149,0 @@ * The amount of cookies received from the client |
@@ -300,4 +300,4 @@ "use strict"; | ||
delete(...args) { | ||
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) }); | ||
const [name, options] = typeof args[0] === "string" ? [args[0]] : [args[0].name, args[0]]; | ||
return this.set({ ...options, name, value: "", expires: /* @__PURE__ */ new Date(0) }); | ||
} | ||
@@ -304,0 +304,0 @@ [Symbol.for("edge-runtime.inspect.custom")]() { |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://edge-runtime.vercel.app/packages/cookies", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"main": "dist/index.js", | ||
@@ -31,4 +31,4 @@ "module": "dist/index.mjs", | ||
"tsup": "8", | ||
"@edge-runtime/format": "3.0.0", | ||
"@edge-runtime/jest-environment": "3.0.0" | ||
"@edge-runtime/jest-environment": "3.0.3", | ||
"@edge-runtime/format": "3.0.0" | ||
}, | ||
@@ -35,0 +35,0 @@ "engines": { |
@@ -8,3 +8,3 @@ <div align="center"> | ||
<p align="center"><strong>@edge-runtime/cookies</strong>: An Edge Runtime compatible cookie helpers.</p> | ||
<p align="center">See <a href="https://edge-runtime.vercel.app/packages/jest-environment" target='_blank' rel='noopener noreferrer'>@edge-runtime/cookies</a> section in our <a href="https://edge-runtime.vercel.app/" target='_blank' rel='noopener noreferrer'>website</a> for more information.</p> | ||
<p align="center">See <a href="https://edge-runtime.vercel.app/packages/cookies" target='_blank' rel='noopener noreferrer'>@edge-runtime/cookies</a> section in our <a href="https://edge-runtime.vercel.app/" target='_blank' rel='noopener noreferrer'>website</a> for more information.</p> | ||
<br> | ||
@@ -11,0 +11,0 @@ </div> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
42687
6