@gi-tcg/gts-transpiler 0.3.4 → 0.3.5

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
@@ -1243,7 +1243,7 @@ function applyReplacements(state, code, mappings) {
1243
1243
  else if (payload.type === "exitVM") {
1244
1244
  const lhs = `${payload.finalMetaType}_lhs`;
1245
1245
  const requiredAttrsNs = `${payload.finalMetaType}_rans`;
1246
- const collectedAttrsExpr = `${payload.collectedAttrs.join(" | ")}`;
1246
+ const collectedAttrsExpr = `${payload.collectedAttrs.join(" | ") || "never"}`;
1247
1247
  const needleString = `"${requiredAttrsNs}_NeedleString" as any as "required attributes are missing"`;
1248
1248
  if (payload.errorRange) state.extraMappings.push({
1249
1249
  sourceOffset: payload.errorRange[0],
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@gi-tcg/gts-transpiler",
3
- "version": "0.3.4",
4
- "repository": "https://github.com/piovium/gts.git",
3
+ "version": "0.3.5",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/piovium/gts.git"
7
+ },
5
8
  "license": "Apache-2.0",
6
9
  "type": "module",
7
10
  "exports": {
@@ -120,7 +120,7 @@ export function applyReplacements(
120
120
  } else if (payload.type === "exitVM") {
121
121
  const lhs = `${payload.finalMetaType}_lhs`;
122
122
  const requiredAttrsNs = `${payload.finalMetaType}_rans`;
123
- const collectedAttrsExpr = `${payload.collectedAttrs.join(" | ")}`;
123
+ const collectedAttrsExpr = `${payload.collectedAttrs.join(" | ") || "never"}`;
124
124
  const needleString = `"${requiredAttrsNs}_NeedleString" as any as "required attributes are missing"`;
125
125
  if (payload.errorRange) {
126
126
  state.extraMappings.push({