Socket
Socket
Sign inDemoInstall

@babel/runtime

Package Overview
Dependencies
Maintainers
4
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/runtime - npm Package Compare versions

Comparing version 7.1.2 to 7.1.5

helpers/esm/toPrimitive.js

12

helpers/decorate.js

@@ -5,2 +5,4 @@ var _typeof = require("../helpers/typeof");

var toPropertyKey = require("./toPropertyKey");
function _decorate(decorators, factory, superClass) {

@@ -19,2 +21,3 @@ var r = factory(function initialize(O) {

function _createElementDescriptor(def) {
var key = toPropertyKey(def.key);
var descriptor;

@@ -29,2 +32,6 @@

};
Object.defineProperty(def.value, "name", {
value: _typeof(key) === "symbol" ? "" : key,
configurable: true
});
} else if (def.kind === "get") {

@@ -52,3 +59,3 @@ descriptor = {

kind: def.kind === "field" ? "field" : "method",
key: def.key,
key: key,
placement: def.static ? "static" : def.kind === "field" ? "own" : "prototype",

@@ -306,4 +313,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);

@@ -310,0 +316,0 @@

import _typeof from "../../helpers/esm/typeof";
import toArray from "./toArray";
import toPropertyKey from "./toPropertyKey";
export default function _decorate(decorators, factory, superClass) {

@@ -16,2 +17,3 @@ var r = factory(function initialize(O) {

function _createElementDescriptor(def) {
var key = toPropertyKey(def.key);
var descriptor;

@@ -26,2 +28,6 @@

};
Object.defineProperty(def.value, "name", {
value: _typeof(key) === "symbol" ? "" : key,
configurable: true
});
} else if (def.kind === "get") {

@@ -49,3 +55,3 @@ descriptor = {

kind: def.kind === "field" ? "field" : "method",
key: def.key,
key: key,
placement: def.static ? "static" : def.kind === "field" ? "own" : "prototype",

@@ -303,4 +309,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);

@@ -307,0 +312,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",
"version": "7.1.2",
"version": "7.1.5",
"description": "babel's modular runtime helpers",

@@ -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