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

@lwc/babel-plugin-component

Package Overview
Dependencies
Maintainers
14
Versions
784
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwc/babel-plugin-component - npm Package Compare versions

Comparing version 6.6.7 to 6.7.0

3

dist/constants.d.ts

@@ -27,2 +27,3 @@ declare const AMBIGUOUS_PROP_SET: Map<string, string>;

declare const API_VERSION_KEY = "apiVersion";
export { AMBIGUOUS_PROP_SET, DECORATOR_TYPES, DISALLOWED_PROP_SET, LWC_PACKAGE_ALIAS, LWC_PACKAGE_EXPORTS, LWC_COMPONENT_PROPERTIES, REGISTER_COMPONENT_ID, REGISTER_DECORATORS_ID, TEMPLATE_KEY, COMPONENT_NAME_KEY, API_VERSION_KEY, };
declare const COMPONENT_CLASS_ID = "__lwc_component_class_internal";
export { AMBIGUOUS_PROP_SET, DECORATOR_TYPES, DISALLOWED_PROP_SET, LWC_PACKAGE_ALIAS, LWC_PACKAGE_EXPORTS, LWC_COMPONENT_PROPERTIES, REGISTER_COMPONENT_ID, REGISTER_DECORATORS_ID, TEMPLATE_KEY, COMPONENT_NAME_KEY, API_VERSION_KEY, COMPONENT_CLASS_ID, };

@@ -62,2 +62,3 @@ /**

const API_VERSION_KEY = 'apiVersion';
const COMPONENT_CLASS_ID = '__lwc_component_class_internal';

@@ -118,3 +119,3 @@ /*

// })
return t.callExpression(registerComponentId, [
const registerComponentExpression = t.callExpression(registerComponentId, [
node,

@@ -129,2 +130,10 @@ t.objectExpression([

]);
// Example:
// const __lwc_component_class_internal = registerComponent(cmp, ...);
// This provides a way to access the component class for other lwc tools
const classIdentifier = t.identifier(COMPONENT_CLASS_ID);
declarationPath.parentPath.insertBefore(t.variableDeclaration('const', [
t.variableDeclarator(classIdentifier, registerComponentExpression),
]));
return classIdentifier;
}

@@ -1240,3 +1249,3 @@ return {

exports.default = LwcClassTransform;
/** version: 6.6.7 */
/** version: 6.7.0 */
//# sourceMappingURL=index.cjs.js.map

@@ -58,2 +58,3 @@ /**

const API_VERSION_KEY = 'apiVersion';
const COMPONENT_CLASS_ID = '__lwc_component_class_internal';

@@ -114,3 +115,3 @@ /*

// })
return t.callExpression(registerComponentId, [
const registerComponentExpression = t.callExpression(registerComponentId, [
node,

@@ -125,2 +126,10 @@ t.objectExpression([

]);
// Example:
// const __lwc_component_class_internal = registerComponent(cmp, ...);
// This provides a way to access the component class for other lwc tools
const classIdentifier = t.identifier(COMPONENT_CLASS_ID);
declarationPath.parentPath.insertBefore(t.variableDeclaration('const', [
t.variableDeclarator(classIdentifier, registerComponentExpression),
]));
return classIdentifier;
}

@@ -1236,3 +1245,3 @@ return {

export { LwcClassTransform as default };
/** version: 6.6.7 */
/** version: 6.7.0 */
//# sourceMappingURL=index.js.map

@@ -7,3 +7,3 @@ {

"name": "@lwc/babel-plugin-component",
"version": "6.6.7",
"version": "6.7.0",
"description": "Babel plugin to transform a LWC module",

@@ -47,4 +47,4 @@ "keywords": [

"@babel/helper-module-imports": "7.24.3",
"@lwc/errors": "6.6.7",
"@lwc/shared": "6.6.7",
"@lwc/errors": "6.7.0",
"@lwc/shared": "6.7.0",
"line-column": "~1.0.2"

@@ -51,0 +51,0 @@ },

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