Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@mikro-orm/core

Package Overview
Dependencies
Maintainers
1
Versions
4553
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.4-dev.11
to
7.1.4-dev.12
+4
-4
entity/defineEntity.d.ts

@@ -84,3 +84,3 @@ import type { EntityManager } from '../EntityManager.js';

}>;
onCreate(onCreate: (entity: any, em: EntityManager) => Value): PropertyChain<Value, Options & {
onCreate(onCreate: (entity: any, em: EntityManager) => MaybeArray<Value, Options>): PropertyChain<Value, Options & {
onCreate: (...args: any[]) => any;

@@ -97,3 +97,3 @@ }>;

}>;
onUpdate(onUpdate: (entity: any, em: EntityManager) => Value): PropertyChain<Value, Options>;
onUpdate(onUpdate: (entity: any, em: EntityManager) => MaybeArray<Value, Options>): PropertyChain<Value, Options>;
fieldNames(...fieldNames: string[]): PropertyChain<Value, Options>;

@@ -276,3 +276,3 @@ type(type: PropertyValueType): PropertyChain<Value, Options>;

*/
onCreate(onCreate: (entity: any, em: EntityManager) => Value): Pick<UniversalPropertyOptionsBuilder<Value, Options & {
onCreate(onCreate: (entity: any, em: EntityManager) => MaybeArray<Value, Options>): Pick<UniversalPropertyOptionsBuilder<Value, Options & {
onCreate: (...args: any[]) => any;

@@ -283,3 +283,3 @@ }, IncludeKeys>, IncludeKeys>;

*/
onUpdate(onUpdate: (entity: any, em: EntityManager) => Value): Pick<UniversalPropertyOptionsBuilder<Value, Options, IncludeKeys>, IncludeKeys>;
onUpdate(onUpdate: (entity: any, em: EntityManager) => MaybeArray<Value, Options>): Pick<UniversalPropertyOptionsBuilder<Value, Options, IncludeKeys>, IncludeKeys>;
/**

@@ -286,0 +286,0 @@ * Specify default column value for {@link https://mikro-orm.io/docs/schema-generator Schema Generator}.

{
"name": "@mikro-orm/core",
"version": "7.1.4-dev.11",
"version": "7.1.4-dev.12",
"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": [

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

static PK_SEPARATOR = '~~~';
static #ORM_VERSION = '7.1.4-dev.11';
static #ORM_VERSION = '7.1.4-dev.12';
/**

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