@mikro-orm/core 7.0.0-dev.32 → 7.0.0-dev.33
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 +2 -2
- package/utils/Utils.js +6 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-dev.
|
|
4
|
+
"version": "7.0.0-dev.33",
|
|
5
5
|
"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.",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./package.json": "./package.json",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"dataloader": "2.2.3",
|
|
55
55
|
"dotenv": "17.2.3",
|
|
56
56
|
"esprima": "4.0.1",
|
|
57
|
-
"mikro-orm": "7.0.0-dev.
|
|
57
|
+
"mikro-orm": "7.0.0-dev.33",
|
|
58
58
|
"reflect-metadata": "0.2.2",
|
|
59
59
|
"tinyglobby": "0.2.13"
|
|
60
60
|
}
|
package/utils/Utils.js
CHANGED
|
@@ -1081,9 +1081,12 @@ export class Utils {
|
|
|
1081
1081
|
return await import(module);
|
|
1082
1082
|
}
|
|
1083
1083
|
catch (err) {
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1084
|
+
if (err.code === 'ERR_MODULE_NOT_FOUND') {
|
|
1085
|
+
// eslint-disable-next-line no-console
|
|
1086
|
+
console.warn(warning);
|
|
1087
|
+
return undefined;
|
|
1088
|
+
}
|
|
1089
|
+
throw err;
|
|
1087
1090
|
}
|
|
1088
1091
|
}
|
|
1089
1092
|
static stripRelativePath(str) {
|