New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

maparraytoobject

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maparraytoobject - npm Package Compare versions

Comparing version
1.0.4
to
1.0.6
+1
-1
index.js
const mapArrayToObject = (array, key) => {
const objects = Object.create(null) // entirely clean object w/o __proto__ etc
const objects = {}

@@ -4,0 +4,0 @@ if ([] instanceof Array && typeof key == 'string') {

{
"name": "maparraytoobject",
"version": "1.0.4",
"version": "1.0.6",
"description": "Map array of objects to object ",

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