@mikro-orm/core 6.3.11-dev.3 → 6.3.11-dev.5
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/logging/Logger.d.ts +4 -4
- package/package.json +2 -2
- package/utils/Utils.js +2 -2
package/logging/Logger.d.ts
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "6.3.11-dev.5",
|
|
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.
|
|
67
|
+
"mikro-orm": "6.3.11-dev.5",
|
|
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
|
-
//
|
|
885
|
-
if (
|
|
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
|
}
|