@kosdev-code/kos-ui-sdk 3.0.37 → 3.0.38
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.
- package/core/core/transport/mock/future-simulator.d.ts.map +1 -1
- package/core/core/transport/mock/mock-types.d.ts +8 -2
- package/core/core/transport/mock/mock-types.d.ts.map +1 -1
- package/index.cjs +3 -3
- package/index.cjs.map +1 -1
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/package.json +6 -2
- package/{software-info-registration-DTbgaSeR.cjs → software-info-registration-DMOIY4c3.cjs} +9 -10
- package/{software-info-registration-DTbgaSeR.cjs.map → software-info-registration-DMOIY4c3.cjs.map} +1 -1
- package/{software-info-registration-BqhJP3ww.js → software-info-registration-hfu4S9Qm.js} +9 -10
- package/{software-info-registration-BqhJP3ww.js.map → software-info-registration-hfu4S9Qm.js.map} +1 -1
- package/testing.cjs +1 -1
- package/testing.js +1 -1
|
@@ -7461,6 +7461,7 @@ class KosMockFutureHandle {
|
|
|
7461
7461
|
elapsedMs = 0;
|
|
7462
7462
|
endStateValue;
|
|
7463
7463
|
reasonValue;
|
|
7464
|
+
endFields;
|
|
7464
7465
|
timer;
|
|
7465
7466
|
started = false;
|
|
7466
7467
|
durationMs;
|
|
@@ -7476,7 +7477,8 @@ class KosMockFutureHandle {
|
|
|
7476
7477
|
remainingTimeMs: this.remainingTimeMs,
|
|
7477
7478
|
endState: this.endStateValue,
|
|
7478
7479
|
reason: this.reasonValue,
|
|
7479
|
-
clientData: this.clientData
|
|
7480
|
+
clientData: this.clientData,
|
|
7481
|
+
...this.endFields
|
|
7480
7482
|
};
|
|
7481
7483
|
}
|
|
7482
7484
|
start() {
|
|
@@ -7507,14 +7509,15 @@ class KosMockFutureHandle {
|
|
|
7507
7509
|
}
|
|
7508
7510
|
this.emitFrame(encodeFutureFrame(this.snapshot()));
|
|
7509
7511
|
}
|
|
7510
|
-
complete(endState = "SUCCESS",
|
|
7512
|
+
complete(endState = "SUCCESS", end) {
|
|
7511
7513
|
if (this.done) {
|
|
7512
7514
|
return;
|
|
7513
7515
|
}
|
|
7514
7516
|
this.stopTimer();
|
|
7515
7517
|
this.done = true;
|
|
7516
7518
|
this.endStateValue = endState;
|
|
7517
|
-
this.
|
|
7519
|
+
this.endFields = typeof end === "string" ? { reason: end } : end;
|
|
7520
|
+
this.reasonValue = this.endFields?.reason;
|
|
7518
7521
|
this.remainingTimeMs = 0;
|
|
7519
7522
|
if (endState === "SUCCESS") {
|
|
7520
7523
|
this.progress = 1;
|
|
@@ -7599,12 +7602,8 @@ class KosMockFutureSimulator {
|
|
|
7599
7602
|
ended.add(future.id);
|
|
7600
7603
|
}
|
|
7601
7604
|
}
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
endState: options.endState,
|
|
7605
|
-
reason: options.reason,
|
|
7606
|
-
remainingTimeMs: 0
|
|
7607
|
-
};
|
|
7605
|
+
const { atProgress: _atProgress, ...end } = options;
|
|
7606
|
+
return { ...future, reason: void 0, remainingTimeMs: 0, ...end };
|
|
7608
7607
|
},
|
|
7609
7608
|
{ description: `futures end with ${options.endState}` }
|
|
7610
7609
|
);
|
|
@@ -25542,4 +25541,4 @@ export {
|
|
|
25542
25541
|
Registration as y,
|
|
25543
25542
|
getStateBeanData as z
|
|
25544
25543
|
};
|
|
25545
|
-
//# sourceMappingURL=software-info-registration-
|
|
25544
|
+
//# sourceMappingURL=software-info-registration-hfu4S9Qm.js.map
|