node-persist
Advanced tools
Comparing version 3.0.4 to 3.0.5
{ | ||
"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; |
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
31948