Skip to content

Commit

Permalink
Update mixin-deep dependency (#38057, #46412)
Browse files Browse the repository at this point in the history
  • Loading branch information
jportner committed Apr 30, 2020
1 parent c191eae commit aeb4f50
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
15 changes: 15 additions & 0 deletions packages/kbn-pm/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41786,6 +41786,10 @@ function mixinDeep(target, objects) {
*/

function copy(val, key) {
if (!isValidKey(key)) {
return;
}

var obj = this[key];
if (isObject(val) && isObject(obj)) {
mixinDeep(obj, val);
Expand All @@ -41805,6 +41809,17 @@ function isObject(val) {
return isExtendable(val) && !Array.isArray(val);
}

/**
* Returns true if `key` is a valid key to use when extending objects.
*
* @param {String} `key`
* @return {Boolean}
*/

function isValidKey(key) {
return key !== '__proto__' && key !== 'constructor' && key !== 'prototype';
};

/**
* Expose `mixinDeep`
*/
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15299,9 +15299,9 @@ mississippi@^3.0.0:
through2 "^2.0.0"

mixin-deep@^1.2.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.0.tgz#47a8732ba97799457c8c1eca28f95132d7e8150a"
integrity sha512-dgaCvoh6i1nosAUBKb0l0pfJ78K8+S9fluyIR2YvAeUD/QuMahnFnF3xYty5eYXMjhGSsB0DsW6A0uAZyetoAg==
version "1.3.2"
resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566"
integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==
dependencies:
for-in "^1.0.2"
is-extendable "^1.0.1"
Expand Down

0 comments on commit aeb4f50

Please sign in to comment.