@abaplint/transpiler 2.1.15 → 2.1.16

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.
@@ -59,7 +59,8 @@ class SelectTranspiler {
59
59
  if (node.findFirstExpression(abaplint.Expressions.SQLForAllEntries)) {
60
60
  const unique = unique_identifier_1.UniqueIdentifier.get();
61
61
  const faeName = (_f = (_e = (_d = node.findFirstExpression(abaplint.Expressions.SQLForAllEntries)) === null || _d === void 0 ? void 0 : _d.findDirectExpression(abaplint.Expressions.SQLSource)) === null || _e === void 0 ? void 0 : _e.concatTokens()) === null || _f === void 0 ? void 0 : _f.toLowerCase();
62
- select = select.replace(new RegExp(" " + faeName, "g"), unique);
62
+ select = select.replace(new RegExp(" " + faeName, "g"), " " + unique);
63
+ select = select.replace(unique + ".get().table_line.get()", unique + ".get()"); // there can be only one?
63
64
  const code = `if (${faeName}.array().length === 0) {
64
65
  throw "FAE, todo, empty table";
65
66
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.1.15",
3
+ "version": "2.1.16",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",