Socket
Socket
Sign inDemoInstall

@babel/runtime-corejs2

Package Overview
Dependencies
Maintainers
4
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/runtime-corejs2 - npm Package Compare versions

Comparing version 7.1.2 to 7.1.5

helpers/esm/toPrimitive.js

16

helpers/decorate.js
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc