@babel/runtime
Advanced tools
Comparing version 7.3.0 to 7.3.1
import defineProperty from "./defineProperty"; | ||
export default function _objectSpread(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
if (i % 2) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
var ownKeys = Object.keys(source); | ||
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; | ||
})); | ||
} | ||
if (typeof Object.getOwnPropertySymbols === 'function') { | ||
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(source, sym).enumerable; | ||
})); | ||
} | ||
ownKeys.forEach(function (key) { | ||
defineProperty(target, key, source[key]); | ||
}); | ||
} else { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(arguments[i])); | ||
} | ||
ownKeys.forEach(function (key) { | ||
defineProperty(target, key, source[key]); | ||
}); | ||
} | ||
@@ -21,0 +17,0 @@ |
@@ -5,18 +5,14 @@ var defineProperty = require("./defineProperty"); | ||
for (var i = 1; i < arguments.length; i++) { | ||
if (i % 2) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
var ownKeys = Object.keys(source); | ||
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; | ||
})); | ||
} | ||
if (typeof Object.getOwnPropertySymbols === 'function') { | ||
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(source, sym).enumerable; | ||
})); | ||
} | ||
ownKeys.forEach(function (key) { | ||
defineProperty(target, key, source[key]); | ||
}); | ||
} else { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(arguments[i])); | ||
} | ||
ownKeys.forEach(function (key) { | ||
defineProperty(target, key, source[key]); | ||
}); | ||
} | ||
@@ -23,0 +19,0 @@ |
{ | ||
"name": "@babel/runtime", | ||
"version": "7.3.0", | ||
"version": "7.3.1", | ||
"description": "babel's modular runtime helpers", | ||
@@ -15,4 +15,5 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@babel/helpers": "^7.3.0" | ||
} | ||
"@babel/helpers": "^7.3.1" | ||
}, | ||
"gitHead": "f2af6c1170ebbea22bd29a2bae01efaec800dfe9" | ||
} |
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
85245
2306