koa-cookies
Advanced tools
Comparing version 4.0.1 to 4.0.2
{ | ||
"name": "koa-cookies", | ||
"description": "Set, clear, and parse cookies in your Koa application", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "email": "zac@zacanger.com", |
@@ -21,8 +21,8 @@ # koa-cookies | ||
app.get('/foo', async (ctx, next) => { | ||
await setCookie('bar', 'baz')(ctx) | ||
await setCookie('bar', 'baz')(ctx) // => void | ||
}) | ||
app.get('/things', (ctx) => { | ||
await clearCookie('foo')(ctx) | ||
app.get('/things', async (ctx) => { | ||
await clearCookie('foo')(ctx) // => void | ||
}) | ||
app.get('/stuff', (ctx) => { | ||
app.get('/stuff', async (ctx) => { | ||
await parseCookie('bar')(ctx) // => string value for this cookie key | ||
@@ -29,0 +29,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20756