@rotorsoft/act 1.31.26 → 1.31.27
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/act.d.ts.map +1 -1
- package/dist/index.cjs +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2191,7 +2191,7 @@ async function scan(source, opts = {}, callback) {
|
|
|
2191
2191
|
(e) => {
|
|
2192
2192
|
max_id = e.id;
|
|
2193
2193
|
},
|
|
2194
|
-
{ backward: true, limit: 1 }
|
|
2194
|
+
{ backward: true, limit: 1, with_snaps: true }
|
|
2195
2195
|
);
|
|
2196
2196
|
if (probed !== 1) max_id = void 0;
|
|
2197
2197
|
while (true) {
|
|
@@ -2259,7 +2259,7 @@ async function scan(source, opts = {}, callback) {
|
|
|
2259
2259
|
id_map.set(event.id, new_id);
|
|
2260
2260
|
kept++;
|
|
2261
2261
|
},
|
|
2262
|
-
{ after: at, limit }
|
|
2262
|
+
{ after: at, limit, with_snaps: true }
|
|
2263
2263
|
);
|
|
2264
2264
|
if (got !== limit) break;
|
|
2265
2265
|
at = id;
|
|
@@ -4241,7 +4241,14 @@ var Act = class {
|
|
|
4241
4241
|
const acked = [];
|
|
4242
4242
|
const blocked = [];
|
|
4243
4243
|
for (const r of results) {
|
|
4244
|
-
fetched.push(
|
|
4244
|
+
fetched.push(
|
|
4245
|
+
...r.fetched.map((f) => ({
|
|
4246
|
+
...f,
|
|
4247
|
+
events: f.events.map(
|
|
4248
|
+
(e) => this.registry.query_gate(e.name)(e)
|
|
4249
|
+
)
|
|
4250
|
+
}))
|
|
4251
|
+
);
|
|
4245
4252
|
leased.push(...r.leased);
|
|
4246
4253
|
acked.push(...r.acked);
|
|
4247
4254
|
blocked.push(...r.blocked);
|