You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@mikro-orm/core

Package Overview
Dependencies
Maintainers
1
Versions
4205
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.4-dev.13
to
7.0.4-dev.14
+1
-1
hydration/ObjectHydrator.js

@@ -125,3 +125,3 @@ import { Hydrator } from './Hydrator.js';

if (prop.ref) {
ret.push(` const value = entity${entityKey};`);
ret.push(` const value = entity${entityKey}?.__scalarReference ? entity${entityKey}.unwrap() : entity${entityKey};`);
ret.push(` entity${entityKey} = oldValue_${idx} ?? new ScalarReference(value);`);

@@ -128,0 +128,0 @@ ret.push(` entity${entityKey}.bind(entity, '${prop.name}');`);

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

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

const unwrap = prop.ref ? '?.unwrap()' : '';
let ret = ` if (${this.getPropertyCondition(path)}) {\n`;
let ret = ` if (${this.getPropertyCondition(path)}`;
if (prop.lazy && prop.ref) {
ret += ` && entity${path.map(k => this.wrap(k)).join('')}?.isInitialized()`;
}
ret += `) {\n`;
if (['number', 'string', 'boolean'].includes(prop.type.toLowerCase())) {

@@ -531,0 +535,0 @@ return ret + ` ret${dataKey} = entity${entityKey}${unwrap};\n }\n`;

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

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

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