@rotorsoft/act 1.15.0 → 1.16.0
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/types/action.d.ts +7 -1
- package/dist/@types/types/action.d.ts.map +1 -1
- package/dist/{chunk-DBQT3ALY.js → chunk-46OCUAVF.js} +10 -1
- package/dist/chunk-46OCUAVF.js.map +1 -0
- package/dist/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/test/index.cjs +9 -0
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-DBQT3ALY.js.map +0 -1
package/dist/index.js
CHANGED
package/dist/test/index.cjs
CHANGED
|
@@ -4552,6 +4552,15 @@ var InMemoryStore = class {
|
|
|
4552
4552
|
}
|
|
4553
4553
|
} else {
|
|
4554
4554
|
let i2 = (query?.after ?? -1) + 1;
|
|
4555
|
+
if (query?.with_snaps && query.stream_exact && query.stream !== void 0 && query.after === void 0) {
|
|
4556
|
+
for (let j = this._events.length - 1; j >= 0; j--) {
|
|
4557
|
+
const e = this._events[j];
|
|
4558
|
+
if (e.stream === query.stream && e.name === SNAP_EVENT) {
|
|
4559
|
+
i2 = j;
|
|
4560
|
+
break;
|
|
4561
|
+
}
|
|
4562
|
+
}
|
|
4563
|
+
}
|
|
4555
4564
|
while (i2 < this._events.length) {
|
|
4556
4565
|
const e = this._events[i2++];
|
|
4557
4566
|
if (query && !this.in_query(query, e)) continue;
|