Skip to content

Commit

Permalink
Updating mixin-deep (elastic#46412)
Browse files Browse the repository at this point in the history
* Updating mixin-deep

* update kbn/pm dist
  • Loading branch information
kobelb authored Sep 25, 2019
1 parent 0fae8ce commit de606fe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
13 changes: 12 additions & 1 deletion packages/kbn-pm/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48209,7 +48209,7 @@ function mixinDeep(target, objects) {
*/

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

Expand All @@ -48232,6 +48232,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 @@ -19404,9 +19404,9 @@ mississippi@^3.0.0:
through2 "^2.0.0"

mixin-deep@^1.2.0:
version "1.3.1"
resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.1.tgz#a49e7268dce1a0d9698e45326c5626df3543d0fe"
integrity sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==
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 de606fe

Please sign in to comment.