@abaplint/transpiler-cli 2.7.10 → 2.7.11

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 +5 -0
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -70044,9 +70044,11 @@ class MethodCallBodyTranspiler {
70044
70044
  }
70045
70045
  transpile(node, traversal) {
70046
70046
  const ret = new chunk_1.Chunk();
70047
+ let pt = false;
70047
70048
  for (const c of node.getChildren()) {
70048
70049
  if (c instanceof core_1.Nodes.TokenNode) {
70049
70050
  // PARAMETER-TABLE
70051
+ pt = true;
70050
70052
  continue;
70051
70053
  }
70052
70054
  else if (c.get() instanceof abaplint.Expressions.MethodCallParam) {
@@ -70054,6 +70056,9 @@ class MethodCallBodyTranspiler {
70054
70056
  }
70055
70057
  else {
70056
70058
  ret.appendChunk(traversal.traverse(c));
70059
+ if (pt === true) {
70060
+ ret.appendString(".array().reduce((a, v) => ({ ...a, [v.get().name.get().toLowerCase()]: v.get().value.dereference()}), {})");
70061
+ }
70057
70062
  }
70058
70063
  }
70059
70064
  return ret;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.7.10",
3
+ "version": "2.7.11",
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.10",
29
+ "@abaplint/transpiler": "^2.7.11",
30
30
  "@types/glob": "^7.2.0",
31
31
  "glob": "=7.2.0",
32
32
  "@types/progress": "^2.0.5",