@rotorsoft/act 1.31.3 → 1.31.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/scoped.d.ts +6 -1
- package/dist/@types/scoped.d.ts.map +1 -1
- package/dist/{chunk-IBLR35N5.js → chunk-GQYI2NMQ.js} +10 -3
- package/dist/{chunk-IBLR35N5.js.map → chunk-GQYI2NMQ.js.map} +1 -1
- package/dist/index.cjs +9 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.js +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1613,10 +1613,17 @@ function current_ports() {
|
|
|
1613
1613
|
return scoped.getStore();
|
|
1614
1614
|
}
|
|
1615
1615
|
function run_reacting(event, fn) {
|
|
1616
|
-
|
|
1616
|
+
const box = { event };
|
|
1617
|
+
return reacting.run(box, async () => {
|
|
1618
|
+
try {
|
|
1619
|
+
return await fn();
|
|
1620
|
+
} finally {
|
|
1621
|
+
box.event = void 0;
|
|
1622
|
+
}
|
|
1623
|
+
});
|
|
1617
1624
|
}
|
|
1618
1625
|
function current_reacting() {
|
|
1619
|
-
return reacting.getStore();
|
|
1626
|
+
return reacting.getStore()?.event;
|
|
1620
1627
|
}
|
|
1621
1628
|
function make_reaction_scope(app) {
|
|
1622
1629
|
return { app, run: run_reacting };
|