node-cookie
Advanced tools
Comparing version
{ | ||
"name": "node-cookie", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "sign, encrypt and parse http cookies", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -113,3 +113,3 @@ 'use strict' | ||
Cookie._jsonCookie = function (str) { | ||
if (str.substr(0, 2) !== 'j:') { | ||
if (typeof (str) === 'string' && str.substr(0, 2) !== 'j:') { | ||
return str | ||
@@ -116,0 +116,0 @@ } |
9521
0.31%