mixin-deep 1.1.3 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of mixin-deep might be problematic. Click here for more details.
- package/LICENSE +1 -1
- package/README.md +32 -27
- package/package.json +21 -9
package/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2014-2015, Jon Schlinkert
|
3
|
+
Copyright (c) 2014-2015, 2017, Jon Schlinkert
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
@@ -1,19 +1,13 @@
|
|
1
|
-
# mixin-deep [![NPM version](https://
|
1
|
+
# mixin-deep [![NPM version](https://img.shields.io/npm/v/mixin-deep.svg?style=flat)](https://www.npmjs.com/package/mixin-deep) [![NPM monthly downloads](https://img.shields.io/npm/dm/mixin-deep.svg?style=flat)](https://npmjs.org/package/mixin-deep) [![NPM total downloads](https://img.shields.io/npm/dt/mixin-deep.svg?style=flat)](https://npmjs.org/package/mixin-deep) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/mixin-deep.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/mixin-deep)
|
2
2
|
|
3
3
|
> Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone.
|
4
4
|
|
5
5
|
## Install
|
6
6
|
|
7
|
-
Install with [npm](https://www.npmjs.com/)
|
7
|
+
Install with [npm](https://www.npmjs.com/):
|
8
8
|
|
9
9
|
```sh
|
10
|
-
$ npm
|
11
|
-
```
|
12
|
-
|
13
|
-
Install with [bower](http://bower.io/)
|
14
|
-
|
15
|
-
```sh
|
16
|
-
$ bower install mixin-deep --save
|
10
|
+
$ npm install --save mixin-deep
|
17
11
|
```
|
18
12
|
|
19
13
|
## Usage
|
@@ -25,38 +19,49 @@ mixinDeep({a: {aa: 'aa'}}, {a: {bb: 'bb'}}, {a: {cc: 'cc'}});
|
|
25
19
|
//=> { a: { aa: 'aa', bb: 'bb', cc: 'cc' } }
|
26
20
|
```
|
27
21
|
|
28
|
-
##
|
22
|
+
## About
|
23
|
+
|
24
|
+
### Related projects
|
25
|
+
|
26
|
+
* [defaults-deep](https://www.npmjs.com/package/defaults-deep): Like `extend` but recursively copies only the missing properties/values to the target object. | [homepage](https://github.com/jonschlinkert/defaults-deep "Like `extend` but recursively copies only the missing properties/values to the target object.")
|
27
|
+
* [extend-shallow](https://www.npmjs.com/package/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util. | [homepage](https://github.com/jonschlinkert/extend-shallow "Extend an object with the properties of additional objects. node.js/javascript util.")
|
28
|
+
* [merge-deep](https://www.npmjs.com/package/merge-deep): Recursively merge values in a javascript object. | [homepage](https://github.com/jonschlinkert/merge-deep "Recursively merge values in a javascript object.")
|
29
|
+
* [mixin-object](https://www.npmjs.com/package/mixin-object): Mixin the own and inherited properties of other objects onto the first object. Pass an… [more](https://github.com/jonschlinkert/mixin-object) | [homepage](https://github.com/jonschlinkert/mixin-object "Mixin the own and inherited properties of other objects onto the first object. Pass an empty object as the first arg to shallow clone.")
|
29
30
|
|
30
|
-
|
31
|
-
* [defaults-deep](https://www.npmjs.com/package/defaults-deep): Like `extend` but recursively copies only the missing properties/values to the target object. | [homepage](https://github.com/jonschlinkert/defaults-deep)
|
32
|
-
* [extend-shallow](https://www.npmjs.com/package/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util. | [homepage](https://github.com/jonschlinkert/extend-shallow)
|
33
|
-
* [merge-deep](https://www.npmjs.com/package/merge-deep): Recursively merge values in a javascript object. | [homepage](https://github.com/jonschlinkert/merge-deep)
|
34
|
-
* [omit-deep](https://www.npmjs.com/package/omit-deep): Recursively omit the specified key or keys from an object. | [homepage](https://github.com/jonschlinkert/omit-deep)
|
31
|
+
### Contributing
|
35
32
|
|
36
|
-
|
33
|
+
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
|
37
34
|
|
38
|
-
|
35
|
+
### Building docs
|
36
|
+
|
37
|
+
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
|
38
|
+
|
39
|
+
To generate the readme, run the following command:
|
39
40
|
|
40
41
|
```sh
|
41
|
-
$ npm
|
42
|
+
$ npm install -g verbose/verb#dev verb-generate-readme && verb
|
42
43
|
```
|
43
44
|
|
44
|
-
|
45
|
+
### Running tests
|
46
|
+
|
47
|
+
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
|
45
48
|
|
46
|
-
|
49
|
+
```sh
|
50
|
+
$ npm install && npm test
|
51
|
+
```
|
47
52
|
|
48
|
-
|
53
|
+
### Author
|
49
54
|
|
50
55
|
**Jon Schlinkert**
|
51
56
|
|
52
|
-
|
53
|
-
|
57
|
+
* [github/jonschlinkert](https://github.com/jonschlinkert)
|
58
|
+
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
|
54
59
|
|
55
|
-
|
60
|
+
### License
|
56
61
|
|
57
|
-
Copyright ©
|
58
|
-
Released under the MIT
|
62
|
+
Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
|
63
|
+
Released under the [MIT License](LICENSE).
|
59
64
|
|
60
65
|
***
|
61
66
|
|
62
|
-
_This file was generated by [verb-
|
67
|
+
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.2, on March 02, 2017._
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "mixin-deep",
|
3
3
|
"description": "Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone.",
|
4
|
-
"version": "1.
|
4
|
+
"version": "1.2.0",
|
5
5
|
"homepage": "https://github.com/jonschlinkert/mixin-deep",
|
6
6
|
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
7
7
|
"repository": "jonschlinkert/mixin-deep",
|
@@ -20,12 +20,13 @@
|
|
20
20
|
"test": "mocha"
|
21
21
|
},
|
22
22
|
"dependencies": {
|
23
|
-
"for-in": "^0.
|
23
|
+
"for-in": "^1.0.2",
|
24
24
|
"is-extendable": "^0.1.1"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
|
-
"
|
28
|
-
"
|
27
|
+
"gulp-format-md": "^0.1.11",
|
28
|
+
"mocha": "^3.2.0",
|
29
|
+
"should": "^11.2.0"
|
29
30
|
},
|
30
31
|
"keywords": [
|
31
32
|
"deep",
|
@@ -40,14 +41,25 @@
|
|
40
41
|
"util",
|
41
42
|
"values"
|
42
43
|
],
|
43
|
-
"
|
44
|
+
"verb": {
|
45
|
+
"toc": false,
|
46
|
+
"layout": "default",
|
47
|
+
"tasks": [
|
48
|
+
"readme"
|
49
|
+
],
|
50
|
+
"plugins": [
|
51
|
+
"gulp-format-md"
|
52
|
+
],
|
44
53
|
"related": {
|
45
54
|
"list": [
|
46
|
-
"
|
47
|
-
"merge-deep",
|
55
|
+
"defaults-deep",
|
48
56
|
"extend-shallow",
|
49
|
-
"
|
57
|
+
"merge-deep",
|
58
|
+
"mixin-object"
|
50
59
|
]
|
60
|
+
},
|
61
|
+
"lint": {
|
62
|
+
"reflinks": true
|
51
63
|
}
|
52
64
|
}
|
53
|
-
}
|
65
|
+
}
|