@abaplint/transpiler-cli 2.10.82 → 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 +4 -3
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -85344,13 +85344,14 @@ class LoopTranspiler {
|
|
|
85344
85344
|
const afterWhere = node.findExpressionAfterToken("WHERE");
|
|
85345
85345
|
if (afterWhere && afterWhere.get() instanceof abaplint.Expressions.Dynamic) {
|
|
85346
85346
|
const condition = afterWhere.findFirstExpression(abaplint.Expressions.FieldChain);
|
|
85347
|
+
let code = "";
|
|
85347
85348
|
if (condition) {
|
|
85348
|
-
|
|
85349
|
-
extra.push(`dynamicWhere: {condition: ${code}, evaluate: (name) => {try { return eval(name);} catch {}}}`);
|
|
85349
|
+
code = new expressions_1.FieldChainTranspiler(true).transpile(condition, traversal).getCode();
|
|
85350
85350
|
}
|
|
85351
85351
|
else {
|
|
85352
|
-
|
|
85352
|
+
code = `"transpiler, const dynamic loop where todo"`;
|
|
85353
85353
|
}
|
|
85354
|
+
extra.push(`dynamicWhere: {condition: ${code}, evaluate: (name) => {try { return eval(name);} catch {}}}`);
|
|
85354
85355
|
}
|
|
85355
85356
|
const topEquals = {};
|
|
85356
85357
|
for (const compare of whereNode?.findDirectExpressions(abaplint.Expressions.ComponentCompare) || []) {
|
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,7 +28,7 @@
|
|
|
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
33
|
"@types/node": "^22.17.0",
|
|
34
34
|
"@types/progress": "^2.0.7",
|