New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@mikro-orm/core

Package Overview
Dependencies
Maintainers
1
Versions
4259
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.0.7-dev.13
to
7.0.7-dev.14
+6
-1
entity/defineEntity.d.ts

@@ -709,2 +709,5 @@ import type { EntityManager } from '../EntityManager.js';

} ? ScalarReference<Value> : Value;
type IsAllPropsOpt<T> = [Exclude<keyof T, symbol>] extends [never] ? false : {
[K in Exclude<keyof T, symbol>]-?: T[K] extends Opt ? never : K;
}[Exclude<keyof T, symbol>] extends never ? true : false;
type MaybeOpt<Value, Options> = Options extends {

@@ -726,3 +729,5 @@ mapToPk: true;

formula: string | ((...args: any[]) => any);
} ? Opt<NonNullable<Value>> | Extract<Value, null | undefined> : Value;
} ? Opt<NonNullable<Value>> | Extract<Value, null | undefined> : Options extends {
kind: 'embedded';
} ? IsAllPropsOpt<Value> extends true ? Opt<NonNullable<Value>> | Extract<Value, null | undefined> : Value : Value;
type MaybeHidden<Value, Options> = Options extends {

@@ -729,0 +734,0 @@ hidden: true;

+1
-1
{
"name": "@mikro-orm/core",
"version": "7.0.7-dev.13",
"version": "7.0.7-dev.14",
"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": [

@@ -104,2 +104,4 @@ import { EntityIdentifier } from '../entity/EntityIdentifier.js';

![ReferenceKind.ONE_TO_MANY, ReferenceKind.MANY_TO_MANY].includes(prop.kind) &&
!(prop.kind === ReferenceKind.EMBEDDED &&
prop.targetMeta?.props.every(p => p.formula || p.persist === false || p.primary)) &&
prop.name !== wrapped.__meta.root.discriminatorColumn &&

@@ -106,0 +108,0 @@ prop.type !== 'ObjectId' &&

@@ -135,3 +135,3 @@ import { clone } from './clone.js';

static PK_SEPARATOR = '~~~';
static #ORM_VERSION = '7.0.7-dev.13';
static #ORM_VERSION = '7.0.7-dev.14';
/**

@@ -138,0 +138,0 @@ * Checks if the argument is instance of `Object`. Returns false for arrays.