@abaplint/runtime 2.5.69 → 2.5.71

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.
@@ -60,13 +60,13 @@ class MessageStatement {
60
60
  }
61
61
  msgty = msgty === null || msgty === void 0 ? void 0 : msgty.toUpperCase();
62
62
  // @ts-ignore
63
- abap.builtin.sy.get().msgid.set(arbgb);
63
+ abap.builtin.sy.get().msgid.set(arbgb || "");
64
64
  let msgnr = options.number;
65
65
  if (msgnr !== undefined && typeof msgnr !== "string") {
66
66
  msgnr = msgnr.get();
67
67
  }
68
68
  // @ts-ignore
69
- abap.builtin.sy.get().msgno.set(msgnr);
69
+ abap.builtin.sy.get().msgno.set(msgnr || "");
70
70
  // @ts-ignore
71
71
  abap.builtin.sy.get().msgty.set(msgty);
72
72
  let replaced = "";
@@ -29,7 +29,7 @@ function searchWithKey(arr, withKey, startIndex = 0, usesTableLine) {
29
29
  }
30
30
  /////////////////
31
31
  function readTable(table, options) {
32
- var _a, _b, _c;
32
+ var _a, _b, _c, _d;
33
33
  let found = undefined;
34
34
  let foundIndex = 0;
35
35
  if (table instanceof types_1.FieldSymbol) {
@@ -88,6 +88,7 @@ function readTable(table, options) {
88
88
  }
89
89
  else if (((options === null || options === void 0 ? void 0 : options.binarySearch) === true || (options === null || options === void 0 ? void 0 : options.withTableKey) === true)
90
90
  && options.withKeyValue
91
+ && ((options === null || options === void 0 ? void 0 : options.binarySearch) === true || ((_b = table.getOptions().primaryKey) === null || _b === void 0 ? void 0 : _b.type) !== types_1.TableAccessType.standard)
91
92
  && options.withKey) {
92
93
  // note: it currently only uses the first key field for binary search, todo
93
94
  const first = options.withKeyValue[0];
@@ -112,7 +113,7 @@ function readTable(table, options) {
112
113
  }
113
114
  if (table instanceof types_1.Table && options.from instanceof types_1.Structure) {
114
115
  const arr = table.array();
115
- const keys = (_c = (_b = table.getOptions()) === null || _b === void 0 ? void 0 : _b.primaryKey) === null || _c === void 0 ? void 0 : _c.keyFields;
116
+ const keys = (_d = (_c = table.getOptions()) === null || _c === void 0 ? void 0 : _c.primaryKey) === null || _d === void 0 ? void 0 : _d.keyFields;
116
117
  const isStructured = arr[0] instanceof types_1.Structure;
117
118
  if (keys !== undefined && isStructured === true) {
118
119
  // console.dir(keys);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.5.69",
3
+ "version": "2.5.71",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -33,7 +33,7 @@
33
33
  "chai": "^4.3.7",
34
34
  "mocha": "^10.2.0",
35
35
  "source-map-support": "^0.5.21",
36
- "typescript": "^5.0.2"
36
+ "typescript": "^5.0.3"
37
37
  },
38
38
  "dependencies": {
39
39
  "temporal-polyfill": "^0.1.1"