@abaplint/transpiler-cli 2.11.80 → 2.11.81
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 +6 -4
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -80016,7 +80016,8 @@ class MethodCallTranspiler {
|
|
|
80016
80016
|
// todo: this is not correct, the method name might be shadowed
|
|
80017
80017
|
name = "abap.builtin." + name + "(";
|
|
80018
80018
|
if (name === "abap.builtin.line_exists(" || name === "abap.builtin.line_index(") {
|
|
80019
|
-
name
|
|
80019
|
+
name = `await ` + name;
|
|
80020
|
+
name += "async () => {";
|
|
80020
80021
|
post = "}";
|
|
80021
80022
|
}
|
|
80022
80023
|
}
|
|
@@ -80131,7 +80132,8 @@ class MethodCallChainTranspiler {
|
|
|
80131
80132
|
for (const c of node.getChildren()) {
|
|
80132
80133
|
if (c instanceof core_1.Nodes.ExpressionNode && c.get() instanceof core_1.Expressions.MethodCall) {
|
|
80133
80134
|
const sub = traversal.traverse(c);
|
|
80134
|
-
if (sub.getCode().startsWith("abap.builtin.")
|
|
80135
|
+
if (sub.getCode().startsWith("abap.builtin.")
|
|
80136
|
+
|| sub.getCode().startsWith("await abap.builtin.")) {
|
|
80135
80137
|
ret.appendChunk(sub);
|
|
80136
80138
|
}
|
|
80137
80139
|
else {
|
|
@@ -82093,10 +82095,10 @@ class TableExpressionTranspiler {
|
|
|
82093
82095
|
throw new Error("TableExpressionTranspiler: todo, other, " + c.concatTokens());
|
|
82094
82096
|
}
|
|
82095
82097
|
}
|
|
82096
|
-
extra.push("withKey: (i) => {return " + withKey.join(" && ") + ";}");
|
|
82098
|
+
extra.push("withKey: async (i) => {return " + withKey.join(" && ") + ";}");
|
|
82097
82099
|
extra.push("usesTableLine: " + usesTableLine);
|
|
82098
82100
|
}
|
|
82099
|
-
ret.appendString(`abap.operators.tableExpression(${source.getCode()}, {${extra.join(", ")} })`);
|
|
82101
|
+
ret.appendString(`(await abap.operators.tableExpression(${source.getCode()}, {${extra.join(", ")} }))`);
|
|
82100
82102
|
return ret;
|
|
82101
82103
|
}
|
|
82102
82104
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.81",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@abaplint/core": "^2.113.200",
|
|
31
|
-
"@abaplint/transpiler": "^2.11.
|
|
31
|
+
"@abaplint/transpiler": "^2.11.81",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^24.3.1",
|
|
34
34
|
"@types/progress": "^2.0.7",
|