🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

node-persist

Package Overview
Dependencies
Maintainers
3
Versions
42
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

to
2.0.1

2

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

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

@@ -298,3 +298,3 @@ /*

function() {
var value = this.data[key].value;
var value = this.data[key] && this.data[key].value;
delete this.data[key];

@@ -314,3 +314,3 @@ this.log('removed: ' + key);

removeItemSync: function (key) {
var value = this.data[key].value;
var value = this.data[key] && this.data[key].value;
this.removePersistedKeySync(key);

@@ -404,3 +404,3 @@ delete this.data[key];

var deferred = Q.defer();
var output = {key: key, value: this.data[key].value, file: file, ttl: this.data[key].ttl};
var output = {key: key, value: this.data[key] && this.data[key].value, file: file, ttl: this.data[key] && this.data[key].ttl};

@@ -428,3 +428,3 @@ fs.writeFile(file, this.stringify(output), options.encoding, function(err) {

var output = {key: key, value: this.data[key].value, file: file, ttl: this.data[key].ttl};
var output = {key: key, value: this.data[key] && this.data[key].value, file: file, ttl: this.data[key] && this.data[key].ttl};
try {

@@ -431,0 +431,0 @@ fs.writeFileSync(file, this.stringify(output));