@mikro-orm/core
Advanced tools
@@ -763,5 +763,11 @@ import type { EntityManager } from '../EntityManager.js'; | ||
| type InferCombinedPrimaryKey<Properties extends Record<string, any>, PK, Base> = PK extends undefined ? CombinePrimaryKeys<InferPrimaryKey<Properties>, ExtractBasePrimaryKey<Base>> : PK; | ||
| type ExtractBasePrimaryKey<Base> = Base extends { | ||
| type ExtractBasePrimaryKey<Base> = typeof PrimaryKeyProp extends keyof Base ? Base extends { | ||
| [PrimaryKeyProp]?: infer BasePK; | ||
| } ? BasePK : never; | ||
| } ? BasePK : never : [keyof Base] extends [never] ? never : Base extends { | ||
| _id?: any; | ||
| } ? '_id' : Base extends { | ||
| id?: any; | ||
| } ? 'id' : Base extends { | ||
| uuid?: any; | ||
| } ? 'uuid' : never; | ||
| type CombinePrimaryKeys<ChildPK, BasePK> = [ChildPK] extends [never] ? BasePK : [BasePK] extends [never] ? IsUnion<ChildPK> extends true ? ChildPK[] : ChildPK : ChildPK | BasePK; | ||
@@ -768,0 +774,0 @@ /** Extracts the primary key property names from a properties map by finding builders with `primary: true`. */ |
+1
-1
| { | ||
| "name": "@mikro-orm/core", | ||
| "version": "7.1.14-dev.10", | ||
| "version": "7.1.14-dev.11", | ||
| "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,0 +5,0 @@ "keywords": [ |
+1
-1
@@ -156,3 +156,3 @@ import { clone } from './clone.js'; | ||
| static PK_SEPARATOR = '~~~'; | ||
| static #ORM_VERSION = '7.1.14-dev.10'; | ||
| static #ORM_VERSION = '7.1.14-dev.11'; | ||
| /** | ||
@@ -159,0 +159,0 @@ * Checks if the argument is instance of `Object`. Returns false for arrays. |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
1591360
0.01%33908
0.02%8
-11.11%