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

deepmerge

Package Overview
Dependencies
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deepmerge - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

changelog.md

@@ -0,1 +1,5 @@

# [1.0.2](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.0.2)
- Updating the readme: dropping bower, testing that the example works [7102fc](https://github.com/KyleAMathews/deepmerge/commit/7102fcc4ddec11e2d33205866f9f18df14e5aeb5)
# [1.0.1](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.0.1)

@@ -2,0 +6,0 @@

8

index.js

@@ -21,3 +21,3 @@ (function (root, factory) {

var array = Array.isArray(src);
var dst = array && [] || {};
var dst = array ? [] : {};

@@ -32,6 +32,4 @@ if (array) {

dst[i] = deepmerge(target[i], e);
} else {
if (target.indexOf(e) === -1) {
dst.push(e);
}
} else if (target.indexOf(e) === -1) {
dst.push(e);
}

@@ -38,0 +36,0 @@ });

@@ -5,3 +5,3 @@ {

"description": "A library for deep (recursive) merging of Javascript objects",
"version": "1.0.1",
"version": "1.0.2",
"homepage": "https://github.com/nrf110/deepmerge",

@@ -17,6 +17,7 @@ "repository": {

"scripts": {
"test": "tap test/*.js"
"test": "tap test/*.js && jsmd README.markdown"
},
"dependencies": {},
"devDependencies": {
"jsmd": "0.3.1",
"tap": "~0.4.8"

@@ -23,0 +24,0 @@ },

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