@mikro-orm/core 6.6.20-dev.1 → 6.6.20-dev.2
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/errors.d.ts +1 -0
- package/errors.js +3 -0
- package/package.json +2 -2
package/errors.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare class ValidationError<T extends AnyEntity = AnyEntity> extends Er
|
|
|
26
26
|
static cannotUseOperatorsInsideEmbeddables(className: string, propName: string, payload: unknown): ValidationError;
|
|
27
27
|
static cannotUseGroupOperatorsInsideScalars(className: string, propName: string, payload: unknown): ValidationError;
|
|
28
28
|
static invalidEmbeddableQuery(className: string, propName: string, embeddableType: string): ValidationError;
|
|
29
|
+
static invalidQueryCondition(cond: unknown): ValidationError;
|
|
29
30
|
}
|
|
30
31
|
export declare class CursorError<T extends AnyEntity = AnyEntity> extends ValidationError<T> {
|
|
31
32
|
static entityNotPopulated(entity: AnyEntity, prop: string): ValidationError;
|
package/errors.js
CHANGED
|
@@ -104,6 +104,9 @@ class ValidationError extends Error {
|
|
|
104
104
|
static invalidEmbeddableQuery(className, propName, embeddableType) {
|
|
105
105
|
return new ValidationError(`Invalid query for entity '${className}', property '${propName}' does not exist in embeddable '${embeddableType}'`);
|
|
106
106
|
}
|
|
107
|
+
static invalidQueryCondition(cond) {
|
|
108
|
+
return new ValidationError(`Invalid query condition: ${(0, node_util_1.inspect)(cond, { depth: 5 })}`);
|
|
109
|
+
}
|
|
107
110
|
}
|
|
108
111
|
exports.ValidationError = ValidationError;
|
|
109
112
|
class CursorError extends ValidationError {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
|
-
"version": "6.6.20-dev.
|
|
3
|
+
"version": "6.6.20-dev.2",
|
|
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.3.3",
|
|
66
66
|
"globby": "11.1.0",
|
|
67
|
-
"mikro-orm": "6.6.20-dev.
|
|
67
|
+
"mikro-orm": "6.6.20-dev.2",
|
|
68
68
|
"reflect-metadata": "0.2.2"
|
|
69
69
|
}
|
|
70
70
|
}
|