Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

enmap

Package Overview
Dependencies
Maintainers
1
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enmap - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

2

package.json
{
"name": "enmap",
"version": "3.0.1",
"version": "3.0.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -153,11 +153,10 @@ const dotProp = require('dot-prop');

}
const insert = JSON.parse(JSON.stringify(data));
const oldValue = this.get(key) || null;
if (typeof this.changedCB === 'function') {
this.changedCB(key, oldValue, insert);
this.changedCB(key, oldValue, data);
}
if (this.persistent) {
this.db.set(key, insert);
this.db.set(key, JSON.parse(JSON.stringify(data)));
}
return super.set(key, insert);
return super.set(key, data);
}

@@ -164,0 +163,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