New:Socket for Asana Is Now Available.Learn more
Get Started

@mikro-orm/core

Package Overview
Dependencies
Maintainers
1
Versions
4769
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mikro-orm/core - npm Package Compare versions

Comparing version
7.1.14-dev.10
to
7.1.14-dev.11
+8
-2
entity/defineEntity.d.ts

@@ -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": [

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