Updating mixin-deep (#46412)

* Updating mixin-deep

* update kbn/pm dist
This commit is contained in:
Brandon Kobel 2019-09-25 09:06:59 -07:00 committed by GitHub
parent 0fae8ce9cf
commit de606fe75c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 4 deletions

View file

@ -48209,7 +48209,7 @@ function mixinDeep(target, objects) {
*/ */
function copy(val, key) { function copy(val, key) {
if (key === '__proto__') { if (!isValidKey(key)) {
return; return;
} }
@ -48232,6 +48232,17 @@ function isObject(val) {
return isExtendable(val) && !Array.isArray(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` * Expose `mixinDeep`
*/ */

View file

@ -19404,9 +19404,9 @@ mississippi@^3.0.0:
through2 "^2.0.0" through2 "^2.0.0"
mixin-deep@^1.2.0: mixin-deep@^1.2.0:
version "1.3.1" version "1.3.2"
resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.1.tgz#a49e7268dce1a0d9698e45326c5626df3543d0fe" resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566"
integrity sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ== integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==
dependencies: dependencies:
for-in "^1.0.2" for-in "^1.0.2"
is-extendable "^1.0.1" is-extendable "^1.0.1"