Socket
Socket
Sign inDemoInstall

egg-cookies

Package Overview
Dependencies
Maintainers
5
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-cookies - npm Package Compare versions

Comparing version 2.2.6 to 2.2.7

6

History.md
2.2.7 / 2019-04-28
==================
**fixes**
* [[`64e93e9`](http://github.com/eggjs/egg-cookies/commit/64e93e919558ee96e29de5c49d7132595e96b9b5)] - fix: empty cookie value should ignore maxAge (#17) (fengmk2 <<fengmk2@gmail.com>>)
2.2.6 / 2018-09-07

@@ -3,0 +9,0 @@ ==================

6

lib/cookie.js

@@ -33,3 +33,7 @@ 'use strict';

assert(!this.attrs.sameSite || this.attrs.sameSite === true || sameSiteRegExp.test(this.attrs.sameSite), 'argument option sameSite is invalid');
if (!value) this.attrs.expires = new Date(0);
if (!value) {
this.attrs.expires = new Date(0);
// make sure maxAge is empty
this.attrs.maxAge = null;
}
}

@@ -36,0 +40,0 @@

8

package.json
{
"name": "egg-cookies",
"version": "2.2.6",
"version": "2.2.7",
"description": "cookies module for egg",

@@ -21,3 +21,3 @@ "files": [

"cookies": "^0.7.1",
"egg-bin": "^1",
"egg-bin": "1",
"egg-ci": "^1.1.0",

@@ -39,3 +39,3 @@ "eslint": "^3.10.2",

"cov": "egg-bin cov",
"lint": "eslint .",
"lint": "eslint lib benchmark test *.js",
"ci": "npm run lint && egg-bin pkgfiles --check && npm run cov",

@@ -48,4 +48,4 @@ "autod": "autod"

"ci": {
"version": "4, 6, 8, 10"
"version": "4, 6, 8, 10, 12"
}
}
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