@mikro-orm/core
Advanced tools
@@ -138,4 +138,7 @@ // Resolve a `Type<unknown> | Constructor<Type<unknown>>` to an instance. Each built-in `Type` has | ||
| static is(item) { | ||
| return item instanceof Routine; | ||
| if (item instanceof Routine) { | ||
| return true; | ||
| } | ||
| return item != null && typeof item === 'object' && item.constructor?.name === 'Routine' && 'type' in item; | ||
| } | ||
| } |
+1
-1
| { | ||
| "name": "@mikro-orm/core", | ||
| "version": "7.1.10-dev.5", | ||
| "version": "7.1.10-dev.6", | ||
| "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
@@ -156,3 +156,3 @@ import { clone } from './clone.js'; | ||
| static PK_SEPARATOR = '~~~'; | ||
| static #ORM_VERSION = '7.1.10-dev.5'; | ||
| static #ORM_VERSION = '7.1.10-dev.6'; | ||
| /** | ||
@@ -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.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
1576733
0.01%33685
0.01%