@mikro-orm/core
Advanced tools
@@ -617,2 +617,5 @@ import type { EntityManager } from '../EntityManager.js'; | ||
| type AllKeys<TProperties, TBase> = keyof TProperties | (IsNever<TBase> extends true ? never : keyof TBase); | ||
| type PartialWhere<TProperties, TBase> = string | FilterQuery<{ | ||
| [K in AllKeys<TProperties, TBase> & string]?: unknown; | ||
| }>; | ||
| /** Metadata descriptor for `defineEntity()`, combining entity options with property definitions. */ | ||
@@ -660,3 +663,3 @@ export interface EntityMetadataWithProperties<TName extends string, TTableName extends string, TProperties extends Record<string, any>, TPK extends (keyof TProperties)[] | undefined = undefined, TBase = never, TRepository = never, TForceObject extends boolean = false, TDiscriminatorColumn extends string | undefined = undefined, TDiscriminatorValue extends string | number | undefined = undefined, TBaseDiscriminatorColumn extends string | undefined = undefined> extends Omit<Partial<EntityMetadata<InferEntityFromProperties<TProperties, TPK, TBase, TRepository>>>, 'properties' | 'extends' | 'primaryKeys' | 'hooks' | 'discriminator' | 'discriminatorColumn' | 'discriminatorValue' | 'versionProperty' | 'concurrencyCheckKeys' | 'serializedPrimaryKey' | 'indexes' | 'uniques' | 'triggers' | 'repository' | 'filters' | 'orderBy'> { | ||
| expression?: string | IndexCallback<InferEntityFromProperties<TProperties, TPK, TBase>>; | ||
| where?: string | FilterQuery<InferEntityFromProperties<TProperties, TPK, TBase>>; | ||
| where?: PartialWhere<TProperties, TBase>; | ||
| columns?: IndexColumnOptions[]; | ||
@@ -674,3 +677,3 @@ include?: NoInfer<AllKeys<TProperties, TBase>> | NoInfer<AllKeys<TProperties, TBase>>[]; | ||
| expression?: string | IndexCallback<InferEntityFromProperties<TProperties, TPK, TBase>>; | ||
| where?: string | FilterQuery<InferEntityFromProperties<TProperties, TPK, TBase>>; | ||
| where?: PartialWhere<TProperties, TBase>; | ||
| deferMode?: DeferMode | `${DeferMode}`; | ||
@@ -677,0 +680,0 @@ columns?: IndexColumnOptions[]; |
+1
-1
| { | ||
| "name": "@mikro-orm/core", | ||
| "version": "7.1.2-dev.0", | ||
| "version": "7.1.2-dev.1", | ||
| "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": [ |
+1
-1
@@ -144,3 +144,3 @@ import { clone } from './clone.js'; | ||
| static PK_SEPARATOR = '~~~'; | ||
| static #ORM_VERSION = '7.1.2-dev.0'; | ||
| static #ORM_VERSION = '7.1.2-dev.1'; | ||
| /** | ||
@@ -147,0 +147,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
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance 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
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance 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
1556607
033377
0.01%