@mikro-orm/core 7.0.0-dev.98 → 7.0.0-dev.99
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 +1 -1
- package/utils/Configuration.js +3 -0
- package/utils/Utils.js +1 -1
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.99",
|
|
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",
|
package/utils/Configuration.js
CHANGED
|
@@ -345,6 +345,9 @@ export class Configuration {
|
|
|
345
345
|
if (this.options.entities.length === 0 && this.options.discovery.warnWhenNoEntities) {
|
|
346
346
|
throw new Error('No entities found, please use `entities` option');
|
|
347
347
|
}
|
|
348
|
+
if (typeof this.options.driverOptions === 'function' && this.options.driverOptions.constructor.name === 'AsyncFunction') {
|
|
349
|
+
throw new Error('`driverOptions` callback cannot be async');
|
|
350
|
+
}
|
|
348
351
|
}
|
|
349
352
|
}
|
|
350
353
|
/**
|
package/utils/Utils.js
CHANGED
|
@@ -125,7 +125,7 @@ export function parseJsonSafe(value) {
|
|
|
125
125
|
}
|
|
126
126
|
export class Utils {
|
|
127
127
|
static PK_SEPARATOR = '~~~';
|
|
128
|
-
static #ORM_VERSION = '7.0.0-dev.
|
|
128
|
+
static #ORM_VERSION = '7.0.0-dev.99';
|
|
129
129
|
/* v8 ignore next */
|
|
130
130
|
static dynamicImportProvider = (id) => import(id);
|
|
131
131
|
/**
|