@xaendar/compiler 0.7.4 → 0.7.6

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.
@@ -661,7 +661,7 @@ function generateFor(node, parentNode, index, compilerContext, anchor) {
661
661
  isForBody: true
662
662
  },
663
663
  args: [
664
- parentNode,
664
+ forKey,
665
665
  "parentContext",
666
666
  itemsName,
667
667
  counterName,
@@ -709,7 +709,7 @@ function generateIf(node, parentNode, index, compilerContext) {
709
709
  anchor: "anchor"
710
710
  },
711
711
  args: [
712
- parentNode,
712
+ ifKey,
713
713
  "parentContext",
714
714
  "anchor"
715
715
  ]
@@ -794,7 +794,7 @@ function generateSwitch(node, parentNode, index, compilerContext) {
794
794
  context: caseContext
795
795
  },
796
796
  args: [
797
- parentNode,
797
+ caseKey,
798
798
  "parentContext",
799
799
  "anchor"
800
800
  ]
@@ -2196,6 +2196,8 @@ function isAllowedNode(node) {
2196
2196
  case SyntaxKind.BarBarToken:
2197
2197
  case SyntaxKind.QuestionQuestionToken:
2198
2198
  case SyntaxKind.QuestionDotToken:
2199
+ case SyntaxKind.QuestionToken:
2200
+ case SyntaxKind.ColonToken:
2199
2201
  case SyntaxKind.AmpersandToken:
2200
2202
  case SyntaxKind.BarToken:
2201
2203
  case SyntaxKind.CaretToken:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaendar/compiler",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
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.7.4",
20
- "@xaendar/types": "0.7.4",
19
+ "@xaendar/common": "0.7.6",
20
+ "@xaendar/types": "0.7.6",
21
21
  "typescript": "^6.0.3"
22
22
  }
23
23
  }