Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/runtime

Package Overview
Dependencies
Maintainers
4
Versions
173
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.23.9 to 7.24.0

helpers/applyDecs2311.js

7

helpers/classCheckPrivateStaticAccess.js

@@ -1,6 +0,5 @@

function _classCheckPrivateStaticAccess(receiver, classConstructor) {
if (receiver !== classConstructor) {
throw new TypeError("Private static access of wrong provenance");
}
var assertClassBrand = require("./assertClassBrand.js");
function _classCheckPrivateStaticAccess(receiver, classConstructor, returnValue) {
return assertClassBrand(classConstructor, receiver, returnValue);
}
module.exports = _classCheckPrivateStaticAccess, module.exports.__esModule = true, module.exports["default"] = module.exports;

@@ -1,7 +0,5 @@

function _classExtractFieldDescriptor(receiver, privateMap, action) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to " + action + " private field on non-instance");
}
return privateMap.get(receiver);
var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js");
function _classExtractFieldDescriptor(receiver, privateMap) {
return classPrivateFieldGet2(privateMap, receiver);
}
module.exports = _classExtractFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports;
var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js");
var classExtractFieldDescriptor = require("./classExtractFieldDescriptor.js");
var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js");
function _classPrivateFieldDestructureSet(receiver, privateMap) {
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");
var descriptor = classPrivateFieldGet2(privateMap, receiver);
return classApplyDescriptorDestructureSet(receiver, descriptor);
}
module.exports = _classPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
var classApplyDescriptorGet = require("./classApplyDescriptorGet.js");
var classExtractFieldDescriptor = require("./classExtractFieldDescriptor.js");
var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js");
function _classPrivateFieldGet(receiver, privateMap) {
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get");
var descriptor = classPrivateFieldGet2(privateMap, receiver);
return classApplyDescriptorGet(receiver, descriptor);
}
module.exports = _classPrivateFieldGet, module.exports.__esModule = true, module.exports["default"] = module.exports;
var classApplyDescriptorSet = require("./classApplyDescriptorSet.js");
var classExtractFieldDescriptor = require("./classExtractFieldDescriptor.js");
var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js");
function _classPrivateFieldSet(receiver, privateMap, value) {
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");
var descriptor = classPrivateFieldGet2(privateMap, receiver);
classApplyDescriptorSet(receiver, descriptor, value);

@@ -6,0 +6,0 @@ return value;

@@ -0,7 +1,6 @@

var assertClassBrand = require("./assertClassBrand.js");
function _classPrivateMethodGet(receiver, privateSet, fn) {
if (!privateSet.has(receiver)) {
throw new TypeError("attempted to get private field on non-instance");
}
assertClassBrand(privateSet, receiver);
return fn;
}
module.exports = _classPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports;
var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js");
var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js");
var assertClassBrand = require("./assertClassBrand.js");
var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js");
function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) {
classCheckPrivateStaticAccess(receiver, classConstructor);
assertClassBrand(classConstructor, receiver);
classCheckPrivateStaticFieldDescriptor(descriptor, "set");

@@ -7,0 +7,0 @@ return classApplyDescriptorDestructureSet(receiver, descriptor);

var classApplyDescriptorGet = require("./classApplyDescriptorGet.js");
var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js");
var assertClassBrand = require("./assertClassBrand.js");
var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js");
function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
classCheckPrivateStaticAccess(receiver, classConstructor);
assertClassBrand(classConstructor, receiver);
classCheckPrivateStaticFieldDescriptor(descriptor, "get");

@@ -7,0 +7,0 @@ return classApplyDescriptorGet(receiver, descriptor);

var classApplyDescriptorSet = require("./classApplyDescriptorSet.js");
var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js");
var assertClassBrand = require("./assertClassBrand.js");
var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js");
function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
classCheckPrivateStaticAccess(receiver, classConstructor);
assertClassBrand(classConstructor, receiver);
classCheckPrivateStaticFieldDescriptor(descriptor, "set");

@@ -7,0 +7,0 @@ classApplyDescriptorSet(receiver, descriptor, value);

@@ -1,6 +0,6 @@

var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js");
var assertClassBrand = require("./assertClassBrand.js");
function _classStaticPrivateMethodGet(receiver, classConstructor, method) {
classCheckPrivateStaticAccess(receiver, classConstructor);
assertClassBrand(classConstructor, receiver);
return method;
}
module.exports = _classStaticPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports;

@@ -1,5 +0,4 @@

export default function _classCheckPrivateStaticAccess(receiver, classConstructor) {
if (receiver !== classConstructor) {
throw new TypeError("Private static access of wrong provenance");
}
import assertClassBrand from "./assertClassBrand.js";
export default function _classCheckPrivateStaticAccess(receiver, classConstructor, returnValue) {
return assertClassBrand(classConstructor, receiver, returnValue);
}

@@ -1,6 +0,4 @@

export default function _classExtractFieldDescriptor(receiver, privateMap, action) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to " + action + " private field on non-instance");
}
return privateMap.get(receiver);
import classPrivateFieldGet2 from "./classPrivateFieldGet2.js";
export default function _classExtractFieldDescriptor(receiver, privateMap) {
return classPrivateFieldGet2(privateMap, receiver);
}
import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js";
import classExtractFieldDescriptor from "./classExtractFieldDescriptor.js";
import classPrivateFieldGet2 from "./classPrivateFieldGet2.js";
export default function _classPrivateFieldDestructureSet(receiver, privateMap) {
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");
var descriptor = classPrivateFieldGet2(privateMap, receiver);
return classApplyDescriptorDestructureSet(receiver, descriptor);
}
import classApplyDescriptorGet from "./classApplyDescriptorGet.js";
import classExtractFieldDescriptor from "./classExtractFieldDescriptor.js";
import classPrivateFieldGet2 from "./classPrivateFieldGet2.js";
export default function _classPrivateFieldGet(receiver, privateMap) {
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get");
var descriptor = classPrivateFieldGet2(privateMap, receiver);
return classApplyDescriptorGet(receiver, descriptor);
}
import classApplyDescriptorSet from "./classApplyDescriptorSet.js";
import classExtractFieldDescriptor from "./classExtractFieldDescriptor.js";
import classPrivateFieldGet2 from "./classPrivateFieldGet2.js";
export default function _classPrivateFieldSet(receiver, privateMap, value) {
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");
var descriptor = classPrivateFieldGet2(privateMap, receiver);
classApplyDescriptorSet(receiver, descriptor, value);
return value;
}

@@ -0,6 +1,5 @@

import assertClassBrand from "./assertClassBrand.js";
export default function _classPrivateMethodGet(receiver, privateSet, fn) {
if (!privateSet.has(receiver)) {
throw new TypeError("attempted to get private field on non-instance");
}
assertClassBrand(privateSet, receiver);
return fn;
}
import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js";
import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js";
import assertClassBrand from "./assertClassBrand.js";
import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js";
export default function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) {
classCheckPrivateStaticAccess(receiver, classConstructor);
assertClassBrand(classConstructor, receiver);
classCheckPrivateStaticFieldDescriptor(descriptor, "set");
return classApplyDescriptorDestructureSet(receiver, descriptor);
}
import classApplyDescriptorGet from "./classApplyDescriptorGet.js";
import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js";
import assertClassBrand from "./assertClassBrand.js";
import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js";
export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
classCheckPrivateStaticAccess(receiver, classConstructor);
assertClassBrand(classConstructor, receiver);
classCheckPrivateStaticFieldDescriptor(descriptor, "get");
return classApplyDescriptorGet(receiver, descriptor);
}
import classApplyDescriptorSet from "./classApplyDescriptorSet.js";
import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js";
import assertClassBrand from "./assertClassBrand.js";
import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js";
export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
classCheckPrivateStaticAccess(receiver, classConstructor);
assertClassBrand(classConstructor, receiver);
classCheckPrivateStaticFieldDescriptor(descriptor, "set");

@@ -7,0 +7,0 @@ classApplyDescriptorSet(receiver, descriptor, value);

@@ -1,5 +0,5 @@

import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js";
import assertClassBrand from "./assertClassBrand.js";
export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) {
classCheckPrivateStaticAccess(receiver, classConstructor);
assertClassBrand(classConstructor, receiver);
return method;
}
{
"name": "@babel/runtime",
"version": "7.23.9",
"version": "7.24.0",
"description": "babel's modular runtime helpers",

@@ -83,2 +83,20 @@ "license": "MIT",

"./helpers/esm/applyDecs2305": "./helpers/esm/applyDecs2305.js",
"./helpers/applyDecs2311": [
{
"node": "./helpers/applyDecs2311.js",
"import": "./helpers/esm/applyDecs2311.js",
"default": "./helpers/applyDecs2311.js"
},
"./helpers/applyDecs2311.js"
],
"./helpers/esm/applyDecs2311": "./helpers/esm/applyDecs2311.js",
"./helpers/assertClassBrand": [
{
"node": "./helpers/assertClassBrand.js",
"import": "./helpers/esm/assertClassBrand.js",
"default": "./helpers/assertClassBrand.js"
},
"./helpers/assertClassBrand.js"
],
"./helpers/esm/assertClassBrand": "./helpers/esm/assertClassBrand.js",
"./helpers/asyncGeneratorDelegate": [

@@ -129,2 +147,38 @@ {

"./helpers/esm/checkInRHS": "./helpers/esm/checkInRHS.js",
"./helpers/classPrivateFieldGet2": [
{
"node": "./helpers/classPrivateFieldGet2.js",
"import": "./helpers/esm/classPrivateFieldGet2.js",
"default": "./helpers/classPrivateFieldGet2.js"
},
"./helpers/classPrivateFieldGet2.js"
],
"./helpers/esm/classPrivateFieldGet2": "./helpers/esm/classPrivateFieldGet2.js",
"./helpers/classPrivateFieldSet2": [
{
"node": "./helpers/classPrivateFieldSet2.js",
"import": "./helpers/esm/classPrivateFieldSet2.js",
"default": "./helpers/classPrivateFieldSet2.js"
},
"./helpers/classPrivateFieldSet2.js"
],
"./helpers/esm/classPrivateFieldSet2": "./helpers/esm/classPrivateFieldSet2.js",
"./helpers/classPrivateGetter": [
{
"node": "./helpers/classPrivateGetter.js",
"import": "./helpers/esm/classPrivateGetter.js",
"default": "./helpers/classPrivateGetter.js"
},
"./helpers/classPrivateGetter.js"
],
"./helpers/esm/classPrivateGetter": "./helpers/esm/classPrivateGetter.js",
"./helpers/classPrivateSetter": [
{
"node": "./helpers/classPrivateSetter.js",
"import": "./helpers/esm/classPrivateSetter.js",
"default": "./helpers/classPrivateSetter.js"
},
"./helpers/classPrivateSetter.js"
],
"./helpers/esm/classPrivateSetter": "./helpers/esm/classPrivateSetter.js",
"./helpers/construct": [

@@ -256,2 +310,11 @@ {

"./helpers/esm/toPropertyKey": "./helpers/esm/toPropertyKey.js",
"./helpers/toSetter": [
{
"node": "./helpers/toSetter.js",
"import": "./helpers/esm/toSetter.js",
"default": "./helpers/toSetter.js"
},
"./helpers/toSetter.js"
],
"./helpers/esm/toSetter": "./helpers/esm/toSetter.js",
"./helpers/typeof": [

@@ -258,0 +321,0 @@ {

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