jscustomstorage
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -0,1 +1,2 @@ | ||
const myStorageDefaultExpr = 1000 * 60 * 60 * 24; | ||
const myStorage = { | ||
@@ -35,3 +36,3 @@ add: function(key, value) { | ||
localcookie: { | ||
set: function(key, value, expr = 1000 * 60 * 60 * 24) { | ||
set: function(key, value, expr = myStorageDefaultExpr) { | ||
const now = new Date(); | ||
@@ -38,0 +39,0 @@ const item = { value: value, expiry: now.getTime() + expr }; |
{ | ||
"name": "jscustomstorage", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2438
55