@mikro-orm/core 6.3.10-dev.11 → 6.3.10-dev.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/core",
3
- "version": "6.3.10-dev.11",
3
+ "version": "6.3.10-dev.12",
4
4
  "description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -64,7 +64,7 @@
64
64
  "esprima": "4.0.1",
65
65
  "fs-extra": "11.2.0",
66
66
  "globby": "11.1.0",
67
- "mikro-orm": "6.3.10-dev.11",
67
+ "mikro-orm": "6.3.10-dev.12",
68
68
  "reflect-metadata": "0.2.2"
69
69
  }
70
70
  }
package/utils/Utils.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { type GlobbyOptions } from 'globby';
2
- import { type URL } from 'node:url';
3
2
  import type { Dictionary, EntityData, EntityDictionary, EntityKey, EntityMetadata, EntityName, EntityProperty, IMetadataStorage, Primary } from '../typings';
4
3
  import type { Collection } from '../entity/Collection';
5
4
  import type { Platform } from '../platforms';
package/utils/Utils.js CHANGED
@@ -881,6 +881,10 @@ class Utils {
881
881
  catch {
882
882
  // ignore
883
883
  }
884
+ // For some reason, ".ts" files do not work with "file://" URLs on Windows.
885
+ if (id.endsWith('.ts')) {
886
+ id = (0, node_url_1.fileURLToPath)(id);
887
+ }
884
888
  }
885
889
  /* istanbul ignore next */
886
890
  return this.dynamicImportProvider(id);