forked from mirrors/action-gh-release
remove node_modules
This commit is contained in:
parent
c7638c8893
commit
60358a145c
444 changed files with 0 additions and 83958 deletions
16
node_modules/@octokit/endpoint/dist-src/util/merge-deep.js
generated
vendored
16
node_modules/@octokit/endpoint/dist-src/util/merge-deep.js
generated
vendored
|
@ -1,16 +0,0 @@
|
|||
import isPlainObject from "is-plain-object";
|
||||
export function mergeDeep(defaults, options) {
|
||||
const result = Object.assign({}, defaults);
|
||||
Object.keys(options).forEach(key => {
|
||||
if (isPlainObject(options[key])) {
|
||||
if (!(key in defaults))
|
||||
Object.assign(result, { [key]: options[key] });
|
||||
else
|
||||
result[key] = mergeDeep(defaults[key], options[key]);
|
||||
}
|
||||
else {
|
||||
Object.assign(result, { [key]: options[key] });
|
||||
}
|
||||
});
|
||||
return result;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue