mirror of https://github.com/vladmandic/human
rebuild
parent
083a7903f4
commit
09fe21c7af
File diff suppressed because one or more lines are too long
|
@ -43,7 +43,7 @@
|
|||
"imports": [],
|
||||
"exports": [],
|
||||
"inputs": {},
|
||||
"bytes": 2037925
|
||||
"bytes": 2037877
|
||||
},
|
||||
"dist/demo-browser-index.js": {
|
||||
"imports": [],
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -421,7 +421,7 @@
|
|||
"imports": []
|
||||
},
|
||||
"src/human.ts": {
|
||||
"bytes": 19726,
|
||||
"bytes": 19684,
|
||||
"imports": [
|
||||
{
|
||||
"path": "src/log.ts",
|
||||
|
@ -499,7 +499,7 @@
|
|||
"imports": [],
|
||||
"exports": [],
|
||||
"inputs": {},
|
||||
"bytes": 1940029
|
||||
"bytes": 1939981
|
||||
},
|
||||
"dist/human.esm.js": {
|
||||
"imports": [],
|
||||
|
|
|
@ -421,7 +421,7 @@
|
|||
"imports": []
|
||||
},
|
||||
"src/human.ts": {
|
||||
"bytes": 19726,
|
||||
"bytes": 19684,
|
||||
"imports": [
|
||||
{
|
||||
"path": "src/log.ts",
|
||||
|
@ -499,7 +499,7 @@
|
|||
"imports": [],
|
||||
"exports": [],
|
||||
"inputs": {},
|
||||
"bytes": 1940040
|
||||
"bytes": 1939992
|
||||
},
|
||||
"dist/human.ts": {
|
||||
"imports": [],
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -421,7 +421,7 @@
|
|||
"imports": []
|
||||
},
|
||||
"src/human.ts": {
|
||||
"bytes": 19726,
|
||||
"bytes": 19684,
|
||||
"imports": [
|
||||
{
|
||||
"path": "src/log.ts",
|
||||
|
@ -499,7 +499,7 @@
|
|||
"imports": [],
|
||||
"exports": [],
|
||||
"inputs": {},
|
||||
"bytes": 706784
|
||||
"bytes": 706736
|
||||
},
|
||||
"dist/human.node-gpu.js": {
|
||||
"imports": [],
|
||||
|
|
File diff suppressed because one or more lines are too long
10
src/human.ts
10
src/human.ts
|
@ -29,13 +29,9 @@ function mergeDeep(...objects) {
|
|||
Object.keys(obj || {}).forEach((key) => {
|
||||
const pVal = prev[key];
|
||||
const oVal = obj[key];
|
||||
if (Array.isArray(pVal) && Array.isArray(oVal)) {
|
||||
prev[key] = pVal.concat(...oVal);
|
||||
} else if (isObject(pVal) && isObject(oVal)) {
|
||||
prev[key] = mergeDeep(pVal, oVal);
|
||||
} else {
|
||||
prev[key] = oVal;
|
||||
}
|
||||
if (Array.isArray(pVal) && Array.isArray(oVal)) prev[key] = pVal.concat(...oVal);
|
||||
else if (isObject(pVal) && isObject(oVal)) prev[key] = mergeDeep(pVal, oVal);
|
||||
else prev[key] = oVal;
|
||||
});
|
||||
return prev;
|
||||
}, {});
|
||||
|
|
Loading…
Reference in New Issue