@babel/runtime
Advanced tools
Comparing version 7.5.3 to 7.5.4
@@ -18,4 +18,5 @@ import defineProperty from "./defineProperty"; | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
if (i % 2) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
ownKeys(source, true).forEach(function (key) { | ||
@@ -25,6 +26,6 @@ defineProperty(target, key, source[key]); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(arguments[i])); | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(arguments[i]).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(arguments[i], key)); | ||
ownKeys(source).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
@@ -31,0 +32,0 @@ } |
@@ -18,4 +18,5 @@ var defineProperty = require("./defineProperty"); | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
if (i % 2) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
ownKeys(source, true).forEach(function (key) { | ||
@@ -25,6 +26,6 @@ defineProperty(target, key, source[key]); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(arguments[i])); | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(arguments[i]).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(arguments[i], key)); | ||
ownKeys(source).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
@@ -31,0 +32,0 @@ } |
{ | ||
"name": "@babel/runtime", | ||
"version": "7.5.3", | ||
"version": "7.5.4", | ||
"description": "babel's modular runtime helpers", | ||
@@ -15,5 +15,5 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@babel/helpers": "^7.5.3" | ||
"@babel/helpers": "^7.5.4" | ||
}, | ||
"gitHead": "759ff4d6dfbfc2b6d86f2c2f2700a43557711af5" | ||
"gitHead": "a9a7f4e690b15d569deb8a53719f37d6dc09393b" | ||
} |
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
88000