Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@mikro-orm/sql

Package Overview
Dependencies
Maintainers
1
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mikro-orm/sql - npm Package Compare versions

Comparing version
7.0.0-dev.115
to
7.0.0-dev.116
+1
-0
dialects/postgresql/BasePostgreSqlPlatform.js

@@ -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 @@ }

@@ -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