Comparing version 0.0.3 to 0.0.4
12
index.js
@@ -26,10 +26,14 @@ 'use strict'; | ||
var data = cookie.get('koekje') || '' | ||
var data = cookie.get('koekje') | ||
, length = 0 | ||
, key; | ||
data = data.charAt(0) === prefix ? data : ''; | ||
storage = qs.parse(data.slice(1)); | ||
storage = data && data.charAt(0) === prefix | ||
? qs.parse(data.slice(1)) | ||
: {}; | ||
for (key in storage) length++; | ||
for (key in storage) { | ||
if (has.call(storage, key)) length++; | ||
} | ||
koekje.length = length; | ||
@@ -36,0 +40,0 @@ } |
{ | ||
"name": "koekje", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A sessionStorage interface for cookies", | ||
@@ -38,5 +38,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"cookie-monster": "0.0.x", | ||
"cookie-monster": "0.1.x", | ||
"querystringify": "0.0.x" | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9574
179
0
+ Addedcookie-monster@0.1.1(transitive)
- Removedcookie-monster@0.0.7(transitive)
Updatedcookie-monster@0.1.x