@mikro-orm/sql
Advanced tools
@@ -175,2 +175,3 @@ import { ALIAS_REPLACEMENT, ARRAY_OPERATORS, raw, RawQueryFragment, Type, Utils, } from '@mikro-orm/core'; | ||
| } | ||
| /* v8 ignore next */ | ||
| unmarshallArray(value) { | ||
@@ -177,0 +178,0 @@ if (value === '{}') { |
+3
-3
| { | ||
| "name": "@mikro-orm/sql", | ||
| "version": "7.0.0-dev.115", | ||
| "version": "7.0.0-dev.116", | ||
| "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,7 +56,7 @@ "type": "module", | ||
| "devDependencies": { | ||
| "@mikro-orm/core": "^6.6.2" | ||
| "@mikro-orm/core": "^6.6.3" | ||
| }, | ||
| "peerDependencies": { | ||
| "@mikro-orm/core": "7.0.0-dev.115" | ||
| "@mikro-orm/core": "7.0.0-dev.116" | ||
| } | ||
| } |
@@ -38,3 +38,3 @@ import { ALIAS_REPLACEMENT, GroupOperator, QueryFlag, raw, RawQueryFragment, ReferenceKind, Utils, } from '@mikro-orm/core'; | ||
| const payload = this.payload[key].unwrap(); | ||
| const qb2 = qb.clone(true); | ||
| const qb2 = qb.clone(true, ['_schema']); | ||
| const sub = qb2 | ||
@@ -41,0 +41,0 @@ .from(parentMeta.class) |
@@ -317,3 +317,3 @@ import { type AnyEntity, type ConnectionType, type Dictionary, type EntityData, type EntityKey, type EntityManager, type EntityMetadata, type EntityName, type EntityProperty, type ExpandProperty, type FilterOptions, type FlushMode, type GroupOperator, type Loaded, LockMode, type LoggingOptions, type MetadataStorage, type ObjectQuery, PopulateHint, type PopulateOptions, type QBFilterQuery, type QBQueryOrderMap, QueryFlag, type QueryOrderMap, type QueryResult, RawQueryFragment, type RequiredEntityData, type Transaction } from '@mikro-orm/core'; | ||
| as<T>(targetEntity: EntityName<T>, alias: EntityKey<T>): NativeQueryBuilder; | ||
| clone(reset?: boolean | string[]): QueryBuilder<Entity>; | ||
| clone(reset?: boolean | string[], preserve?: string[]): QueryBuilder<Entity>; | ||
| /** | ||
@@ -320,0 +320,0 @@ * Sets logger context for this query builder. |
@@ -877,7 +877,4 @@ import { helper, inspect, isRaw, LoadStrategy, LockMode, PopulateHint, QueryFlag, QueryHelper, raw, RawQueryFragment, Reference, ReferenceKind, serialize, Utils, ValidationError, } from '@mikro-orm/core'; | ||
| } | ||
| clone(reset) { | ||
| clone(reset, preserve) { | ||
| const qb = new QueryBuilder(this.mainAlias.entityName, this.metadata, this.driver, this.context, this.mainAlias.aliasName, this.connectionType, this.em); | ||
| if (reset === true) { | ||
| return qb; | ||
| } | ||
| reset = reset || []; | ||
@@ -891,3 +888,3 @@ // clone array/object properties | ||
| for (const prop of Object.keys(this)) { | ||
| if (reset.includes(prop) || ['_helper', '_query'].includes(prop)) { | ||
| if (!preserve?.includes(prop) && (reset === true || reset.includes(prop) || ['_helper', '_query'].includes(prop))) { | ||
| continue; | ||
@@ -898,3 +895,3 @@ } | ||
| /* v8 ignore next */ | ||
| if (this._fields && !reset.includes('_fields')) { | ||
| if (this._fields && reset !== true && !reset.includes('_fields')) { | ||
| qb._fields = [...this._fields]; | ||
@@ -901,0 +898,0 @@ } |
+2
-1
@@ -165,3 +165,3 @@ import type { Generated, Kysely } from 'kysely'; | ||
| getNextAlias(entityName?: string | EntityName<T>): string; | ||
| clone(reset?: boolean): IQueryBuilder<T>; | ||
| clone(reset?: boolean | string[], preserve?: string[]): IQueryBuilder<T>; | ||
| setFlag(flag: QueryFlag): this; | ||
@@ -171,2 +171,3 @@ unsetFlag(flag: QueryFlag): this; | ||
| scheduleFilterCheck(path: string): void; | ||
| withSchema(schema: string): this; | ||
| } | ||
@@ -173,0 +174,0 @@ export interface ICriteriaNodeProcessOptions { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
810427
0.02%13309
-0.01%