@mikro-orm/core
Advanced tools
@@ -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' && |
+1
-1
@@ -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. |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1386295
0.04%30098
0.02%