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 5.2.5 to 5.2.6

2

package.json
{
"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) {

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