@mikro-orm/core 6.3.11-dev.4 → 6.3.11-dev.6

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.
@@ -470,7 +470,7 @@ class EntityLoader {
470
470
  return entities.filter(e => Utils_1.Utils.isCollection(e[field]) && !e[field].isInitialized(!ref));
471
471
  }
472
472
  isPropertyLoaded(entity, field) {
473
- if (!entity) {
473
+ if (!entity || field === '*') {
474
474
  return true;
475
475
  }
476
476
  const wrapped = (0, wrap_1.helper)(entity);
@@ -1,17 +1,17 @@
1
- import type { Dictionary, Highlighter } from '../typings';
1
+ import type { AnyString, Dictionary, Highlighter } from '../typings';
2
2
  export interface Logger {
3
3
  /**
4
4
  * Logs a message inside given namespace.
5
5
  */
6
- log(namespace: LoggerNamespace, message: string, context?: LogContext): void;
6
+ log(namespace: LoggerNamespace | AnyString, message: string, context?: LogContext): void;
7
7
  /**
8
8
  * Logs error message inside given namespace.
9
9
  */
10
- error(namespace: LoggerNamespace, message: string, context?: LogContext): void;
10
+ error(namespace: LoggerNamespace | AnyString, message: string, context?: LogContext): void;
11
11
  /**
12
12
  * Logs warning message inside given namespace.
13
13
  */
14
- warn(namespace: LoggerNamespace, message: string, context?: LogContext): void;
14
+ warn(namespace: LoggerNamespace | AnyString, message: string, context?: LogContext): void;
15
15
  /**
16
16
  * Logs a message inside given namespace.
17
17
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/core",
3
- "version": "6.3.11-dev.4",
3
+ "version": "6.3.11-dev.6",
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.11-dev.4",
67
+ "mikro-orm": "6.3.11-dev.6",
68
68
  "reflect-metadata": "0.2.2"
69
69
  }
70
70
  }
package/utils/Utils.js CHANGED
@@ -881,8 +881,8 @@ 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')) {
884
+ // If the extension is not registered, we need to fall back to a file path.
885
+ if (require.extensions && !require.extensions[(0, node_path_1.extname)(id)]) {
886
886
  id = (0, node_url_1.fileURLToPath)(id);
887
887
  }
888
888
  }