cookie-monster
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -35,2 +35,6 @@ 'use strict'; | ||
if (opts.secure) { | ||
newCookie += '; secure' | ||
} | ||
doc.cookie = newCookie; | ||
@@ -37,0 +41,0 @@ |
{ | ||
"name": "cookie-monster", | ||
"description": "Browserify-compatible module to get and set cookies in the browser", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -11,3 +11,3 @@ var cookie = require('../index'); | ||
cookie.set('cookieKey', 'cookieVal'); | ||
document.cookie.should.equal('cookieKey=cookieVal'); | ||
document.cookie.should.contain('cookieKey=cookieVal'); | ||
}); | ||
@@ -14,0 +14,0 @@ |
6419
98