@abaplint/runtime 2.13.72 → 2.13.73

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.
@@ -6,6 +6,7 @@ type topType = {
6
6
  };
7
7
  export interface ILoopOptions {
8
8
  where?: (i: any) => Promise<boolean>;
9
+ atLast?: (last: boolean) => void;
9
10
  usingKey?: string;
10
11
  from?: Integer;
11
12
  to?: Integer;
@@ -126,6 +126,7 @@ async function* loop(table, options) {
126
126
  }
127
127
  abap.builtin.sy.get().tabix.set(loopController.index + 1);
128
128
  entered = true;
129
+ options?.atLast?.(loopController.index + 1 >= loopController.loopTo);
129
130
  yield current;
130
131
  loopController.index++;
131
132
  if (options?.to === undefined && options?.usingKey === undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.13.72",
3
+ "version": "2.13.73",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",