@rotorsoft/act 1.18.3 → 1.18.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/act.d.ts.map +1 -1
- package/dist/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/test/index.cjs +40 -3908
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.js +2 -3869
- package/dist/test/index.js.map +1 -1
- package/dist/types/index.js +0 -1
- package/package.json +9 -3
- package/dist/chunk-YLJ4XMA6.js +0 -35
- package/dist/chunk-YLJ4XMA6.js.map +0 -1
- package/dist/dist-EOG547W7.js +0 -546
- package/dist/dist-EOG547W7.js.map +0 -1
- package/dist/magic-string.es-5F2IVYTG.js +0 -1309
- package/dist/magic-string.es-5F2IVYTG.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -45,7 +45,6 @@ import {
|
|
|
45
45
|
pii_strip,
|
|
46
46
|
sensitive
|
|
47
47
|
} from "./chunk-2RZSKBZZ.js";
|
|
48
|
-
import "./chunk-YLJ4XMA6.js";
|
|
49
48
|
|
|
50
49
|
// src/signals.ts
|
|
51
50
|
process.once("SIGINT", async (arg) => {
|
|
@@ -3149,7 +3148,12 @@ var Act = class {
|
|
|
3149
3148
|
*/
|
|
3150
3149
|
async correlate(query = { after: -1, limit: 10 }) {
|
|
3151
3150
|
if (!this._drain) return { subscribed: 0, last_id: -1 };
|
|
3152
|
-
return this._scoped(() =>
|
|
3151
|
+
return this._scoped(async () => {
|
|
3152
|
+
const result = await this._correlate.correlate(query);
|
|
3153
|
+
if (result.subscribed > 0 && this._reactive_events.size > 0)
|
|
3154
|
+
this._arm_all();
|
|
3155
|
+
return result;
|
|
3156
|
+
});
|
|
3153
3157
|
}
|
|
3154
3158
|
/**
|
|
3155
3159
|
* Starts automatic periodic correlation worker for discovering new streams.
|