@abaplint/runtime 2.4.10 → 2.4.11

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.
@@ -164,6 +164,15 @@ class Table {
164
164
  ref.assign(item.getPointer());
165
165
  this.value.push(ref);
166
166
  return ref;
167
+ // @ts-ignore
168
+ // eslint-disable-next-line max-len
169
+ }
170
+ else if (this.isStructured === true && item.getQualifiedName && this.rowType.getQualifiedName && item.getQualifiedName() !== "" && item.getQualifiedName() === this.rowType.getQualifiedName()) {
171
+ // hmm, moving this to getValue() should, but does not work
172
+ // types match, so no need to do conversions, just clone the item
173
+ const val = (0, clone_1.clone)(item);
174
+ this.value.push(val);
175
+ return val;
167
176
  }
168
177
  else {
169
178
  const val = this.getValue(item);
@@ -194,13 +203,6 @@ class Table {
194
203
  const tmp = (0, clone_1.clone)(this.getRowType());
195
204
  tmp.set(new string_1.String().set(item));
196
205
  return tmp;
197
- // @ts-ignore
198
- // eslint-disable-next-line max-len
199
- }
200
- else if (this.isStructured === true && item.getQualifiedName && this.rowType.getQualifiedName && item.getQualifiedName() === this.rowType.getQualifiedName()) {
201
- // types match, so no need to do conversions, just clone the item
202
- const val = (0, clone_1.clone)(item);
203
- return val;
204
206
  }
205
207
  else {
206
208
  const tmp = (0, clone_1.clone)(this.getRowType());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.4.10",
3
+ "version": "2.4.11",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",