@rotorsoft/act 1.14.0 → 1.14.1
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/{chunk-5WRI5ZAA.js → chunk-YLJ4XMA6.js} +6 -2
- package/dist/{dist-INXH4GUE.js → dist-EOG547W7.js} +2 -2
- package/dist/index.cjs +10 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/{magic-string.es-ZGO77SPS.js → magic-string.es-5F2IVYTG.js} +2 -2
- package/dist/test/index.cjs +7 -3
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.js +3 -3
- package/dist/test/index.js.map +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +2 -2
- /package/dist/{chunk-5WRI5ZAA.js.map → chunk-YLJ4XMA6.js.map} +0 -0
- /package/dist/{dist-INXH4GUE.js.map → dist-EOG547W7.js.map} +0 -0
- /package/dist/{magic-string.es-ZGO77SPS.js.map → magic-string.es-5F2IVYTG.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1944,8 +1944,17 @@ async function scan_stream_heads(streams) {
|
|
|
1944
1944
|
async function partition_by_safety(stream_info, reactive_events_size, skipped) {
|
|
1945
1945
|
if (reactive_events_size === 0) return [...stream_info.keys()];
|
|
1946
1946
|
const pending_set = /* @__PURE__ */ new Set();
|
|
1947
|
+
const source_regex = /* @__PURE__ */ new Map();
|
|
1948
|
+
const get_regex = (source) => {
|
|
1949
|
+
let re = source_regex.get(source);
|
|
1950
|
+
if (!re) {
|
|
1951
|
+
re = new RegExp(source);
|
|
1952
|
+
source_regex.set(source, re);
|
|
1953
|
+
}
|
|
1954
|
+
return re;
|
|
1955
|
+
};
|
|
1947
1956
|
await store2().query_streams((position) => {
|
|
1948
|
-
const source_re = position.source ?
|
|
1957
|
+
const source_re = position.source ? get_regex(position.source) : void 0;
|
|
1949
1958
|
for (const [stream, info] of stream_info) {
|
|
1950
1959
|
if ((!source_re || source_re.test(stream)) && position.at < info.max_id) {
|
|
1951
1960
|
pending_set.add(stream);
|