Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jscustomstorage

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jscustomstorage - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

3

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc