@xaendar/compiler 0.6.6 → 0.6.7

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.
@@ -2437,7 +2437,7 @@ function processIf(node, nodeName, parentNode, context) {
2437
2437
  ...indent(mainBlock.map(({ condition, block }) => {
2438
2438
  return [
2439
2439
  "{",
2440
- ...indent(condition ? [`condition: ${condition.toString()},`, `block: ${block.toString()}`] : [`block: ${block.toString()}`]),
2440
+ ...indent(condition ? [`condition: () => ${condition.toString()},`, `block: ${block.toString()}`] : [`block: ${block.toString()}`]),
2441
2441
  "},"
2442
2442
  ];
2443
2443
  }).flat()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaendar/compiler",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
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.6",
20
- "@xaendar/types": "0.6.6",
19
+ "@xaendar/common": "0.6.7",
20
+ "@xaendar/types": "0.6.7",
21
21
  "typescript": "^6.0.3"
22
22
  }
23
23
  }