@abaplint/transpiler-cli 2.7.64 → 2.7.66

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.
Files changed (2) hide show
  1. package/build/bundle.js +8 -7
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -73261,11 +73261,12 @@ class Rearranger {
73261
73261
  // multiplication/division and left to right
73262
73262
  for (let i = arith.length - 1; i >= 0; i--) {
73263
73263
  const a = arith[i];
73264
- if (a.concatTokens() === "*"
73265
- || a.concatTokens() === "/"
73266
- || a.concatTokens() === "**"
73267
- || a.concatTokens() === "MOD"
73268
- || a.concatTokens() === "DIV") {
73264
+ const concat = a.concatTokens().toUpperCase();
73265
+ if (concat === "*"
73266
+ || concat === "/"
73267
+ || concat === "**"
73268
+ || concat === "MOD"
73269
+ || concat === "DIV") {
73269
73270
  continue;
73270
73271
  }
73271
73272
  splitAt = a;
@@ -79950,11 +79951,11 @@ class TranspileTypes {
79950
79951
  else if (type instanceof abaplint.BasicTypes.StructureType) {
79951
79952
  resolved = "Structure";
79952
79953
  const list = [];
79953
- const renamingSuffix = [];
79954
+ const renamingSuffix = {};
79954
79955
  for (const c of type.getComponents()) {
79955
79956
  list.push(`"` + c.name.toLowerCase() + `": ` + this.toType(c.type));
79956
79957
  if (c.renamingSuffix) {
79957
- renamingSuffix.push(c.renamingSuffix);
79958
+ renamingSuffix[c.name.toLowerCase()] = c.renamingSuffix;
79958
79959
  }
79959
79960
  }
79960
79961
  extra = "{" + list.join(", ") + "}";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.7.64",
3
+ "version": "2.7.66",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -26,7 +26,7 @@
26
26
  "author": "abaplint",
27
27
  "license": "MIT",
28
28
  "devDependencies": {
29
- "@abaplint/transpiler": "^2.7.64",
29
+ "@abaplint/transpiler": "^2.7.66",
30
30
  "@types/glob": "^7.2.0",
31
31
  "glob": "=7.2.0",
32
32
  "@types/progress": "^2.0.5",