@mikro-orm/core 7.0.7-dev.11 → 7.0.7-dev.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/core",
3
- "version": "7.0.7-dev.11",
3
+ "version": "7.0.7-dev.12",
4
4
  "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
5
  "keywords": [
6
6
  "data-mapper",
package/typings.d.ts CHANGED
@@ -1300,6 +1300,10 @@ export interface EntitySchemaWithMeta<TName extends string = string, TTableName
1300
1300
  readonly tableName: TTableName;
1301
1301
  /** @internal Direct entity type access - avoids expensive pattern matching */
1302
1302
  readonly '~entity': TEntity;
1303
+ /** @internal */
1304
+ readonly class: TClass & {
1305
+ '~entityName'?: TName;
1306
+ };
1303
1307
  }
1304
1308
  /**
1305
1309
  * Extracts the entity type from an `EntitySchema`, `EntitySchemaWithMeta`, or entity class.
package/utils/Utils.js CHANGED
@@ -132,7 +132,7 @@ export function parseJsonSafe(value) {
132
132
  /** Collection of general-purpose utility methods used throughout the ORM. */
133
133
  export class Utils {
134
134
  static PK_SEPARATOR = '~~~';
135
- static #ORM_VERSION = '7.0.7-dev.11';
135
+ static #ORM_VERSION = '7.0.7-dev.12';
136
136
  /**
137
137
  * Checks if the argument is instance of `Object`. Returns false for arrays.
138
138
  */