Socket
Socket
Sign inDemoInstall

node-persist

Package Overview
Dependencies
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-persist - npm Package Compare versions

Comparing version 2.0.7 to 2.0.8

2

package.json
{
"name": "node-persist",
"version": "2.0.7",
"version": "2.0.8",
"description": "Super-easy (and fast) persistent data structures in Node.js, modeled after HTML5 localStorage",

@@ -5,0 +5,0 @@ "main": "./src/node-persist.js",

@@ -27,7 +27,5 @@ # node-persist

//you must first call storage.initSync
storage.init( /* options ... */ );
//then start using it
storage.setItem('name','yourname')
storage.init( /* options ... */ ).then(function() {
//then start using it
storage.setItem('name','yourname')
.then(function() {

@@ -41,4 +39,4 @@

})
});
```

@@ -45,0 +43,0 @@

@@ -668,2 +668,3 @@ /*

this._persistInterval = setInterval(persistFunction || this.persist.bind(this), this.options.interval);
this._persistInterval.unref();
},

@@ -678,2 +679,3 @@

this._expiredKeysInterval = setInterval(this.removeExpiredItems.bind(this), this.options.expiredInterval);
this._expiredKeysInterval.unref();
},

@@ -680,0 +682,0 @@

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