@abaplint/transpiler-cli 2.7.84 → 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 +8 -4
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -28395,7 +28395,8 @@ class InsertInternal {
28395
28395
  if (t) {
28396
28396
  targetType = new target_1.Target().runSyntax(t, scope, filename);
28397
28397
  }
28398
- if (targetType instanceof basic_1.TableType && node.findDirectTokenByText("LINES") === undefined) {
28398
+ if (targetType instanceof basic_1.TableType
28399
+ && node.findDirectTokenByText("LINES") === undefined) {
28399
28400
  targetType = targetType.getRowType();
28400
28401
  }
28401
28402
  let source = node.findDirectExpression(Expressions.SimpleSource4);
@@ -28413,7 +28414,8 @@ class InsertInternal {
28413
28414
  new fstarget_1.FSTarget().runSyntax(afterAssigning, scope, filename, sourceType);
28414
28415
  }
28415
28416
  }
28416
- if (new _type_utils_1.TypeUtils(scope).isAssignableStrict(sourceType, targetType) === false) {
28417
+ if (afterAssigning === undefined
28418
+ && new _type_utils_1.TypeUtils(scope).isAssignableStrict(sourceType, targetType) === false) {
28417
28419
  throw new Error("Types not compatible");
28418
28420
  }
28419
28421
  const afterInto = node.findExpressionAfterToken("INTO");
@@ -47819,7 +47821,7 @@ class Registry {
47819
47821
  }
47820
47822
  static abaplintVersion() {
47821
47823
  // magic, see build script "version.sh"
47822
- return "2.102.32";
47824
+ return "2.102.33";
47823
47825
  }
47824
47826
  getDDICReferences() {
47825
47827
  return this.ddicReferences;
@@ -78214,6 +78216,7 @@ class SelectTranspiler {
78214
78216
  }
78215
78217
  if (node.findFirstExpression(abaplint.Expressions.SQLForAllEntries)) {
78216
78218
  const unique = unique_identifier_1.UniqueIdentifier.get();
78219
+ const unique2 = unique_identifier_1.UniqueIdentifier.get();
78217
78220
  const fn = (_a = node.findFirstExpression(abaplint.Expressions.SQLForAllEntries)) === null || _a === void 0 ? void 0 : _a.findDirectExpression(abaplint.Expressions.SQLSource);
78218
78221
  const faeTranspiled = new expressions_1.SQLSourceTranspiler().transpile(fn, traversal).getCode();
78219
78222
  select = select.replace(new RegExp(" " + escapeRegExp(faeTranspiled), "g"), " " + unique);
@@ -78225,8 +78228,9 @@ class SelectTranspiler {
78225
78228
  const code = `if (${faeTranspiled}.array().length === 0) {
78226
78229
  throw "FAE, todo, empty table";
78227
78230
  } else {
78231
+ const ${unique2} = ${faeTranspiled}.array();
78228
78232
  abap.statements.clear(${target});
78229
- for await (const ${unique} of abap.statements.loop(${faeTranspiled})) {
78233
+ for await (const ${unique} of ${unique2}) {
78230
78234
  await abap.statements.select(${target}, {select: "${select.trim()}"${extra}}, {appending: true});
78231
78235
  }
78232
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.84",
3
+ "version": "2.7.86",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -26,12 +26,12 @@
26
26
  "author": "abaplint",
27
27
  "license": "MIT",
28
28
  "devDependencies": {
29
- "@abaplint/transpiler": "^2.7.84",
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",
33
33
  "@types/node": "^20.5.7",
34
- "@abaplint/core": "^2.102.32",
34
+ "@abaplint/core": "^2.102.33",
35
35
  "progress": "^2.0.3",
36
36
  "webpack": "^5.88.2",
37
37
  "webpack-cli": "^5.1.4",