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

@lwc/babel-plugin-component

Package Overview
Dependencies
Maintainers
0
Versions
794
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 8.9.0 to 8.10.0-alpha.0

4

dist/compiler-version-number.d.ts

@@ -1,3 +0,3 @@

import { Visitor } from '@babel/core';
import { BabelAPI, LwcBabelPluginPass } from './types';
import type { Visitor } from '@babel/core';
import type { BabelAPI, LwcBabelPluginPass } from './types';
export default function compilerVersionNumber({ types: t }: BabelAPI): Visitor<LwcBabelPluginPass>;

@@ -1,3 +0,3 @@

import { Visitor } from '@babel/core';
import { BabelAPI, LwcBabelPluginPass } from './types';
import type { Visitor } from '@babel/core';
import type { BabelAPI, LwcBabelPluginPass } from './types';
export default function ({ types: t }: BabelAPI): Visitor<LwcBabelPluginPass>;

@@ -1,3 +0,3 @@

import { DecoratorMeta } from '../index';
import type { DecoratorMeta } from '../index';
declare function isApiDecorator(decorator: DecoratorMeta): boolean;
export { isApiDecorator };

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

import { types } from '@babel/core';
import { NodePath } from '@babel/traverse';
import { DecoratorMeta } from '../index';
import { BabelTypes } from '../../types';
import { ClassBodyItem } from '../types';
import type { types } from '@babel/core';
import type { NodePath } from '@babel/traverse';
import type { DecoratorMeta } from '../index';
import type { BabelTypes } from '../../types';
import type { ClassBodyItem } from '../types';
export default function transform(t: BabelTypes, decoratorMetas: DecoratorMeta[], classBodyItems: NodePath<ClassBodyItem>[]): types.ObjectProperty[];

@@ -1,3 +0,3 @@

import { LwcBabelPluginPass } from '../../types';
import { DecoratorMeta } from '../index';
import type { LwcBabelPluginPass } from '../../types';
import type { DecoratorMeta } from '../index';
export default function validate(decorators: DecoratorMeta[], state: LwcBabelPluginPass): void;

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

import { Node, types, Visitor } from '@babel/core';
import { NodePath } from '@babel/traverse';
import { DECORATOR_TYPES } from '../constants';
import { BabelAPI, LwcBabelPluginPass } from '../types';
import { ImportSpecifier, LwcDecoratorName } from './types';
import type { BabelAPI, LwcBabelPluginPass } from '../types';
import type { NodePath } from '@babel/traverse';
import type { Node, types, Visitor } from '@babel/core';
import type { ImportSpecifier, LwcDecoratorName } from './types';
export type DecoratorType = (typeof DECORATOR_TYPES)[keyof typeof DECORATOR_TYPES];

@@ -7,0 +7,0 @@ export interface DecoratorMeta {

@@ -1,3 +0,3 @@

import { BabelTypes, LwcBabelPluginPass } from '../../types';
import { DecoratorMeta } from '../index';
import type { BabelTypes, LwcBabelPluginPass } from '../../types';
import type { DecoratorMeta } from '../index';
declare function validate(decorators: DecoratorMeta[], state: LwcBabelPluginPass): void;

@@ -4,0 +4,0 @@ declare function transform(t: BabelTypes, decoratorMetas: DecoratorMeta[]): import("@babel/types").ObjectProperty[];

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

import { NodePath } from '@babel/traverse';
import { types } from '@babel/core';
import { LWCErrorInfo } from '@lwc/errors';
import * as t from '@babel/types';
import type { NodePath } from '@babel/traverse';
import type { types } from '@babel/core';
import type { LWCErrorInfo } from '@lwc/errors';
import type * as t from '@babel/types';
export type ImportSpecifier = {

@@ -6,0 +6,0 @@ name: string;

@@ -1,3 +0,3 @@

import { DecoratorMeta } from '../index';
import type { DecoratorMeta } from '../index';
declare function isWireDecorator(decorator: DecoratorMeta): boolean;
export { isWireDecorator };

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

import { types } from '@babel/core';
import { DecoratorMeta } from '../index';
import { BabelTypes } from '../../types';
import type { types } from '@babel/core';
import type { DecoratorMeta } from '../index';
import type { BabelTypes } from '../../types';
export default function transform(t: BabelTypes, decoratorMetas: DecoratorMeta[]): types.ObjectProperty[];

@@ -1,3 +0,3 @@

import { LwcBabelPluginPass } from '../../types';
import { DecoratorMeta } from '../index';
import type { LwcBabelPluginPass } from '../../types';
import type { DecoratorMeta } from '../index';
export default function validate(decorators: DecoratorMeta[], state: LwcBabelPluginPass): void;

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

import { types } from '@babel/core';
import { NodePath } from '@babel/traverse';
import { BabelAPI } from './types';
import type { types } from '@babel/core';
import type { NodePath } from '@babel/traverse';
import type { BabelAPI } from './types';
export default function ({ types: t }: BabelAPI): (path: NodePath<types.Program>) => void;

@@ -1,3 +0,3 @@

import { Visitor } from '@babel/core';
import { LwcBabelPluginPass } from './types';
import type { Visitor } from '@babel/core';
import type { LwcBabelPluginPass } from './types';
/**

@@ -4,0 +4,0 @@ * Expected API for this plugin:

@@ -371,2 +371,8 @@ /**

/*
* Copyright (c) 2023, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const { PUBLIC_PROPS, PUBLIC_METHODS } = LWC_COMPONENT_PROPERTIES;

@@ -458,2 +464,8 @@ const PUBLIC_PROP_BIT_MASK = {

/*
* Copyright (c) 2024, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const { TRACK_DECORATOR: TRACK_DECORATOR$1, WIRE_DECORATOR: WIRE_DECORATOR$1, API_DECORATOR } = LWC_PACKAGE_EXPORTS;

@@ -584,2 +596,8 @@ function validateWireId(id, path, state) {

/*
* Copyright (c) 2024, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const WIRE_PARAM_PREFIX = '$';

@@ -816,2 +834,8 @@ const WIRE_CONFIG_ARG_NAME = '$cmp';

/*
* Copyright (c) 2023, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const DECORATOR_TRANSFORMS = [api, wire, track];

@@ -1101,2 +1125,8 @@ const AVAILABLE_DECORATORS = DECORATOR_TRANSFORMS.map((transform) => transform.name).join(', ');

/*
* Copyright (c) 2023, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
function getImportSource(path) {

@@ -1174,2 +1204,8 @@ return path.parentPath.get('arguments.0');

/*
* Copyright (c) 2023, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
function compilerVersionNumber({ types: t }) {

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

exports.default = LwcClassTransform;
/** version: 8.9.0 */
/** version: 8.10.0-alpha.0 */
//# sourceMappingURL=index.cjs.js.map

@@ -1,2 +0,2 @@

import { BabelAPI, LwcBabelPluginPass } from './types';
import type { BabelAPI, LwcBabelPluginPass } from './types';
import type { PluginObj } from '@babel/core';

@@ -3,0 +3,0 @@ export type { LwcBabelPluginOptions } from './types';

@@ -367,2 +367,8 @@ /**

/*
* Copyright (c) 2023, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const { PUBLIC_PROPS, PUBLIC_METHODS } = LWC_COMPONENT_PROPERTIES;

@@ -454,2 +460,8 @@ const PUBLIC_PROP_BIT_MASK = {

/*
* Copyright (c) 2024, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const { TRACK_DECORATOR: TRACK_DECORATOR$1, WIRE_DECORATOR: WIRE_DECORATOR$1, API_DECORATOR } = LWC_PACKAGE_EXPORTS;

@@ -580,2 +592,8 @@ function validateWireId(id, path, state) {

/*
* Copyright (c) 2024, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const WIRE_PARAM_PREFIX = '$';

@@ -812,2 +830,8 @@ const WIRE_CONFIG_ARG_NAME = '$cmp';

/*
* Copyright (c) 2023, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const DECORATOR_TRANSFORMS = [api, wire, track];

@@ -1097,2 +1121,8 @@ const AVAILABLE_DECORATORS = DECORATOR_TRANSFORMS.map((transform) => transform.name).join(', ');

/*
* Copyright (c) 2023, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
function getImportSource(path) {

@@ -1170,2 +1200,8 @@ return path.parentPath.get('arguments.0');

/*
* Copyright (c) 2023, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
function compilerVersionNumber({ types: t }) {

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

export { LwcClassTransform as default };
/** version: 8.9.0 */
/** version: 8.10.0-alpha.0 */
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

import { NodePath } from '@babel/traverse';
import { BabelAPI } from './types';
import type { NodePath } from '@babel/traverse';
import type { BabelAPI } from './types';
export default function ({ types: t }: BabelAPI, path: NodePath): void;

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

import * as BabelCoreNamespace from '@babel/core';
import { PluginPass, types } from '@babel/core';
import { InstrumentationObject } from '@lwc/errors';
import type * as BabelCoreNamespace from '@babel/core';
import type { PluginPass, types } from '@babel/core';
import type { InstrumentationObject } from '@lwc/errors';
export type BabelAPI = typeof BabelCoreNamespace;

@@ -5,0 +5,0 @@ export type BabelTypes = typeof types;

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

import { types } from '@babel/core';
import { NodePath } from '@babel/traverse';
import { CompilerMetrics } from '@lwc/errors';
import { DecoratorErrorOptions, ImportSpecifier } from './decorators/types';
import { LwcBabelPluginPass } from './types';
import type { types } from '@babel/core';
import type { NodePath } from '@babel/traverse';
import type { CompilerMetrics } from '@lwc/errors';
import type { DecoratorErrorOptions, ImportSpecifier } from './decorators/types';
import type { LwcBabelPluginPass } from './types';
declare function isClassMethod(classMethod: NodePath<types.Node>, properties?: {

@@ -7,0 +7,0 @@ kind?: string;

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

"name": "@lwc/babel-plugin-component",
"version": "8.9.0",
"version": "8.10.0-alpha.0",
"description": "Babel plugin to transform a LWC module",

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

"@babel/types": "^7.25.8",
"@lwc/errors": "8.9.0",
"@lwc/shared": "8.9.0",
"@lwc/errors": "8.10.0-alpha.0",
"@lwc/shared": "8.10.0-alpha.0",
"line-column": "~1.0.2"

@@ -61,2 +61,2 @@ },

}
}
}

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