node-persist
Advanced tools
Comparing version 3.1.1 to 3.1.2
{ | ||
"name": "node-persist", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "Super-easy (and fast) persistent data structures in Node.js, modeled after HTML5 localStorage", | ||
@@ -43,5 +43,5 @@ "main": "./src/node-persist.js", | ||
"chai": "^4.1.2", | ||
"mocha": "^5.0.5", | ||
"mocha": "^10.2.0", | ||
"rimraf": "^2.4.3" | ||
} | ||
} |
@@ -120,3 +120,3 @@ /* | ||
data: async function () { | ||
data: function () { | ||
return this.readDirectory(this.options.dir); | ||
@@ -156,3 +156,3 @@ }, | ||
valuesWithKeyMatch: async function(match) { | ||
valuesWithKeyMatch: function(match) { | ||
match = match || /.*/; | ||
@@ -211,7 +211,7 @@ let filter = match instanceof RegExp ? datum => match.test(datum.key) : datum => datum.key.indexOf(match) !== -1; | ||
getDatum: async function (key) { | ||
getDatum: function (key) { | ||
return this.readFile(this.getDatumPath(key)); | ||
}, | ||
getRawDatum: async function (key) { | ||
getRawDatum: function (key) { | ||
return this.readFile(this.getDatumPath(key), {raw: true}); | ||
@@ -237,3 +237,3 @@ }, | ||
removeItem: async function (key) { | ||
removeItem: function (key) { | ||
return this.deleteFile(this.getDatumPath(key)); | ||
@@ -240,0 +240,0 @@ }, |
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
36503