🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@mikro-orm/core

Package Overview
Dependencies
Maintainers
1
Versions
4628
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.7
to
7.1.8-dev.0
+2
-1
entity/EntityLoader.js

@@ -294,3 +294,4 @@ import { QueryHelper } from '../utils/QueryHelper.js';

const fk = child.__helper.__data[prop.mappedBy] ?? child[prop.mappedBy];
if (fk) {
// check for `null`/`undefined` explicitly, the FK can be a falsy raw PK value like `0` (e.g. with `mapToPk`)
if (fk != null) {
let key;

@@ -297,0 +298,0 @@ if (targetKey) {

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

@@ -141,3 +141,4 @@ import { Utils } from '../utils/Utils.js';

processProperty(changeSet, prop, target) {
if (!target) {
// check for `null`/`undefined` explicitly, the target can be a falsy raw PK value like `0` (e.g. with `mapToPk`)
if (target == null) {
const targets = Utils.unwrapProperty(changeSet.entity, changeSet.meta, prop);

@@ -144,0 +145,0 @@ targets.forEach(([t]) => this.processProperty(changeSet, prop, t));

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

static PK_SEPARATOR = '~~~';
static #ORM_VERSION = '7.1.7';
static #ORM_VERSION = '7.1.8-dev.0';
/**

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