@gi-tcg/gts-transpiler 0.3.11 → 0.4.1

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/index.js CHANGED
@@ -68,7 +68,7 @@ function loosePlugin() {
68
68
  return function loosePluginTransformer(parser) {
69
69
  return class LooseParser extends parser {
70
70
  _patchedParseIdent = (liberal) => {
71
- if (this.type === tokTypes.name || this.type.keyword) return super.parseIdent(liberal);
71
+ if (this.type.label === "name" || this.type.keyword) return super.parseIdent(liberal);
72
72
  else return this.createDummyIdentifier();
73
73
  };
74
74
  #proxiedThis = new Proxy(this, { get: (target, prop) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gi-tcg/gts-transpiler",
3
- "version": "0.3.11",
3
+ "version": "0.4.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/piovium/gts.git"
@@ -9,7 +9,7 @@ export function loosePlugin() {
9
9
  private readonly _patchedParseIdent = (
10
10
  liberal?: boolean,
11
11
  ): AST.Identifier => {
12
- if (this.type === tokTypes.name || this.type.keyword) {
12
+ if (this.type.label === "name" || this.type.keyword) {
13
13
  return super.parseIdent(liberal);
14
14
  } else {
15
15
  return this.createDummyIdentifier();