Comparing version 5.2.3 to 5.2.4
{ | ||
"name": "enmap", | ||
"version": "5.2.3", | ||
"version": "5.2.4", | ||
"description": "A simple database wrapper to make sqlite database interactions much easier for beginners, with additional array helper methods.", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
@@ -579,3 +579,2 @@ // Lodash should probably be a core lib but hey, it's useful! | ||
if (!isObject(clonedValue)) throw new Err(`Default value for "${key}" in enmap "${this.name}" must be an object when merging with an object value.`, 'EnmapArgumentError'); | ||
// const merged = Object.assign(clonedValue, super.get(key)); | ||
const merged = merge(clonedValue, this.get(key)); | ||
@@ -773,3 +772,3 @@ super.set(key, merged); | ||
this[_check](key, ['Array', 'Object']); | ||
const data = super.get(key); | ||
const data = this.get(key); | ||
if (!isNil(path)) { | ||
@@ -971,3 +970,3 @@ const propValue = _get(data, path); | ||
this[_check](key, 'Object'); | ||
const data = super.get(key); | ||
const data = this.get(key); | ||
if (isNil(_get(data, path))) { | ||
@@ -974,0 +973,0 @@ throw new Err(`The property "${path}" in key "${key}" does not exist. Please set() it or ensure() it."`, 'EnmapPathError'); |
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
303159
13
2443