cookie
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -0,1 +1,8 @@ | ||
0.2.2 / 2015-09-17 | ||
================== | ||
* Fix regression when setting empty cookie value | ||
- Ease the new restriction, which is just basic header-level validation | ||
* Fix typo in invalid value errors | ||
0.2.1 / 2015-09-17 | ||
@@ -14,2 +21,9 @@ ================== | ||
0.1.5 / 2015-09-17 | ||
================== | ||
* Fix regression when setting empty cookie value | ||
- Ease the new restriction, which is just basic header-level validation | ||
* Fix typo in invalid value errors | ||
0.1.4 / 2015-09-17 | ||
@@ -16,0 +30,0 @@ ================== |
@@ -103,3 +103,3 @@ /*! | ||
if (!fieldContentRegExp.test(name)) { | ||
throw new TypeError('argument name is invaid'); | ||
throw new TypeError('argument name is invalid'); | ||
} | ||
@@ -109,3 +109,3 @@ | ||
if (!fieldContentRegExp.test(value)) { | ||
if (value && !fieldContentRegExp.test(value)) { | ||
throw new TypeError('argument val is invalid'); | ||
@@ -124,3 +124,3 @@ } | ||
if (!fieldContentRegExp.test(opt.domain)) { | ||
throw new TypeError('option domain is invaid'); | ||
throw new TypeError('option domain is invalid'); | ||
} | ||
@@ -133,3 +133,3 @@ | ||
if (!fieldContentRegExp.test(opt.path)) { | ||
throw new TypeError('option path is invaid'); | ||
throw new TypeError('option path is invalid'); | ||
} | ||
@@ -136,0 +136,0 @@ |
{ | ||
"name": "cookie", | ||
"description": "cookie parsing and serialization", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"author": "Roman Shtylman <shtylman@gmail.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
9530