@babel/runtime-corejs2
Advanced tools
Comparing version 7.1.2 to 7.1.5
var _Object$assign = require("../core-js/object/assign"); | ||
var _typeof = require("../helpers/typeof"); | ||
var _Symbol$toStringTag = require("../core-js/symbol/to-string-tag"); | ||
@@ -9,4 +7,8 @@ | ||
var _typeof = require("../helpers/typeof"); | ||
var toArray = require("./toArray"); | ||
var toPropertyKey = require("./toPropertyKey"); | ||
function _decorate(decorators, factory, superClass) { | ||
@@ -25,2 +27,3 @@ var r = factory(function initialize(O) { | ||
function _createElementDescriptor(def) { | ||
var key = toPropertyKey(def.key); | ||
var descriptor; | ||
@@ -35,2 +38,6 @@ | ||
}; | ||
Object.defineProperty(def.value, "name", { | ||
value: _typeof(key) === "symbol" ? "" : key, | ||
configurable: true | ||
}); | ||
} else if (def.kind === "get") { | ||
@@ -58,3 +65,3 @@ descriptor = { | ||
kind: def.kind === "field" ? "field" : "method", | ||
key: def.key, | ||
key: key, | ||
placement: def.static ? "static" : def.kind === "field" ? "own" : "prototype", | ||
@@ -314,4 +321,3 @@ descriptor: descriptor | ||
var key = elementObject.key; | ||
if (typeof key !== "string" && _typeof(key) !== "symbol") key = String(key); | ||
var key = toPropertyKey(elementObject.key); | ||
var placement = String(elementObject.placement); | ||
@@ -318,0 +324,0 @@ |
import _Object$assign from "../../core-js/object/assign"; | ||
import _typeof from "../../helpers/esm/typeof"; | ||
import _Symbol$toStringTag from "../../core-js/symbol/to-string-tag"; | ||
import _Object$defineProperty from "../../core-js/object/define-property"; | ||
import _typeof from "../../helpers/esm/typeof"; | ||
import toArray from "./toArray"; | ||
import toPropertyKey from "./toPropertyKey"; | ||
export default function _decorate(decorators, factory, superClass) { | ||
@@ -19,2 +20,3 @@ var r = factory(function initialize(O) { | ||
function _createElementDescriptor(def) { | ||
var key = toPropertyKey(def.key); | ||
var descriptor; | ||
@@ -29,2 +31,6 @@ | ||
}; | ||
Object.defineProperty(def.value, "name", { | ||
value: _typeof(key) === "symbol" ? "" : key, | ||
configurable: true | ||
}); | ||
} else if (def.kind === "get") { | ||
@@ -52,3 +58,3 @@ descriptor = { | ||
kind: def.kind === "field" ? "field" : "method", | ||
key: def.key, | ||
key: key, | ||
placement: def.static ? "static" : def.kind === "field" ? "own" : "prototype", | ||
@@ -308,4 +314,3 @@ descriptor: descriptor | ||
var key = elementObject.key; | ||
if (typeof key !== "string" && _typeof(key) !== "symbol") key = String(key); | ||
var key = toPropertyKey(elementObject.key); | ||
var placement = String(elementObject.placement); | ||
@@ -312,0 +317,0 @@ |
import _typeof from "../../helpers/esm/typeof"; | ||
export default function _toPropertyKey(key) { | ||
if (_typeof(key) === "symbol") { | ||
return key; | ||
} else { | ||
return String(key); | ||
} | ||
import toPrimitive from "./toPrimitive"; | ||
export default function _toPropertyKey(arg) { | ||
var key = toPrimitive(arg, "string"); | ||
return _typeof(key) === "symbol" ? key : String(key); | ||
} |
var _typeof = require("../helpers/typeof"); | ||
function _toPropertyKey(key) { | ||
if (_typeof(key) === "symbol") { | ||
return key; | ||
} else { | ||
return String(key); | ||
} | ||
var toPrimitive = require("./toPrimitive"); | ||
function _toPropertyKey(arg) { | ||
var key = toPrimitive(arg, "string"); | ||
return _typeof(key) === "symbol" ? key : String(key); | ||
} | ||
module.exports = _toPropertyKey; |
{ | ||
"name": "@babel/runtime-corejs2", | ||
"version": "7.1.2", | ||
"version": "7.1.5", | ||
"description": "babel's modular runtime helpers with core-js@2 polyfilling", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
90871
227
2265