@babel/helpers
Advanced tools
Comparing version 7.5.1 to 7.5.2
@@ -410,2 +410,13 @@ "use strict"; | ||
function ownKeys(object, enumerableOnly) { | ||
var keys = Object.keys(object); | ||
if (Object.getOwnPropertySymbols) { | ||
keys.push.apply(keys, Object.getOwnPropertySymbols(object)); | ||
} | ||
if (enumerableOnly) keys = keys.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
return keys; | ||
} | ||
export default function _objectSpread2(target) { | ||
@@ -415,13 +426,15 @@ for (var i = 1; i < arguments.length; i++) { | ||
var source = (arguments[i] != null) ? arguments[i] : {}; | ||
var ownKeys = Object.keys(source); | ||
if (typeof Object.getOwnPropertySymbols === 'function') { | ||
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { | ||
return Object.getOwnPropertyDescriptor(source, sym).enumerable; | ||
})); | ||
} | ||
ownKeys.forEach(function(key) { | ||
ownKeys(source, true).forEach(function (key) { | ||
defineProperty(target, key, source[key]); | ||
}); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(arguments[i])); | ||
} else { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(arguments[i])); | ||
ownKeys(source).forEach(function (key) { | ||
Object.defineProperty( | ||
target, | ||
key, | ||
Object.getOwnPropertyDescriptor(arguments[i], key) | ||
); | ||
}); | ||
} | ||
@@ -428,0 +441,0 @@ } |
{ | ||
"name": "@babel/helpers", | ||
"version": "7.5.1", | ||
"version": "7.5.2", | ||
"description": "Collection of helper functions used by Babel transforms.", | ||
@@ -21,3 +21,3 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
}, | ||
"gitHead": "d0519fa9076ad2b50fe0a4d745c863c61c226117" | ||
"gitHead": "0dbf99bedb1d82b8414685181416c19336dd0d96" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68007
1894