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 3.0.4 to 3.0.5

2

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

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

@@ -45,3 +45,3 @@ # node-persist

* `continuous` and `interval` options were removed, since we immediately persist to disk now, __asynchronously__
* `forEach` callback now accepts an object `callback({key, value})` instead of 2 arguments `callback(key, value)
* `forEach` callback now accepts an object `callback({key, value})` instead of 2 arguments `callback(key, value)`

@@ -48,0 +48,0 @@ ## 2.0.0 change logs

@@ -23,5 +23,5 @@ /*

*/
nodePersist.init = function (userOptions, callback) {
nodePersist.init = async function (userOptions) {
const localStorage = nodePersist.defaultInstance = nodePersist.create(userOptions);
let ret = localStorage.init(callback);
let ret = await localStorage.init(userOptions);
mixin(nodePersist, localStorage, {skip: ['init', 'create']});

@@ -28,0 +28,0 @@ return ret;

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