🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@lwc/ssr-compiler

Package Overview
Dependencies
Maintainers
15
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwc/ssr-compiler - npm Package Compare versions

Comparing version

to
8.17.0-alpha.0

24

dist/compile-js/types.d.ts
import { type traverse } from 'estree-toolkit';
import type { ImportManager } from '../imports';
import type { ComponentTransformOptions } from '../shared';
import type { Identifier, MemberExpression, MethodDefinition, Node, ObjectExpression, PropertyDefinition } from 'estree';
export type Visitors = Parameters<typeof traverse<Node, ComponentMetaState>>[1];
import type { ClassDeclaration, Identifier, MemberExpression, MethodDefinition, Node, ObjectExpression, PropertyDefinition } from 'estree';
export type Visitors = Parameters<typeof traverse<Node, ComponentMetaState, never>>[1];
export interface WireAdapter {

@@ -12,21 +12,41 @@ adapterId: Identifier | MemberExpression;

export interface ComponentMetaState {
/** indicates whether a subclass of LightningElement is found in the JS being traversed */
isLWC: boolean;
/** the class declaration currently being traversed, if it is an LWC component */
currentComponent: ClassDeclaration | null;
/** indicates whether the LightningElement subclass includes a constructor method */
hasConstructor: boolean;
/** indicates whether the subclass has a connectedCallback method */
hasConnectedCallback: boolean;
/** indicates whether the subclass has a renderedCallback method */
hadRenderedCallback: boolean;
/** indicates whether the subclass has a disconnectedCallback method */
hadDisconnectedCallback: boolean;
/** indicates whether the subclass has a errorCallback method */
hadErrorCallback: boolean;
/** the local name corresponding to the `LightningElement` import */
lightningElementIdentifier: string | null;
/** the class name of the subclass */
lwcClassName: string | null;
/** ties local variable names to explicitly-imported HTML templates */
tmplExplicitImports: Map<string, string> | null;
/** ties local variable names to explicitly-imported CSS files */
cssExplicitImports: Map<string, string> | null;
/** the set of variable names associated with explicitly imported CSS files */
staticStylesheetIds: Set<string> | null;
/** the public (`@api`-annotated) properties of the component class */
publicProperties: Map<string, (MethodDefinition | PropertyDefinition) & {
key: Identifier;
}>;
/** the private properties of the component class */
privateProperties: Set<string>;
/** indicates whether the LightningElement has any wired props */
wireAdapters: WireAdapter[];
/** dynamic imports configuration */
experimentalDynamicComponent: ComponentTransformOptions['experimentalDynamicComponent'];
/** imports to add to the top of the program after parsing */
importManager: ImportManager;
/** identifiers starting with __lwc that we added */
trustedLwcIdentifiers: WeakSet<Identifier>;
}
//# sourceMappingURL=types.d.ts.map

2

dist/transmogrify.d.ts

@@ -8,3 +8,3 @@ import { traverse } from 'estree-toolkit';

}
export type Visitors = Parameters<typeof traverse<Node, TransmogrificationState>>[1];
export type Visitors = Parameters<typeof traverse<Node, TransmogrificationState, never>>[1];
/**

@@ -11,0 +11,0 @@ * Transforms async-generator code into either the async or synchronous alternatives that are

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

"name": "@lwc/ssr-compiler",
"version": "8.16.4",
"version": "8.17.0-alpha.0",
"description": "Compile component for use during server-side rendering",

@@ -53,5 +53,5 @@ "keywords": [

"@babel/types": "7.26.10",
"@lwc/errors": "8.16.4",
"@lwc/shared": "8.16.4",
"@lwc/template-compiler": "8.16.4",
"@lwc/errors": "8.17.0-alpha.0",
"@lwc/shared": "8.17.0-alpha.0",
"@lwc/template-compiler": "8.17.0-alpha.0",
"acorn": "8.14.1",

@@ -64,5 +64,5 @@ "astring": "^1.9.0",

"devDependencies": {
"@lwc/babel-plugin-component": "8.16.4",
"@lwc/babel-plugin-component": "8.17.0-alpha.0",
"@types/estree": "^1.0.6"
}
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display