@rotorsoft/act 1.18.1 → 1.18.3
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/dist/.tsbuildinfo +1 -1
- package/dist/@types/adapters/in-memory-store.d.ts.map +1 -1
- package/dist/@types/builders/state-builder.d.ts +1 -1
- package/dist/@types/internal/drain-cycle.d.ts.map +1 -1
- package/dist/@types/internal/drain.d.ts +1 -3
- package/dist/@types/internal/drain.d.ts.map +1 -1
- package/dist/@types/internal/event-sourcing.d.ts.map +1 -1
- package/dist/@types/internal/tracing.d.ts.map +1 -1
- package/dist/@types/types/action.d.ts +1 -1
- package/dist/@types/types/errors.d.ts +3 -3
- package/dist/@types/types/ports.d.ts +56 -26
- package/dist/@types/types/ports.d.ts.map +1 -1
- package/dist/@types/types/reaction.d.ts +10 -0
- package/dist/@types/types/reaction.d.ts.map +1 -1
- package/dist/{chunk-4TJN4G7L.js → chunk-2RZSKBZZ.js} +1 -1
- package/dist/chunk-2RZSKBZZ.js.map +1 -0
- package/dist/{chunk-7XME4ZLK.js → chunk-TODGOWEZ.js} +10 -4
- package/dist/chunk-TODGOWEZ.js.map +1 -0
- package/dist/index.cjs +16 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -17
- package/dist/index.js.map +1 -1
- package/dist/test/index.cjs +8 -2
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.js +2 -2
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-4TJN4G7L.js.map +0 -1
- package/dist/chunk-7XME4ZLK.js.map +0 -1
package/dist/test/index.cjs
CHANGED
|
@@ -4405,15 +4405,21 @@ var InMemoryStream = class {
|
|
|
4405
4405
|
};
|
|
4406
4406
|
}
|
|
4407
4407
|
/**
|
|
4408
|
-
*
|
|
4408
|
+
* Finalize this stream's lease: ack (advance the watermark) or, when the
|
|
4409
|
+
* lease carries a `due` marker, defer (persist the schedule, hold the
|
|
4410
|
+
* watermark) — see {@link Store.ack}.
|
|
4409
4411
|
* @param lease - The lease request.
|
|
4410
4412
|
*/
|
|
4411
4413
|
ack(lease) {
|
|
4412
4414
|
if (this._leased_by === lease.by) {
|
|
4413
4415
|
this._leased_by = void 0;
|
|
4414
4416
|
this._leased_until = void 0;
|
|
4415
|
-
this._at = lease.at;
|
|
4416
4417
|
this._retry = -1;
|
|
4418
|
+
if (lease.due !== void 0) {
|
|
4419
|
+
this._deferred_at = lease.due;
|
|
4420
|
+
return void 0;
|
|
4421
|
+
}
|
|
4422
|
+
this._at = lease.at;
|
|
4417
4423
|
this._deferred_at = void 0;
|
|
4418
4424
|
return {
|
|
4419
4425
|
stream: this.stream,
|