@abaplint/transpiler-cli 2.7.10 → 2.7.12
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/build/bundle.js +5 -0
- package/package.json +4 -4
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().trimEnd()]: 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.
|
|
3
|
+
"version": "2.7.12",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"author": "abaplint",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@abaplint/transpiler": "^2.7.
|
|
29
|
+
"@abaplint/transpiler": "^2.7.12",
|
|
30
30
|
"@types/glob": "^7.2.0",
|
|
31
31
|
"glob": "=7.2.0",
|
|
32
32
|
"@types/progress": "^2.0.5",
|
|
33
|
-
"@types/node": "^20.2.
|
|
33
|
+
"@types/node": "^20.2.4",
|
|
34
34
|
"@abaplint/core": "^2.101.6",
|
|
35
35
|
"progress": "^2.0.3",
|
|
36
|
-
"webpack": "^5.84.
|
|
36
|
+
"webpack": "^5.84.1",
|
|
37
37
|
"webpack-cli": "^5.1.1",
|
|
38
38
|
"typescript": "^5.0.4"
|
|
39
39
|
}
|