@xaendar/compiler 0.6.10 → 0.6.11

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.
@@ -1952,7 +1952,7 @@ function processConstDeclaration(node, _nodeName, _parentNode) {
1952
1952
  function processElement(node, nodeName, parentNode) {
1953
1953
  const attributes = mapAttributes(node.attributes);
1954
1954
  const events = mapEvents(node.events);
1955
- const code = [`renderElement(${parentNode}, context, '${node.tagName}',`];
1955
+ const code = [`_renderElement(${parentNode}, context, '${node.tagName}',`];
1956
1956
  attributes.length ? code.push(...indent([
1957
1957
  "[",
1958
1958
  ...indent(attributes),
@@ -2459,7 +2459,7 @@ function processSwitch(node, nodeName, parentNode) {
2459
2459
  * @returns Array of two generated code lines: the text node creation and the appendChild call.
2460
2460
  */
2461
2461
  function processTextAndInterpolation(node, nodeName, parentNode) {
2462
- return [`${node.type === ASTNodeType.Text ? `renderLiteralText(${parentNode}, context, '${node.value}')` : `renderText(${parentNode}, context, '${node.expression.text}')`}`];
2462
+ return [`${node.type === ASTNodeType.Text ? `_renderLiteralText(${parentNode}, context, '${node.value}')` : `_renderText(${parentNode}, context, '${node.expression.text}')`}`];
2463
2463
  }
2464
2464
  //#endregion
2465
2465
  //#region ../packages/compiler/src/render-generator/render-generator.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaendar/compiler",
3
- "version": "0.6.10",
3
+ "version": "0.6.11",
4
4
  "description": "A library for transpiling Xaendar Templates into JavaScript code",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -16,8 +16,8 @@
16
16
  }
17
17
  },
18
18
  "dependencies": {
19
- "@xaendar/common": "0.6.10",
20
- "@xaendar/types": "0.6.10",
19
+ "@xaendar/common": "0.6.11",
20
+ "@xaendar/types": "0.6.11",
21
21
  "typescript": "^6.0.3"
22
22
  }
23
23
  }