cookie-encrypter
Advanced tools
Comparing version 0.0.6 to 0.1.0
@@ -93,3 +93,3 @@ var crypto = require('crypto'); | ||
if (typeof str !== 'string' || str.substr(0, 2) !== 'j:') { | ||
return undefined; | ||
return str; | ||
} | ||
@@ -100,3 +100,3 @@ | ||
} catch (err) { | ||
return undefined; | ||
return str; | ||
} | ||
@@ -103,0 +103,0 @@ } |
{ | ||
"name": "cookie-encrypter", | ||
"version": "0.0.6", | ||
"version": "0.1.0", | ||
"description": "cookie encryption", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
# cookie-encrypter | ||
# encrypt/decrypt your cookie the easy way | ||
@@ -3,0 +3,0 @@ Express middleware to use with [cookie-parser](https://github.com/expressjs/cookie-parser). |
6158
3