Vulnerabilities | |||||
---|---|---|---|---|---|
Version | Suggest | Low | Medium | High | Critical |
0.6.0 | 0 | 0 | 0 | 0 | 0 |
0.5.1 | 0 | 0 | 0 | 0 | 0 |
0.5.0 | 0 | 0 | 0 | 0 | 1 |
0.4.2 | 0 | 0 | 0 | 0 | 1 |
0.4.1 | 0 | 0 | 0 | 0 | 1 |
0.4.0 | 0 | 0 | 0 | 0 | 1 |
0.3.3 | 0 | 0 | 0 | 0 | 1 |
0.3.2 | 0 | 0 | 0 | 0 | 1 |
0.3.1 | 0 | 0 | 0 | 0 | 1 |
0.3.0 | 0 | 0 | 0 | 0 | 1 |
0.2.11 | 0 | 0 | 0 | 0 | 1 |
0.2.10 | 0 | 0 | 0 | 0 | 1 |
0.2.9 | 0 | 0 | 0 | 0 | 1 |
0.2.8 | 0 | 0 | 0 | 0 | 1 |
0.2.7 | 0 | 0 | 0 | 0 | 1 |
0.2.6 | 0 | 0 | 0 | 0 | 1 |
0.2.5 | 0 | 0 | 0 | 0 | 1 |
0.2.4 | 0 | 0 | 0 | 0 | 1 |
0.2.2 | 0 | 0 | 0 | 0 | 1 |
0.2.1 | 0 | 0 | 0 | 0 | 1 |
0.2.0 | 0 | 0 | 0 | 0 | 1 |
0.6.0 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
MIT - MIT LicenseRecursive object extending.
$ npm install deep-extend
var deepExtend = require('deep-extend');
var obj1 = {
a: 1,
b: 2,
d: {
a: 1,
b: [],
c: { test1: 123, test2: 321 }
},
f: 5,
g: 123,
i: 321,
j: [1, 2]
};
var obj2 = {
b: 3,
c: 5,
d: {
b: { first: 'one', second: 'two' },
c: { test2: 222 }
},
e: { one: 1, two: 2 },
f: [],
g: (void 0),
h: /abc/g,
i: null,
j: [3, 4]
};
deepExtend(obj1, obj2);
console.log(obj1);
/*
{ a: 1,
b: 3,
d:
{ a: 1,
b: { first: 'one', second: 'two' },
c: { test1: 123, test2: 222 } },
f: [],
g: undefined,
c: 5,
e: { one: 1, two: 2 },
h: /abc/g,
i: null,
j: [3, 4] }
*/
$ npm test
Please, report about issues here.