Comparing version 1.0.1 to 1.0.2
@@ -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 @@ |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12214
2
8
296
69