@rotorsoft/act 1.23.21 → 1.23.22
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoclose-reaction.d.ts","sourceRoot":"","sources":["../../../src/internal/autoclose-reaction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAEV,QAAQ,EACR,cAAc,EACd,OAAO,EACP,KAAK,EACN,MAAM,mBAAmB,CAAC;AAI3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,mBAAmB,CAAC;AAExD;;;;;;;GAOG;AACH,wBAAgB,8BAA8B,CAC5C,UAAU,SAAS,cAAc,CAAC,QAAQ,CAAC,EAC3C,OAAO,SAAS,OAAO,EACvB,QAAQ,SAAS,OAAO,EAExB,QAAQ,EAAE,QAAQ,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,CAAC,EACjD,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,EACjD,MAAM,EAAE,eAAe,GACtB,IAAI,
|
|
1
|
+
{"version":3,"file":"autoclose-reaction.d.ts","sourceRoot":"","sources":["../../../src/internal/autoclose-reaction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAEV,QAAQ,EACR,cAAc,EACd,OAAO,EACP,KAAK,EACN,MAAM,mBAAmB,CAAC;AAI3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,mBAAmB,CAAC;AAExD;;;;;;;GAOG;AACH,wBAAgB,8BAA8B,CAC5C,UAAU,SAAS,cAAc,CAAC,QAAQ,CAAC,EAC3C,OAAO,SAAS,OAAO,EACvB,QAAQ,SAAS,OAAO,EAExB,QAAQ,EAAE,QAAQ,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,CAAC,EACjD,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,EACjD,MAAM,EAAE,eAAe,GACtB,IAAI,CA4GN"}
|
package/dist/index.cjs
CHANGED
|
@@ -2269,7 +2269,7 @@ function synthesize_autoclose_reactions(registry, states, config2) {
|
|
|
2269
2269
|
const stats = await store2().query_stats([aggregate], {
|
|
2270
2270
|
count: true,
|
|
2271
2271
|
tail: keep_days !== void 0 ? true : void 0,
|
|
2272
|
-
exclude:
|
|
2272
|
+
exclude: [TOMBSTONE_EVENT, SNAP_EVENT]
|
|
2273
2273
|
});
|
|
2274
2274
|
const entry = stats.get(aggregate);
|
|
2275
2275
|
if (!entry) return;
|
|
@@ -2921,12 +2921,13 @@ async function scan_stream_heads(streams) {
|
|
|
2921
2921
|
const stats = await store2().query_stats(streams, {
|
|
2922
2922
|
exclude: [SNAP_EVENT]
|
|
2923
2923
|
});
|
|
2924
|
+
const true_heads = await store2().query_stats(streams, {});
|
|
2924
2925
|
const out = /* @__PURE__ */ new Map();
|
|
2925
2926
|
for (const [stream, { head }] of stats) {
|
|
2926
2927
|
if (head.name === TOMBSTONE_EVENT) continue;
|
|
2927
2928
|
out.set(stream, {
|
|
2928
2929
|
max_id: head.id,
|
|
2929
|
-
version: head.version,
|
|
2930
|
+
version: true_heads.get(stream).head.version,
|
|
2930
2931
|
last_event_name: head.name
|
|
2931
2932
|
});
|
|
2932
2933
|
}
|