orchid-orm 1.78.23 → 1.78.25

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/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let pqb_internal = require("pqb/internal");
3
3
  let pqb = require("pqb");
4
- let node_async_hooks = require("node:async_hooks");
5
4
  function createBaseTable({ schemaConfig = pqb_internal.defaultSchemaConfig, columnTypes: columnTypesArg, snakeCase, filePath: filePathArg, nowSQL, exportAs = "BaseTable", language, autoForeignKeys } = {}) {
6
5
  const schema = schemaConfig();
7
6
  const columnTypes = typeof columnTypesArg === "function" ? columnTypesArg((0, pqb_internal.makeColumnTypes)(schema)) : columnTypesArg || (0, pqb_internal.makeColumnTypes)(schema);
@@ -2820,7 +2819,7 @@ const privateOrchidORMWithAdapter = ({ log, logger, autoPreparedStatements, noPr
2820
2819
  qb = options.db.qb;
2821
2820
  } else {
2822
2821
  adapter = options.adapter;
2823
- asyncStorage = new node_async_hooks.AsyncLocalStorage();
2822
+ asyncStorage = new pqb_internal.AsyncStateStorage();
2824
2823
  qb = (0, pqb_internal._initQueryBuilder)(adapter, (0, pqb_internal.makeColumnTypes)((0, pqb_internal.defaultSchemaConfig)(adapter.driverAdapter.schemaConfig)), asyncStorage, commonOptions, options);
2825
2824
  }
2826
2825
  qb.internal.rls = options.rls;