@lwc/template-compiler
Advanced tools
+2
-2
| import type { Config } from './config'; | ||
| import type { TemplateCompileResult, TemplateParseResult } from './shared/types'; | ||
| export * from './shared/types'; | ||
| export { CustomRendererConfig, CustomRendererElementConfig } from './shared/renderer-hooks'; | ||
| export { Config } from './config'; | ||
| export type { CustomRendererConfig, CustomRendererElementConfig } from './shared/renderer-hooks'; | ||
| export type { Config } from './config'; | ||
| export { toPropertyName } from './shared/utils'; | ||
@@ -7,0 +7,0 @@ export { kebabcaseToCamelcase } from './shared/naming'; |
+39
-36
@@ -11,9 +11,11 @@ import type { CompilerDiagnostic } from '@lwc/errors'; | ||
| } | ||
| export declare enum LWCDirectiveDomMode { | ||
| manual = "manual" | ||
| } | ||
| export declare enum LWCDirectiveRenderMode { | ||
| shadow = "shadow", | ||
| light = "light" | ||
| } | ||
| export declare const LWCDirectiveDomMode: { | ||
| readonly manual: "manual"; | ||
| }; | ||
| export type LWCDirectiveDomMode = (typeof LWCDirectiveDomMode)[keyof typeof LWCDirectiveDomMode]; | ||
| export declare const LWCDirectiveRenderMode: { | ||
| readonly shadow: "shadow"; | ||
| readonly light: "light"; | ||
| }; | ||
| export type LWCDirectiveRenderMode = (typeof LWCDirectiveRenderMode)[keyof typeof LWCDirectiveRenderMode]; | ||
| export interface BaseNode { | ||
@@ -163,5 +165,6 @@ type: string; | ||
| */ | ||
| export declare enum LwcTagName { | ||
| Component = "lwc:component" | ||
| } | ||
| export declare const LwcTagName: { | ||
| readonly Component: "lwc:component"; | ||
| }; | ||
| export type LwcTagName = (typeof LwcTagName)[keyof typeof LwcTagName]; | ||
| export type BaseElement = Element | ExternalComponent | Component | Slot | LwcComponent; | ||
@@ -173,11 +176,11 @@ export interface Root extends BaseParentNode { | ||
| } | ||
| export declare enum TemplateDirectiveName { | ||
| If = "if:true", | ||
| IfBlock = "lwc:if", | ||
| ElseifBlock = "lwc:elseif", | ||
| ElseBlock = "lwc:else", | ||
| ForEach = "for:each", | ||
| ForOf = "for:of", | ||
| ScopedSlotFragment = "lwc:slot-data" | ||
| } | ||
| export declare const TemplateDirectiveName: { | ||
| readonly If: "if:true"; | ||
| readonly IfBlock: "lwc:if"; | ||
| readonly ElseifBlock: "lwc:elseif"; | ||
| readonly ElseBlock: "lwc:else"; | ||
| readonly ForEach: "for:each"; | ||
| readonly ForOf: "for:of"; | ||
| readonly ScopedSlotFragment: "lwc:slot-data"; | ||
| }; | ||
| interface DirectiveParentNode<T extends keyof typeof TemplateDirectiveName> extends BaseParentNode { | ||
@@ -233,20 +236,20 @@ directiveLocation: SourceLocation; | ||
| export type Node = Root | ForBlock | If | IfBlock | ElseifBlock | ElseBlock | BaseElement | Comment | Text | ScopedSlotFragment; | ||
| export declare enum ElementDirectiveName { | ||
| Dom = "lwc:dom", | ||
| Dynamic = "lwc:dynamic", | ||
| Is = "lwc:is", | ||
| External = "lwc:external", | ||
| InnerHTML = "lwc:inner-html", | ||
| Ref = "lwc:ref", | ||
| SlotBind = "lwc:slot-bind", | ||
| SlotData = "lwc:slot-data", | ||
| Spread = "lwc:spread", | ||
| On = "lwc:on", | ||
| Key = "key" | ||
| } | ||
| export declare enum RootDirectiveName { | ||
| PreserveComments = "lwc:preserve-comments", | ||
| RenderMode = "lwc:render-mode" | ||
| } | ||
| export declare const ElementDirectiveName: { | ||
| readonly Dom: "lwc:dom"; | ||
| readonly Dynamic: "lwc:dynamic"; | ||
| readonly Is: "lwc:is"; | ||
| readonly External: "lwc:external"; | ||
| readonly InnerHTML: "lwc:inner-html"; | ||
| readonly Ref: "lwc:ref"; | ||
| readonly SlotBind: "lwc:slot-bind"; | ||
| readonly SlotData: "lwc:slot-data"; | ||
| readonly Spread: "lwc:spread"; | ||
| readonly On: "lwc:on"; | ||
| readonly Key: "key"; | ||
| }; | ||
| export declare const RootDirectiveName: { | ||
| readonly PreserveComments: "lwc:preserve-comments"; | ||
| readonly RenderMode: "lwc:render-mode"; | ||
| }; | ||
| export {}; | ||
| //# sourceMappingURL=types.d.ts.map |
+8
-4
@@ -7,3 +7,3 @@ { | ||
| "name": "@lwc/template-compiler", | ||
| "version": "8.28.2", | ||
| "version": "9.0.0", | ||
| "description": "Template compiler package", | ||
@@ -23,9 +23,13 @@ "keywords": [ | ||
| "license": "MIT", | ||
| "type": "module", | ||
| "publishConfig": { | ||
| "access": "public" | ||
| }, | ||
| "engines": { | ||
| "node": ">=16.6.0" | ||
| }, | ||
| "volta": { | ||
| "extends": "../../../package.json" | ||
| }, | ||
| "main": "dist/index.cjs.js", | ||
| "main": "dist/index.js", | ||
| "module": "dist/index.js", | ||
@@ -51,4 +55,4 @@ "types": "dist/index.d.ts", | ||
| "dependencies": { | ||
| "@lwc/errors": "8.28.2", | ||
| "@lwc/shared": "8.28.2", | ||
| "@lwc/errors": "9.0.0", | ||
| "@lwc/shared": "9.0.0", | ||
| "acorn": "~8.15.0", | ||
@@ -55,0 +59,0 @@ "astring": "~1.9.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Obfuscated code
Supply chain riskObfuscated files are intentionally packed to hide their behavior. This could be a sign of malware.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1
-50%76
-49.67%Yes
NaN657132
-47.25%37
-2.63%15806
-48.16%+ Added
+ Added
- Removed
- Removed
Updated
Updated