@abaplint/transpiler-cli 2.10.81 → 2.10.83
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 +12 -0
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -85341,6 +85341,18 @@ class LoopTranspiler {
|
|
|
85341
85341
|
// todo, evil workaround removing "await",
|
|
85342
85342
|
extra.push("where: async " + where);
|
|
85343
85343
|
}
|
|
85344
|
+
const afterWhere = node.findExpressionAfterToken("WHERE");
|
|
85345
|
+
if (afterWhere && afterWhere.get() instanceof abaplint.Expressions.Dynamic) {
|
|
85346
|
+
const condition = afterWhere.findFirstExpression(abaplint.Expressions.FieldChain);
|
|
85347
|
+
let code = "";
|
|
85348
|
+
if (condition) {
|
|
85349
|
+
code = new expressions_1.FieldChainTranspiler(true).transpile(condition, traversal).getCode();
|
|
85350
|
+
}
|
|
85351
|
+
else {
|
|
85352
|
+
code = `"transpiler, const dynamic loop where todo"`;
|
|
85353
|
+
}
|
|
85354
|
+
extra.push(`dynamicWhere: {condition: ${code}, evaluate: (name) => {try { return eval(name);} catch {}}}`);
|
|
85355
|
+
}
|
|
85344
85356
|
const topEquals = {};
|
|
85345
85357
|
for (const compare of whereNode?.findDirectExpressions(abaplint.Expressions.ComponentCompare) || []) {
|
|
85346
85358
|
const op = compare.findDirectExpression(abaplint.Expressions.CompareOperator)?.concatTokens().toUpperCase();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.83",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@abaplint/core": "^2.113.150",
|
|
31
|
-
"@abaplint/transpiler": "^2.10.
|
|
31
|
+
"@abaplint/transpiler": "^2.10.83",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
|
-
"@types/node": "^22.
|
|
33
|
+
"@types/node": "^22.17.0",
|
|
34
34
|
"@types/progress": "^2.0.7",
|
|
35
35
|
"glob": "=7.2.0",
|
|
36
36
|
"progress": "^2.0.3",
|