Socket
Socket
Sign inDemoInstall

@babel/helper-create-class-features-plugin

Package Overview
Dependencies
Maintainers
4
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-create-class-features-plugin - npm Package Compare versions

Comparing version 7.17.6 to 7.17.9

23

lib/fields.js

@@ -776,2 +776,17 @@ "use strict";

function isNameOrLength({
key,
computed
}) {
if (key.type === "Identifier") {
return !computed && (key.name === "name" || key.name === "length");
}
if (key.type === "StringLiteral") {
return key.value === "name" || key.value === "length";
}
return false;
}
function buildFieldsInitNodes(ref, superRef, props, privateNamesMap, state, setPublicClassFields, privateFieldsAsProperties, constantSuper, innerBindingRef) {

@@ -830,5 +845,7 @@ let needsClassRef = false;

case isStatic && isPublic && isField && setPublicClassFields:
needsClassRef = true;
staticNodes.push(buildPublicFieldInitLoose(_core.types.cloneNode(ref), prop));
break;
if (!isNameOrLength(prop.node)) {
needsClassRef = true;
staticNodes.push(buildPublicFieldInitLoose(_core.types.cloneNode(ref), prop));
break;
}

@@ -835,0 +852,0 @@ case isStatic && isPublic && isField && !setPublicClassFields:

2

lib/index.js

@@ -42,3 +42,3 @@ "use strict";

const version = "7.17.6".split(".").reduce((v, x) => v * 1e5 + +x, 0);
const version = "7.17.9".split(".").reduce((v, x) => v * 1e5 + +x, 0);
const versionKey = "@babel/plugin-class-features/version";

@@ -45,0 +45,0 @@

{
"name": "@babel/helper-create-class-features-plugin",
"version": "7.17.6",
"version": "7.17.9",
"author": "The Babel Team (https://babel.dev/team)",

@@ -23,4 +23,4 @@ "license": "MIT",

"@babel/helper-environment-visitor": "^7.16.7",
"@babel/helper-function-name": "^7.16.7",
"@babel/helper-member-expression-to-functions": "^7.16.7",
"@babel/helper-function-name": "^7.17.9",
"@babel/helper-member-expression-to-functions": "^7.17.7",
"@babel/helper-optimise-call-expression": "^7.16.7",

@@ -34,3 +34,3 @@ "@babel/helper-replace-supers": "^7.16.7",

"devDependencies": {
"@babel/core": "^7.17.5",
"@babel/core": "^7.17.9",
"@babel/helper-plugin-test-runner": "^7.16.7",

@@ -37,0 +37,0 @@ "@babel/plugin-syntax-class-static-block": "^7.14.5",

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