orchid-orm 1.26.1 → 1.26.2

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.
@@ -4,6 +4,7 @@ var rakeDb = require('rake-db');
4
4
  var pqb = require('pqb');
5
5
  var orchidCore = require('orchid-core');
6
6
  var path = require('node:path');
7
+ var url = require('url');
7
8
  var fs = require('fs/promises');
8
9
  var typescript = require('typescript');
9
10
 
@@ -2235,7 +2236,9 @@ const invalidConfig = (config) => new Error(
2235
2236
  );
2236
2237
  const getDbFromConfig = async (config, dbPath) => {
2237
2238
  var _a, _b;
2238
- const module = await config.import(path.resolve(config.basePath, dbPath));
2239
+ const module = await config.import(
2240
+ url.pathToFileURL(path.resolve(config.basePath, dbPath)).toString()
2241
+ );
2239
2242
  const db = module[(_a = config.dbExportedAs) != null ? _a : "db"];
2240
2243
  if (!(db == null ? void 0 : db.$queryBuilder)) {
2241
2244
  throw new Error(