Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

recursive-merge

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

recursive-merge - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

4

lib/Merge.js

@@ -19,3 +19,3 @@ // Generated by CoffeeScript 1.6.3

valueType = type.call(value);
if (valueType === '[object Array]' || valueType === '[object Object]') {
if ((valueType === '[object Array]' || valueType === '[object Object]') && value !== null) {
left[i] = merge(left[i], value);

@@ -31,3 +31,3 @@ } else {

valueType = type.call(value);
if (typeof left[name] === 'undefined') {
if (typeof left[name] === 'undefined' || left[name] === null) {
left[name] = value;

@@ -34,0 +34,0 @@ } else if (valueType === '[object Array]' || valueType === '[object Object]') {

{
"name": "recursive-merge",
"description": "Recursive merge tool for arrays and objects",
"version": "1.1.1",
"version": "1.1.2",
"author": {

@@ -6,0 +6,0 @@ "name": "David Kudera",

@@ -43,2 +43,5 @@ # Recursive merge

* 1.1.2
+ Bug with null items in IE8
* 1.1.0 - 1.1.1

@@ -45,0 +48,0 @@ + Rewritten tests

@@ -190,3 +190,3 @@ /** Generated by SimQ **/

valueType = type.call(value);
if (valueType === '[object Array]' || valueType === '[object Object]') {
if ((valueType === '[object Array]' || valueType === '[object Object]') && value !== null) {
left[i] = merge(left[i], value);

@@ -202,3 +202,3 @@ } else {

valueType = type.call(value);
if (typeof left[name] === 'undefined') {
if (typeof left[name] === 'undefined' || left[name] === null) {
left[name] = value;

@@ -383,3 +383,3 @@ } else if (valueType === '[object Array]' || valueType === '[object Object]') {

"description": "Recursive merge tool for arrays and objects",
"version": "1.1.0",
"version": "1.1.1",
"author": {

@@ -411,3 +411,3 @@ "name": "David Kudera",

"scripts": {
"test": "cd ./test; echo \"Testing in node:\"; mocha ./node/index.js --reporter spec; cd ./browser; simq build; echo \"Testing in browser:\"; mocha-phantomjs ./index.html;"
"test": "cd ./test; echo \"Testing in node:\"; mocha ./node/index.js --reporter spec; cd ./browser; echo \"Testing in browser:\"; simq build; mocha-phantomjs ./index.html;"
}

@@ -420,4 +420,4 @@ }

});
require.version = '5.1.1';
delete require.__setStats;
require.__setStats({"/lib/Merge.js":{"atime":1385387764000,"mtime":1385387762000,"ctime":1385387762000},"/test/browser/tests/Merge.coffee":{"atime":1385387157000,"mtime":1385387105000,"ctime":1385387105000},"/package.json":{"atime":1385387640000,"mtime":1385387634000,"ctime":1385387634000}});
require.version = '5.1.2';

@@ -424,0 +424,0 @@ /** run section **/

Sorry, the diff of this file is not supported yet

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