@lwc/template-compiler 7.0.4 → 7.0.5
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/codegen/codegen.d.ts +1 -1
- package/dist/index.cjs.js +4 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +4 -10
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -69,7 +69,7 @@ export default class CodeGen {
|
|
|
69
69
|
genScopedId(id: string | t.Expression): t.CallExpression;
|
|
70
70
|
genScopedFragId(id: string | t.Expression): t.CallExpression;
|
|
71
71
|
genClassExpression(value: Expression): import("estree").Expression;
|
|
72
|
-
genNormalizeClassName(className: t.Expression): t.CallExpression
|
|
72
|
+
genNormalizeClassName(className: t.Expression): t.CallExpression;
|
|
73
73
|
/**
|
|
74
74
|
* Generates childs vnodes when slot content is static.
|
|
75
75
|
* @param slotName
|
package/dist/index.cjs.js
CHANGED
|
@@ -13632,7 +13632,7 @@ class CodeGen {
|
|
|
13632
13632
|
return classExpression;
|
|
13633
13633
|
}
|
|
13634
13634
|
genNormalizeClassName(className) {
|
|
13635
|
-
return this._renderApiCall(RENDER_APIS.normalizeClassName, [className]
|
|
13635
|
+
return this._renderApiCall(RENDER_APIS.normalizeClassName, [className]);
|
|
13636
13636
|
}
|
|
13637
13637
|
/**
|
|
13638
13638
|
* Generates childs vnodes when slot content is static.
|
|
@@ -13730,19 +13730,13 @@ class CodeGen {
|
|
|
13730
13730
|
// usage of the lwc:inner-html, and in an iteration, usages are dynamically generated.
|
|
13731
13731
|
return conditionalExpression(binaryExpression('!==', memberExpression(identifier(TEMPLATE_PARAMS.CONTEXT), identifier(`_rawHtml$${instance}`)), assignmentExpression('=', memberExpression(identifier(TEMPLATE_PARAMS.CONTEXT), identifier(`_rawHtml$${instance}`)), expr)), assignmentExpression('=', memberExpression(identifier(TEMPLATE_PARAMS.CONTEXT), identifier(`_sanitizedHtml$${instance}`)), this.genSanitizeHtmlContent(expr)), memberExpression(identifier(TEMPLATE_PARAMS.CONTEXT), identifier(`_sanitizedHtml$${instance}`)));
|
|
13732
13732
|
}
|
|
13733
|
-
_renderApiCall(primitive, params
|
|
13733
|
+
_renderApiCall(primitive, params) {
|
|
13734
13734
|
const { name, alias } = primitive;
|
|
13735
13735
|
let identifier$1 = this.usedApis[name];
|
|
13736
13736
|
if (!identifier$1) {
|
|
13737
13737
|
identifier$1 = this.usedApis[name] = identifier(alias);
|
|
13738
13738
|
}
|
|
13739
|
-
|
|
13740
|
-
// Check if the property actually exists before calling, to allow
|
|
13741
|
-
// for older engines to work with newer compilers
|
|
13742
|
-
// TODO [#4313]: remove temporary logic to support v7 compiler + v6 engine
|
|
13743
|
-
return fallbackForCompilerEngineVersionMismatch
|
|
13744
|
-
? conditionalExpression(identifier$1, callExpression$1, fallbackForCompilerEngineVersionMismatch)
|
|
13745
|
-
: callExpression$1;
|
|
13739
|
+
return callExpression(identifier$1, params);
|
|
13746
13740
|
}
|
|
13747
13741
|
beginScope() {
|
|
13748
13742
|
this.scope = this.createScope(this.scope);
|
|
@@ -14712,5 +14706,5 @@ exports.default = compile;
|
|
|
14712
14706
|
exports.kebabcaseToCamelcase = kebabcaseToCamelcase;
|
|
14713
14707
|
exports.parse = parse;
|
|
14714
14708
|
exports.toPropertyName = toPropertyName;
|
|
14715
|
-
/** version: 7.0.
|
|
14709
|
+
/** version: 7.0.5 */
|
|
14716
14710
|
//# sourceMappingURL=index.cjs.js.map
|