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.25.0 to 7.25.4

16

lib/decorators-2018-09.js

@@ -53,9 +53,2 @@ "use strict";

}
if (path.isFunction()) {
{
var _path$ensureFunctionN;
(_path$ensureFunctionN = path.ensureFunctionName) != null ? _path$ensureFunctionN : path.ensureFunctionName = require("@babel/traverse").NodePath.prototype.ensureFunctionName;
}
path.ensureFunctionName(false);
}
const {

@@ -75,4 +68,9 @@ node,

const properties = [prop("kind", _core.types.stringLiteral(_core.types.isClassMethod(node) ? node.kind : "field")), prop("decorators", takeDecorators(node)), prop("static", node.static && _core.types.booleanLiteral(true)), prop("key", getKey(node))].filter(Boolean);
if (_core.types.isClassMethod(node)) {
properties.push(prop("value", _core.types.toExpression(node)));
if (isMethod) {
{
var _path$ensureFunctionN;
(_path$ensureFunctionN = path.ensureFunctionName) != null ? _path$ensureFunctionN : path.ensureFunctionName = require("@babel/traverse").NodePath.prototype.ensureFunctionName;
}
path.ensureFunctionName(false);
properties.push(prop("value", _core.types.toExpression(path.node)));
} else if (_core.types.isClassProperty(node) && node.value) {

@@ -79,0 +77,0 @@ properties.push(method("value", _core.template.statements.ast`return ${node.value}`));

@@ -98,8 +98,8 @@ "use strict";

if (typeof file.get(versionKey) === "number") {
file.set(versionKey, "7.25.0");
file.set(versionKey, "7.25.4");
return;
}
}
if (!file.get(versionKey) || _semver.lt(file.get(versionKey), "7.25.0")) {
file.set(versionKey, "7.25.0");
if (!file.get(versionKey) || _semver.lt(file.get(versionKey), "7.25.4")) {
file.set(versionKey, "7.25.4");
}

@@ -112,3 +112,3 @@ },

var _ref;
if (file.get(versionKey) !== "7.25.0") return;
if (file.get(versionKey) !== "7.25.4") return;
if (!(0, _features.shouldTransform)(path, file)) return;

@@ -234,3 +234,3 @@ const pathIsClassDeclaration = path.isClassDeclaration();

{
if (file.get(versionKey) !== "7.25.0") return;
if (file.get(versionKey) !== "7.25.4") return;
const decl = path.get("declaration");

@@ -237,0 +237,0 @@ if (decl.isClassDeclaration() && (0, _decorators2.hasDecorators)(decl.node)) {

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

@@ -26,3 +26,3 @@ "license": "MIT",

"@babel/helper-skip-transparent-expression-wrappers": "^7.24.7",
"@babel/traverse": "^7.25.0",
"@babel/traverse": "^7.25.4",
"semver": "^6.3.1"

@@ -34,5 +34,5 @@ },

"devDependencies": {
"@babel/core": "^7.24.9",
"@babel/core": "^7.25.2",
"@babel/helper-plugin-test-runner": "^7.24.7",
"@babel/preset-env": "^7.25.0",
"@babel/preset-env": "^7.25.4",
"@types/charcodes": "^0.2.0",

@@ -39,0 +39,0 @@ "charcodes": "^0.2.0"

@@ -14,5 +14,2 @@ /* This file is automatically generated by scripts/generators/tsconfig.js */

{
"path": "../../packages/babel-helper-plugin-utils"
},
{
"path": "../../packages/babel-helper-annotate-as-pure"

@@ -31,4 +28,10 @@ },

"path": "../../packages/babel-helper-skip-transparent-expression-wrappers"
},
{
"path": "../../packages/babel-traverse"
},
{
"path": "../../packages/babel-core"
}
]
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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