@rotorsoft/act 1.24.0 → 1.24.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/@types/act.d.ts.map +1 -1
- package/dist/@types/internal/disposers.d.ts +29 -0
- package/dist/@types/internal/disposers.d.ts.map +1 -0
- package/dist/@types/internal/index.d.ts +1 -0
- package/dist/@types/internal/index.d.ts.map +1 -1
- package/dist/@types/ports.d.ts +5 -0
- package/dist/@types/ports.d.ts.map +1 -1
- package/dist/{chunk-MIHIDR4K.js → chunk-IYXAAZMQ.js} +34 -6
- package/dist/chunk-IYXAAZMQ.js.map +1 -0
- package/dist/index.cjs +33 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-MIHIDR4K.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -17,11 +17,12 @@ import {
|
|
|
17
17
|
is_literal_source,
|
|
18
18
|
log,
|
|
19
19
|
port,
|
|
20
|
+
register_weak_disposer,
|
|
20
21
|
scoped,
|
|
21
22
|
sleep,
|
|
22
23
|
store,
|
|
23
24
|
validate
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-IYXAAZMQ.js";
|
|
25
26
|
import {
|
|
26
27
|
ActorSchema,
|
|
27
28
|
CausationEventSchema,
|
|
@@ -3300,7 +3301,7 @@ var Act = class {
|
|
|
3300
3301
|
this._correlate = this._build_correlate(options, classification);
|
|
3301
3302
|
this._settle = this._build_settle(options);
|
|
3302
3303
|
this._notify_disposer = this._wire_notify(options.scoped?.store ?? store());
|
|
3303
|
-
|
|
3304
|
+
register_weak_disposer(new WeakRef(this), (self) => self.shutdown());
|
|
3304
3305
|
}
|
|
3305
3306
|
/**
|
|
3306
3307
|
* Circuit breaker shared by every store-polling loop (drain, the settle
|