Comparing version 2.2.1 to 2.3.0
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -51,3 +51,4 @@ "use strict"; | ||
publish: true, | ||
publishRemoveOnClear: false | ||
publishRemoveOnClear: false, | ||
primaryKey: "id" | ||
}; | ||
@@ -173,2 +174,7 @@ | ||
function setValue(key, value, metadata) { | ||
if (typeof key !== "string" && isObject(key)) { | ||
metadata = value; | ||
value = key; | ||
key = value[options.primaryKey]; | ||
} | ||
throwIfUndefined(value); | ||
@@ -175,0 +181,0 @@ var results = setCache(key, value, metadata); |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "storeit", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"description": "A key/value storage system that publishes events.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/Storeit.js", |
@@ -0,0 +0,0 @@ Storeit! |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
44645
415
0