@mikro-orm/knex 6.6.7-dev.1 → 6.6.7-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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/knex",
|
|
3
|
-
"version": "6.6.7-dev.
|
|
3
|
+
"version": "6.6.7-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",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@mikro-orm/core": "^6.6.6"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@mikro-orm/core": "6.6.7-dev.
|
|
69
|
+
"@mikro-orm/core": "6.6.7-dev.2",
|
|
70
70
|
"better-sqlite3": "*",
|
|
71
71
|
"libsql": "*",
|
|
72
72
|
"mariadb": "*"
|
package/query/QueryBuilder.js
CHANGED
|
@@ -297,6 +297,10 @@ class QueryBuilder {
|
|
|
297
297
|
delete cond[key];
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
+
// all conditions were nested and removed, skip
|
|
301
|
+
if (!core_1.Utils.hasObjectKeys(cond)) {
|
|
302
|
+
continue;
|
|
303
|
+
}
|
|
300
304
|
if (core_1.Utils.hasObjectKeys(join.cond)) {
|
|
301
305
|
/* istanbul ignore next */
|
|
302
306
|
join.cond = { $and: [join.cond, cond] };
|
|
@@ -264,7 +264,7 @@ class QueryBuilderHelper {
|
|
|
264
264
|
const parts = value.map(sub => {
|
|
265
265
|
return this.wrapQueryGroup(Object.keys(sub).map(k => {
|
|
266
266
|
return this.processJoinClause(k, sub[k], alias, params);
|
|
267
|
-
}));
|
|
267
|
+
}).filter(clause => clause !== '()'));
|
|
268
268
|
}).filter(clause => clause !== '()');
|
|
269
269
|
return this.wrapQueryGroup(parts, key);
|
|
270
270
|
}
|