@abaplint/transpiler-cli 2.10.80 → 2.10.82

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 +11 -0
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -85341,6 +85341,17 @@ 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
+ if (condition) {
85348
+ const code = new expressions_1.FieldChainTranspiler(true).transpile(condition, traversal).getCode();
85349
+ extra.push(`dynamicWhere: {condition: ${code}, evaluate: (name) => {try { return eval(name);} catch {}}}`);
85350
+ }
85351
+ else {
85352
+ throw new Error("LoopTranspiler, dynamic where not implemented");
85353
+ }
85354
+ }
85344
85355
  const topEquals = {};
85345
85356
  for (const compare of whereNode?.findDirectExpressions(abaplint.Expressions.ComponentCompare) || []) {
85346
85357
  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.80",
3
+ "version": "2.10.82",
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.80",
31
+ "@abaplint/transpiler": "^2.10.82",
32
32
  "@types/glob": "^8.1.0",
33
- "@types/node": "^22.16.5",
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",