@abaplint/transpiler-cli 2.7.85 → 2.7.86

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 +3 -1
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -78216,6 +78216,7 @@ class SelectTranspiler {
78216
78216
  }
78217
78217
  if (node.findFirstExpression(abaplint.Expressions.SQLForAllEntries)) {
78218
78218
  const unique = unique_identifier_1.UniqueIdentifier.get();
78219
+ const unique2 = unique_identifier_1.UniqueIdentifier.get();
78219
78220
  const fn = (_a = node.findFirstExpression(abaplint.Expressions.SQLForAllEntries)) === null || _a === void 0 ? void 0 : _a.findDirectExpression(abaplint.Expressions.SQLSource);
78220
78221
  const faeTranspiled = new expressions_1.SQLSourceTranspiler().transpile(fn, traversal).getCode();
78221
78222
  select = select.replace(new RegExp(" " + escapeRegExp(faeTranspiled), "g"), " " + unique);
@@ -78227,8 +78228,9 @@ class SelectTranspiler {
78227
78228
  const code = `if (${faeTranspiled}.array().length === 0) {
78228
78229
  throw "FAE, todo, empty table";
78229
78230
  } else {
78231
+ const ${unique2} = ${faeTranspiled}.array();
78230
78232
  abap.statements.clear(${target});
78231
- for await (const ${unique} of abap.statements.loop(${faeTranspiled})) {
78233
+ for await (const ${unique} of ${unique2}) {
78232
78234
  await abap.statements.select(${target}, {select: "${select.trim()}"${extra}}, {appending: true});
78233
78235
  }
78234
78236
  if (!(${target} instanceof abap.types.HashedTable) && ${target}.getOptions()?.primaryKey?.type !== "SORTED") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.7.85",
3
+ "version": "2.7.86",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -26,7 +26,7 @@
26
26
  "author": "abaplint",
27
27
  "license": "MIT",
28
28
  "devDependencies": {
29
- "@abaplint/transpiler": "^2.7.85",
29
+ "@abaplint/transpiler": "^2.7.86",
30
30
  "@types/glob": "^7.2.0",
31
31
  "glob": "=7.2.0",
32
32
  "@types/progress": "^2.0.5",