@lwc/template-compiler 6.3.2 → 6.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +31 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +31 -11
- package/dist/index.js.map +1 -1
- package/dist/parser/expression-complex/types.d.ts +4 -1
- package/dist/parser/expression.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { Node as AcornNode } from 'acorn';
|
|
2
2
|
import type { Tokenizer } from 'parse5';
|
|
3
|
-
export type PreparsedExpressionMap = Map<number,
|
|
3
|
+
export type PreparsedExpressionMap = Map<number, {
|
|
4
|
+
parsedExpression: AcornNode;
|
|
5
|
+
rawText: string;
|
|
6
|
+
}>;
|
|
4
7
|
export type Preprocessor = Omit<Tokenizer['preprocessor'], 'pos'> & {
|
|
5
8
|
pos: number;
|
|
6
9
|
advance: () => void;
|
|
@@ -4,5 +4,6 @@ export declare const EXPRESSION_SYMBOL_START = "{";
|
|
|
4
4
|
export declare const EXPRESSION_SYMBOL_END = "}";
|
|
5
5
|
export declare function isExpression(source: string): boolean;
|
|
6
6
|
export declare function isPotentialExpression(source: string): boolean;
|
|
7
|
+
export declare function validatePreparsedJsExpressions(ctx: ParserCtx): void;
|
|
7
8
|
export declare function parseExpression(ctx: ParserCtx, source: string, location: SourceLocation): Expression;
|
|
8
9
|
export declare function parseIdentifier(ctx: ParserCtx, source: string, location: SourceLocation): Identifier;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
|
|
5
5
|
],
|
|
6
6
|
"name": "@lwc/template-compiler",
|
|
7
|
-
"version": "6.3.
|
|
7
|
+
"version": "6.3.3",
|
|
8
8
|
"description": "Template compiler package",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"lwc"
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@lwc/errors": "6.3.
|
|
46
|
-
"@lwc/shared": "6.3.
|
|
45
|
+
"@lwc/errors": "6.3.3",
|
|
46
|
+
"@lwc/shared": "6.3.3",
|
|
47
47
|
"acorn": "8.10.0",
|
|
48
48
|
"astring": "~1.8.6",
|
|
49
49
|
"estree-walker": "~2.0.2",
|