Comparing version 5.2.5 to 5.2.6
{ | ||
"name": "enmap", | ||
"version": "5.2.5", | ||
"version": "5.2.6", | ||
"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", |
@@ -582,3 +582,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)); | ||
@@ -777,3 +776,3 @@ super.set(key, merged); | ||
this[_check](key, ['Array', 'Object']); | ||
const data = super.get(key); | ||
const data = this.get(key); | ||
if (!isNil(path)) { | ||
@@ -979,3 +978,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))) { | ||
@@ -1046,2 +1045,3 @@ throw new Err(`The property "${path}" in key "${key}" does not exist. Please set() it or ensure() it."`, 'EnmapPathError'); | ||
[_fetchCheck](key, force = false) { | ||
key = key.toString(); | ||
if (!['String', 'Number'].includes(key.constructor.name)) return; | ||
@@ -1048,0 +1048,0 @@ if (force) { |
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
166015