@rotorsoft/act 1.31.14 → 1.31.16
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 +2 -0
- package/dist/@types/act.d.ts.map +1 -1
- package/dist/@types/builders/event-builder.d.ts +11 -4
- package/dist/@types/builders/event-builder.d.ts.map +1 -1
- package/dist/@types/internal/correlate-cycle.d.ts.map +1 -1
- package/dist/@types/internal/date-reviver.d.ts +50 -0
- package/dist/@types/internal/date-reviver.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/internal/sensitive.d.ts +22 -4
- package/dist/@types/internal/sensitive.d.ts.map +1 -1
- package/dist/@types/ports.d.ts +19 -0
- package/dist/@types/ports.d.ts.map +1 -1
- package/dist/@types/scoped.d.ts +17 -5
- package/dist/@types/scoped.d.ts.map +1 -1
- package/dist/{chunk-D5MBFIKL.js → chunk-7IBF4FTQ.js} +16 -11
- package/dist/{chunk-D5MBFIKL.js.map → chunk-7IBF4FTQ.js.map} +1 -1
- package/dist/{chunk-IO2OOCOR.js → chunk-T2AT4N6B.js} +13 -3
- package/dist/{chunk-IO2OOCOR.js.map → chunk-T2AT4N6B.js.map} +1 -1
- package/dist/index.cjs +144 -84
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +121 -75
- package/dist/index.js.map +1 -1
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.js +2 -2
- package/dist/types/index.cjs +14 -9
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +3 -3
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
Environments,
|
|
4
4
|
LogLevels,
|
|
5
5
|
ValidationError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7IBF4FTQ.js";
|
|
7
7
|
|
|
8
8
|
// src/adapters/console-logger.ts
|
|
9
9
|
var LEVEL_VALUES = {
|
|
@@ -1221,7 +1221,7 @@ import { AsyncLocalStorage } from "async_hooks";
|
|
|
1221
1221
|
var scoped = new AsyncLocalStorage();
|
|
1222
1222
|
var reacting = new AsyncLocalStorage();
|
|
1223
1223
|
function make_run_scoped(bag) {
|
|
1224
|
-
return
|
|
1224
|
+
return (fn) => scoped.run(bag, fn);
|
|
1225
1225
|
}
|
|
1226
1226
|
function current_ports() {
|
|
1227
1227
|
return scoped.getStore();
|
|
@@ -1275,6 +1275,15 @@ var _cache = port(function cache(adapter) {
|
|
|
1275
1275
|
var cache2 = ((adapter) => {
|
|
1276
1276
|
return current_ports()?.cache ?? _cache(adapter);
|
|
1277
1277
|
});
|
|
1278
|
+
var default_scope = () => DEFAULT_SCOPE;
|
|
1279
|
+
var DEFAULT_SCOPE = {
|
|
1280
|
+
get store() {
|
|
1281
|
+
return _store();
|
|
1282
|
+
},
|
|
1283
|
+
get cache() {
|
|
1284
|
+
return _cache();
|
|
1285
|
+
}
|
|
1286
|
+
};
|
|
1278
1287
|
async function disposeAndExit(code = "EXIT") {
|
|
1279
1288
|
if (code === "ERROR" && config().env === "production") {
|
|
1280
1289
|
log().warn(
|
|
@@ -1373,10 +1382,11 @@ export {
|
|
|
1373
1382
|
log,
|
|
1374
1383
|
store2 as store,
|
|
1375
1384
|
cache2 as cache,
|
|
1385
|
+
default_scope,
|
|
1376
1386
|
disposeAndExit,
|
|
1377
1387
|
dispose,
|
|
1378
1388
|
SNAP_EVENT,
|
|
1379
1389
|
TOMBSTONE_EVENT,
|
|
1380
1390
|
DEFAULT_LANE
|
|
1381
1391
|
};
|
|
1382
|
-
//# sourceMappingURL=chunk-
|
|
1392
|
+
//# sourceMappingURL=chunk-T2AT4N6B.js.map
|