Comparing version 3.0.1 to 3.0.2
{ | ||
"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 @@ |
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
99486
1343