@mikro-orm/core
Advanced tools
@@ -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) { |
+1
-1
| { | ||
| "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)); |
+1
-1
@@ -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. |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 2 instances
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 2 instances
1569283
0.02%33560
0.01%2
100%