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 2.0.2 to 2.0.3

2

package.json
{
"name": "enmap",
"version": "2.0.2",
"version": "2.0.3",
"description": "",

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

@@ -124,3 +124,10 @@ /**

if (!val) throw 'Cannot set null, undefined or empty value to a key. Use Enmap.delete(key) instead.';
let insert = typeof val === 'object' ? Object.create(val) : val;
let insert = val;
if (typeof val === 'object') {
const temp = {};
for (const prop in val) {
temp[prop] = val[prop];
}
insert = temp;
}
insert = val.constructor.name === 'Array' ? [...insert] : insert;

@@ -127,0 +134,0 @@ super.set(key, insert);

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