@abaplint/runtime 2.12.1 → 2.12.2

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.
@@ -159,6 +159,12 @@ class HashedTable {
159
159
  const isStructured = tableRowType instanceof structure_1.Structure;
160
160
  for (const k of this.options.primaryKey.keyFields) {
161
161
  let val = data[k.toLowerCase()];
162
+ if (val === undefined
163
+ && tableRowType.get()[k.toLowerCase()] instanceof structure_1.Structure
164
+ && Object.keys(tableRowType.get()[k.toLowerCase()].get()).length === 1) {
165
+ // todo: this might need to be extended and fixed
166
+ val = data[Object.keys(tableRowType.get()[k.toLowerCase()].get())[0]];
167
+ }
162
168
  // convert to correct type, eg Chars have specific length, or rounding,
163
169
  if (k === "TABLE_LINE") {
164
170
  const row = tableRowType.clone();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.12.1",
3
+ "version": "2.12.2",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",