@abaplint/transpiler-cli 2.4.15 → 2.4.17

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 -2
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -73959,7 +73959,7 @@ class SelectTranspiler {
73959
73959
  for await (const ${unique} of abap.statements.loop(${faeTranspiled})) {
73960
73960
  await abap.statements.select(${target}, {select: "${select.trim()}"${extra}}, {appending: true});
73961
73961
  }
73962
- abap.statements.sort(${target});
73962
+ abap.statements.sort(${target}, {by: Object.keys(${target}.getRowType().get()).map(k => { return {component: k}; })});
73963
73963
  await abap.statements.deleteInternal(${target}, {adjacent: true});
73964
73964
  abap.builtin.sy.get().dbcnt.set(${target}.array().length);
73965
73965
  }`;
@@ -76281,7 +76281,8 @@ class Traversal {
76281
76281
  continue;
76282
76282
  }
76283
76283
  const n = Traversal.escapeNamespace(name.toLowerCase()) + "$" + a.getName().toLowerCase();
76284
- ret += "this." + n + " = " + new transpile_types_1.TranspileTypes().toType(a.getType()) + ";\n";
76284
+ // note: interface inheritenace and super inheritance might be strange,
76285
+ ret += "if (this." + n + " === undefined) this." + n + " = " + new transpile_types_1.TranspileTypes().toType(a.getType()) + ";\n";
76285
76286
  }
76286
76287
  for (const i of (intf === null || intf === void 0 ? void 0 : intf.getImplementing()) || []) {
76287
76288
  ret += this.dataFromInterfaces(i.name, scope);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.4.15",
3
+ "version": "2.4.17",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "bin": {
6
6
  "abap_transpile": "./abap_transpile"
@@ -25,7 +25,7 @@
25
25
  "author": "abaplint",
26
26
  "license": "MIT",
27
27
  "devDependencies": {
28
- "@abaplint/transpiler": "^2.4.15",
28
+ "@abaplint/transpiler": "^2.4.17",
29
29
  "@types/glob": "^7.2.0",
30
30
  "glob": "=7.2.0",
31
31
  "@types/progress": "^2.0.5",