Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koa-cookies

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-cookies - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

2

package.json
{
"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 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc