@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.
@@ -3,7 +3,7 @@ import {
3
3
  Environments,
4
4
  LogLevels,
5
5
  ValidationError
6
- } from "./chunk-D5MBFIKL.js";
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 bag ? (fn) => scoped.run(bag, fn) : (fn) => fn();
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-IO2OOCOR.js.map
1392
+ //# sourceMappingURL=chunk-T2AT4N6B.js.map