egg-cookies
Advanced tools
Comparing version 2.2.6 to 2.2.7
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 @@ ================== |
@@ -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 @@ |
{ | ||
"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" | ||
} | ||
} |
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
20103
344