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

@ultraq/object-utils

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ultraq/object-utils - npm Package Compare versions

Comparing version
1.1.0
to
1.1.1
+9
-7
object-utils.js

@@ -28,11 +28,13 @@ /*

sources.forEach(source => {
Object.keys(source).forEach(key => {
let targetValue = target[key];
let sourceValue = source[key];
target[key] = targetValue instanceof Object && sourceValue instanceof Object ?
merge(targetValue, sourceValue) :
sourceValue;
});
if (source) {
Object.keys(source).forEach(key => {
let targetValue = target[key];
let sourceValue = source[key];
target[key] = targetValue instanceof Object && sourceValue instanceof Object ?
merge(targetValue, sourceValue) :
sourceValue;
});
}
});
return target;
}

@@ -32,9 +32,11 @@ 'use strict';

sources.forEach(source => {
Object.keys(source).forEach(key => {
let targetValue = target[key];
let sourceValue = source[key];
target[key] = targetValue instanceof Object && sourceValue instanceof Object ?
merge(targetValue, sourceValue) :
sourceValue;
});
if (source) {
Object.keys(source).forEach(key => {
let targetValue = target[key];
let sourceValue = source[key];
target[key] = targetValue instanceof Object && sourceValue instanceof Object ?
merge(targetValue, sourceValue) :
sourceValue;
});
}
});

@@ -41,0 +43,0 @@ return target;

{
"name": "@ultraq/object-utils",
"version": "1.1.0",
"version": "1.1.1",
"description": "A collection of utilities for JavaScript objects",

@@ -5,0 +5,0 @@ "author": "Emanuel Rabina <emanuelrabina@gmail.com> (http://www.ultraq.net.nz/)",