@abaplint/runtime 2.3.127 → 2.4.1

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.
@@ -26,6 +26,9 @@ export declare class ABAP {
26
26
  DDIC: {
27
27
  [name: string]: any;
28
28
  };
29
+ TypePools: {
30
+ [name: string]: any;
31
+ };
29
32
  statements: Statements;
30
33
  types: typeof types;
31
34
  builtin: typeof builtin;
@@ -26,6 +26,7 @@ class ABAP {
26
26
  this.Classes = {};
27
27
  this.Interfaces = {};
28
28
  this.DDIC = {};
29
+ this.TypePools = {};
29
30
  this.types = types;
30
31
  this.builtin = builtin;
31
32
  this.operators = operators;
@@ -87,7 +87,12 @@ function insertInternal(options) {
87
87
  abap.builtin.sy.get().subrc.set(0);
88
88
  if (isSorted) {
89
89
  // slow, but works for now
90
- const by = (_e = (_d = tableOptions === null || tableOptions === void 0 ? void 0 : tableOptions.primaryKey) === null || _d === void 0 ? void 0 : _d.keyFields) === null || _e === void 0 ? void 0 : _e.map(f => { return { component: f.toLowerCase() }; });
90
+ let by = (_e = (_d = tableOptions === null || tableOptions === void 0 ? void 0 : tableOptions.primaryKey) === null || _d === void 0 ? void 0 : _d.keyFields) === null || _e === void 0 ? void 0 : _e.map(f => {
91
+ return { component: f.toLowerCase() };
92
+ });
93
+ if ((by === null || by === void 0 ? void 0 : by.length) === 1 && by[0].component === "table_line") {
94
+ by = [];
95
+ }
91
96
  if (by && by.length > 0) {
92
97
  (0, sort_1.sort)(options.table, { by: by });
93
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.3.127",
3
+ "version": "2.4.1",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",