@abaplint/runtime 2.5.61 → 2.5.62

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.
@@ -9,7 +9,7 @@ function lines(input) {
9
9
  }
10
10
  return lines({ val: input.val.getPointer() });
11
11
  }
12
- return new types_1.Integer().set(input.val.getLength());
12
+ return new types_1.Integer().set(input.val.getArrayLength());
13
13
  }
14
14
  exports.lines = lines;
15
15
  //# sourceMappingURL=lines.js.map
@@ -60,7 +60,7 @@ function loop(table, options) {
60
60
  yield __await(yield* __asyncDelegator(__asyncValues(loop(pnt, options))));
61
61
  return yield __await(void 0);
62
62
  }
63
- const length = table.getLength();
63
+ const length = table.getArrayLength();
64
64
  if (length === 0) {
65
65
  // @ts-ignore
66
66
  abap.builtin.sy.get().subrc.set(4);
@@ -19,7 +19,7 @@ export declare class DataReference {
19
19
  clear(): void;
20
20
  get(): any;
21
21
  array(): any;
22
- getLength(): any;
22
+ getArrayLength(): any;
23
23
  set(value: any): void | Float | ABAPObject | this | Table | Structure;
24
24
  getOffset(input: {
25
25
  offset?: number | INumeric | Hex;
@@ -42,10 +42,10 @@ class DataReference {
42
42
  // @ts-ignore
43
43
  return (_a = this.pointer) === null || _a === void 0 ? void 0 : _a.array();
44
44
  }
45
- getLength() {
45
+ getArrayLength() {
46
46
  var _a;
47
47
  // @ts-ignore
48
- return (_a = this.pointer) === null || _a === void 0 ? void 0 : _a.getLength();
48
+ return (_a = this.pointer) === null || _a === void 0 ? void 0 : _a.getArrayLength();
49
49
  }
50
50
  set(value) {
51
51
  var _a;
@@ -23,7 +23,7 @@ export declare class FieldSymbol {
23
23
  get(): any;
24
24
  appendInitial(): import("./table").TableRowType | undefined;
25
25
  array(): any;
26
- getLength(): any;
26
+ getArrayLength(): any;
27
27
  set(value: any): this;
28
28
  getOffset(input: {
29
29
  offset?: number | INumeric | Hex;
@@ -87,10 +87,10 @@ class FieldSymbol {
87
87
  // @ts-ignore
88
88
  return (_a = this.pointer) === null || _a === void 0 ? void 0 : _a.array();
89
89
  }
90
- getLength() {
90
+ getArrayLength() {
91
91
  var _a;
92
92
  // @ts-ignore
93
- return (_a = this.pointer) === null || _a === void 0 ? void 0 : _a.getLength();
93
+ return (_a = this.pointer) === null || _a === void 0 ? void 0 : _a.getArrayLength();
94
94
  }
95
95
  set(value) {
96
96
  var _a;
@@ -29,7 +29,7 @@ interface ITable {
29
29
  getQualifiedName(): string | undefined;
30
30
  getOptions(): ITableOptions | undefined;
31
31
  getRowType(): TableRowType;
32
- getLength(): number;
32
+ getArrayLength(): number;
33
33
  clear(): void;
34
34
  set(tab: Table | HashedTable | TableRowType): ITable;
35
35
  getHeader(): TableRowType;
@@ -48,7 +48,7 @@ export declare class HashedTable implements ITable {
48
48
  private readonly qualifiedName;
49
49
  private secondaryIndexes;
50
50
  constructor(rowType: TableRowType, options: ITableOptions, qualifiedName?: string);
51
- getLength(): number;
51
+ getArrayLength(): number;
52
52
  getKeyByName(name: string): ITableKey | undefined;
53
53
  getSecondaryIndex(name: string): any[];
54
54
  buildHashFromData(data: TableRowType): string;
@@ -83,7 +83,7 @@ export declare class Table implements ITable {
83
83
  private readonly isStructured;
84
84
  private secondaryIndexes;
85
85
  constructor(rowType: TableRowType, options: ITableOptions, qualifiedName?: string);
86
- getLength(): number;
86
+ getArrayLength(): number;
87
87
  getKeyByName(name: string): ITableKey | undefined;
88
88
  getSecondaryIndex(name: string): TableRowType[];
89
89
  getQualifiedName(): string | undefined;
@@ -65,7 +65,7 @@ class HashedTable {
65
65
  }
66
66
  this.qualifiedName = qualifiedName === null || qualifiedName === void 0 ? void 0 : qualifiedName.toUpperCase();
67
67
  }
68
- getLength() {
68
+ getArrayLength() {
69
69
  return Object.keys(this.value).length;
70
70
  }
71
71
  getKeyByName(name) {
@@ -221,7 +221,7 @@ class Table {
221
221
  }
222
222
  this.qualifiedName = qualifiedName === null || qualifiedName === void 0 ? void 0 : qualifiedName.toUpperCase();
223
223
  }
224
- getLength() {
224
+ getArrayLength() {
225
225
  return this.value.length;
226
226
  }
227
227
  getKeyByName(name) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.5.61",
3
+ "version": "2.5.62",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",