@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
package/package.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosdev-code/kos-ui-sdk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.38",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/The-Coca-Cola-Company/kos-ui-sdk.git"
|
|
7
|
+
},
|
|
4
8
|
"type": "module",
|
|
5
9
|
"main": "./index.cjs",
|
|
6
10
|
"module": "./index.js",
|
|
@@ -59,7 +63,7 @@
|
|
|
59
63
|
},
|
|
60
64
|
"kos": {
|
|
61
65
|
"build": {
|
|
62
|
-
"gitHash": "
|
|
66
|
+
"gitHash": "f7038b43e53bfa550587b93601462b9d31a619bb"
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
69
|
}
|
|
@@ -7462,6 +7462,7 @@ class KosMockFutureHandle {
|
|
|
7462
7462
|
elapsedMs = 0;
|
|
7463
7463
|
endStateValue;
|
|
7464
7464
|
reasonValue;
|
|
7465
|
+
endFields;
|
|
7465
7466
|
timer;
|
|
7466
7467
|
started = false;
|
|
7467
7468
|
durationMs;
|
|
@@ -7477,7 +7478,8 @@ class KosMockFutureHandle {
|
|
|
7477
7478
|
remainingTimeMs: this.remainingTimeMs,
|
|
7478
7479
|
endState: this.endStateValue,
|
|
7479
7480
|
reason: this.reasonValue,
|
|
7480
|
-
clientData: this.clientData
|
|
7481
|
+
clientData: this.clientData,
|
|
7482
|
+
...this.endFields
|
|
7481
7483
|
};
|
|
7482
7484
|
}
|
|
7483
7485
|
start() {
|
|
@@ -7508,14 +7510,15 @@ class KosMockFutureHandle {
|
|
|
7508
7510
|
}
|
|
7509
7511
|
this.emitFrame(encodeFutureFrame(this.snapshot()));
|
|
7510
7512
|
}
|
|
7511
|
-
complete(endState = "SUCCESS",
|
|
7513
|
+
complete(endState = "SUCCESS", end) {
|
|
7512
7514
|
if (this.done) {
|
|
7513
7515
|
return;
|
|
7514
7516
|
}
|
|
7515
7517
|
this.stopTimer();
|
|
7516
7518
|
this.done = true;
|
|
7517
7519
|
this.endStateValue = endState;
|
|
7518
|
-
this.
|
|
7520
|
+
this.endFields = typeof end === "string" ? { reason: end } : end;
|
|
7521
|
+
this.reasonValue = this.endFields?.reason;
|
|
7519
7522
|
this.remainingTimeMs = 0;
|
|
7520
7523
|
if (endState === "SUCCESS") {
|
|
7521
7524
|
this.progress = 1;
|
|
@@ -7600,12 +7603,8 @@ class KosMockFutureSimulator {
|
|
|
7600
7603
|
ended.add(future.id);
|
|
7601
7604
|
}
|
|
7602
7605
|
}
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
endState: options.endState,
|
|
7606
|
-
reason: options.reason,
|
|
7607
|
-
remainingTimeMs: 0
|
|
7608
|
-
};
|
|
7606
|
+
const { atProgress: _atProgress, ...end } = options;
|
|
7607
|
+
return { ...future, reason: void 0, remainingTimeMs: 0, ...end };
|
|
7609
7608
|
},
|
|
7610
7609
|
{ description: `futures end with ${options.endState}` }
|
|
7611
7610
|
);
|
|
@@ -25538,4 +25537,4 @@ exports.waitForRequest = waitForRequest;
|
|
|
25538
25537
|
exports.whenReady = whenReady;
|
|
25539
25538
|
exports.withCancellation = withCancellation;
|
|
25540
25539
|
exports.wrapWithFutureLifecycle = wrapWithFutureLifecycle;
|
|
25541
|
-
//# sourceMappingURL=software-info-registration-
|
|
25540
|
+
//# sourceMappingURL=software-info-registration-DMOIY4c3.cjs.map
|