recursive-merge
Advanced tools
Comparing version 1.0.0 to 1.1.1
@@ -12,3 +12,3 @@ // Generated by CoffeeScript 1.6.3 | ||
if (leftType !== rightType) { | ||
throw new Error('Can not merge ' + leftType + ' with ' + rightType); | ||
throw new Error('Can not merge ' + leftType + ' with ' + rightType + '.'); | ||
} | ||
@@ -39,3 +39,3 @@ switch (leftType) { | ||
default: | ||
throw new Error('Can not merge ' + leftType + ' objects'); | ||
throw new Error('Can not merge ' + leftType + ' objects.'); | ||
} | ||
@@ -42,0 +42,0 @@ return left; |
{ | ||
"name": "recursive-merge", | ||
"description": "Recursive merge tool for arrays and objects", | ||
"version": "1.0.0", | ||
"version": "1.1.1", | ||
"author": { | ||
@@ -26,7 +26,9 @@ "name": "David Kudera", | ||
"devDependencies": { | ||
"should": "1.2.2" | ||
"should": "~1.2.2", | ||
"chai": "~1.8.1", | ||
"mocha": "~1.14.0" | ||
}, | ||
"scripts": { | ||
"test": "cd ./test; mocha ./index.js;" | ||
"test": "cd ./test; echo \"Testing in node:\"; mocha ./node/index.js --reporter spec; cd ./browser; echo \"Testing in browser:\"; mocha-phantomjs ./index.html;" | ||
} | ||
} |
# Recursive merge | ||
Recursive merge tool for arrays and objects | ||
Recursive merge tool for arrays and objects. | ||
## Changelog | ||
## Installation | ||
Changelog is in the bottom of this readme. | ||
``` | ||
$ npm install recursive-merge | ||
``` | ||
## Usage | ||
With this tool, you can recursivelly merge arrays or objects. | ||
With this tool, you can recursively merge arrays or objects. | ||
@@ -25,3 +27,3 @@ ``` | ||
You should also know, that this affects first object passed to merge function. Overy other objects (arrays, objects) are | ||
You should also know, that this affects first object passed to merge function. Every other objects (arrays, objects) are | ||
added to the first one. There is not any fast simple and universal solution for cloning objects (arrays yes). | ||
@@ -34,5 +36,17 @@ | ||
## Tests | ||
``` | ||
$ npm test | ||
``` | ||
## Changelog | ||
* 1.1.0 - 1.1.1 | ||
+ Rewritten tests | ||
+ Using chai for assertion (not should) | ||
+ Added some tests | ||
+ Added tests for browser | ||
* 1.0.0 | ||
+ Initial first version |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
24536
14
588
50
3
1
1