mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Updating mixin-deep (#46412)
* Updating mixin-deep * update kbn/pm dist
This commit is contained in:
parent
0fae8ce9cf
commit
de606fe75c
2 changed files with 15 additions and 4 deletions
13
packages/kbn-pm/dist/index.js
vendored
13
packages/kbn-pm/dist/index.js
vendored
|
@ -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`
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue