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.1.1 to 3.1.2

4

package.json
{
"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 @@ },

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