@xaendar/compiler 0.7.13 → 0.7.14

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.
@@ -170,7 +170,7 @@ var CompilerContext = class {
170
170
  *
171
171
  * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
172
172
  */
173
- var GLOBAL_IDENTIFIERS = /* @__PURE__ */ new Set([
173
+ var GLOBAL_IDENTIFIERS = new Set([
174
174
  "undefined",
175
175
  "NaN",
176
176
  "Infinity",
@@ -592,8 +592,8 @@ function mapEvents(events, compilerContext) {
592
592
  }
593
593
  function getPrecode(tagName) {
594
594
  switch (tagName) {
595
- case "svg": return "context.createElement = (tagName) => document.createElementNS.bind(document)(SVG_NS, tagName);";
596
- case "math": return "context.createElement = (tagName) => document.createElementNS.bind(document)(MATHML_NS, tagName);";
595
+ case "svg": return "context.createElement = createElementNS(tagName);";
596
+ case "math": return "context.createElement = createElementMATHML(tagName);";
597
597
  default: return "";
598
598
  }
599
599
  }
@@ -2500,7 +2500,7 @@ function parseForExpression(source, baseOffset) {
2500
2500
  function parseImplicitAliases(source, baseOffset, out) {
2501
2501
  const entries = source.split(",");
2502
2502
  let cursor = 0;
2503
- const IMPLICIT_VARIABLES = /* @__PURE__ */ new Set([
2503
+ const IMPLICIT_VARIABLES = new Set([
2504
2504
  "$index",
2505
2505
  "$last",
2506
2506
  "$first",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaendar/compiler",
3
- "version": "0.7.13",
3
+ "version": "0.7.14",
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.13",
20
- "@xaendar/types": "0.7.13",
19
+ "@xaendar/common": "0.7.14",
20
+ "@xaendar/types": "0.7.14",
21
21
  "typescript": "^6.0.3"
22
22
  }
23
23
  }