@rotorsoft/act 1.23.3 → 1.23.5
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/internal/drain-cycle.d.ts +4 -8
- package/dist/@types/internal/drain-cycle.d.ts.map +1 -1
- package/dist/@types/types/ports.d.ts +12 -8
- package/dist/@types/types/ports.d.ts.map +1 -1
- package/dist/{chunk-5YIRFU4Y.js → chunk-DORIRU2I.js} +5 -4
- package/dist/chunk-DORIRU2I.js.map +1 -0
- package/dist/index.cjs +8 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -17
- package/dist/index.js.map +1 -1
- package/dist/test/index.cjs +4 -3
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-5YIRFU4Y.js.map +0 -1
package/dist/test/index.cjs
CHANGED
|
@@ -576,11 +576,12 @@ var InMemoryStream = class {
|
|
|
576
576
|
if (this._leased_by === lease.by) {
|
|
577
577
|
this._leased_by = void 0;
|
|
578
578
|
this._leased_until = void 0;
|
|
579
|
-
this._retry = -1;
|
|
580
579
|
if (lease.due !== void 0) {
|
|
580
|
+
this._retry = lease.retry;
|
|
581
581
|
this._deferred_at = lease.due;
|
|
582
582
|
return void 0;
|
|
583
583
|
}
|
|
584
|
+
this._retry = -1;
|
|
584
585
|
this._at = lease.at;
|
|
585
586
|
this._deferred_at = void 0;
|
|
586
587
|
return {
|
|
@@ -600,7 +601,7 @@ var InMemoryStream = class {
|
|
|
600
601
|
* @param error Blocked error message.
|
|
601
602
|
*/
|
|
602
603
|
block(lease, error) {
|
|
603
|
-
if (this._leased_by === lease.by) {
|
|
604
|
+
if (this._leased_by === lease.by && !this._blocked) {
|
|
604
605
|
this._blocked = true;
|
|
605
606
|
this._error = error;
|
|
606
607
|
this._deferred_at = void 0;
|
|
@@ -759,7 +760,7 @@ var InMemoryStore = class {
|
|
|
759
760
|
}
|
|
760
761
|
} else {
|
|
761
762
|
let i = this._first_index_after(query?.after ?? -1);
|
|
762
|
-
if (query?.with_snaps && query.stream_exact && query.stream !== void 0 && query.after === void 0) {
|
|
763
|
+
if (query?.with_snaps && query.stream_exact && query.stream !== void 0 && query.after === void 0 && query.created_before === void 0 && query.created_after === void 0) {
|
|
763
764
|
for (let j = this._events.length - 1; j >= 0; j--) {
|
|
764
765
|
const e = this._events[j];
|
|
765
766
|
if (e.stream === query.stream && e.name === SNAP_EVENT) {
|