@mikro-orm/sql
Advanced tools
@@ -171,3 +171,3 @@ import { isRaw, LockMode, QueryFlag, Utils } from '@mikro-orm/core'; | ||
| } | ||
| if (this.options.having) { | ||
| if (this.options.having?.sql.trim()) { | ||
| this.parts.push(`having ${this.options.having.sql}`); | ||
@@ -174,0 +174,0 @@ this.params.push(...this.options.having.params); |
@@ -237,3 +237,3 @@ import { isRaw, raw, Utils } from '@mikro-orm/core'; | ||
| } | ||
| if (this.options.having) { | ||
| if (this.options.having?.sql.trim()) { | ||
| this.parts.push(`having ${this.options.having.sql}`); | ||
@@ -240,0 +240,0 @@ this.params.push(...this.options.having.params); |
+2
-2
| { | ||
| "name": "@mikro-orm/sql", | ||
| "version": "7.1.9-dev.9", | ||
| "version": "7.1.9-dev.10", | ||
| "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.", | ||
@@ -56,3 +56,3 @@ "keywords": [ | ||
| "peerDependencies": { | ||
| "@mikro-orm/core": "7.1.9-dev.9" | ||
| "@mikro-orm/core": "7.1.9-dev.10" | ||
| }, | ||
@@ -59,0 +59,0 @@ "engines": { |
@@ -311,3 +311,3 @@ import { isRaw, LockMode, raw, Utils, } from '@mikro-orm/core'; | ||
| } | ||
| if (this.options.having) { | ||
| if (this.options.having?.sql.trim()) { | ||
| this.parts.push(`having ${this.options.having.sql}`); | ||
@@ -314,0 +314,0 @@ this.params.push(...this.options.having.params); |
@@ -417,3 +417,4 @@ import { ALIAS_REPLACEMENT, ALIAS_REPLACEMENT_RE, ArrayType, JsonType, inspect, isRaw, LockMode, OptimisticLockError, QueryOperator, QueryOrderNumeric, raw, Raw, QueryHelper, ReferenceKind, Utils, ValidationError, } from '@mikro-orm/core'; | ||
| const res = this._appendQueryCondition(type, cond[k]); | ||
| parts.push(`not (${res.sql})`); | ||
| // negating a vacuously true condition (e.g. an empty `$and`) matches nothing | ||
| parts.push(res.sql ? `not (${res.sql})` : '1 = 0'); | ||
| res.params.forEach(p => params.push(p)); | ||
@@ -420,0 +421,0 @@ continue; |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
1058791
0.01%22116
0