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.0.0 to 1.1.1

test/browser/application.js

4

lib/Merge.js

@@ -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

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