@mikro-orm/core 7.0.0-dev.75 → 7.0.0-dev.76
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/metadata/MetadataDiscovery.js +1 -1
- package/not-supported.d.ts +1 -0
- package/not-supported.js +3 -0
- package/package.json +5 -2
- package/utils/clone.js +1 -2
|
@@ -162,7 +162,7 @@ export class MetadataDiscovery {
|
|
|
162
162
|
const processed = [];
|
|
163
163
|
for (const entity of targets) {
|
|
164
164
|
if (typeof entity === 'string') {
|
|
165
|
-
const { discoverEntities } = await import('@mikro-orm/core/file-discovery'
|
|
165
|
+
const { discoverEntities } = await import('@mikro-orm/core/file-discovery');
|
|
166
166
|
processed.push(...await discoverEntities(entity, { baseDir }));
|
|
167
167
|
}
|
|
168
168
|
else {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function discoverEntities(): void;
|
package/not-supported.js
ADDED
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-dev.
|
|
4
|
+
"version": "7.0.0-dev.76",
|
|
5
5
|
"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.",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./package.json": "./package.json",
|
|
8
8
|
".": "./index.js",
|
|
9
|
-
"./file-discovery":
|
|
9
|
+
"./file-discovery": {
|
|
10
|
+
"node": "./metadata/discover-entities.js",
|
|
11
|
+
"browser": "./not-supported.js"
|
|
12
|
+
}
|
|
10
13
|
},
|
|
11
14
|
"repository": {
|
|
12
15
|
"type": "git",
|
package/utils/clone.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* clone `EventEmitter`s to get around https://github.com/mikro-orm/mikro-orm/issues/2748
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
|
-
import { EventEmitter } from 'node:events';
|
|
7
6
|
import { RawQueryFragment } from './RawQueryFragment.js';
|
|
8
7
|
/**
|
|
9
8
|
* Get the property descriptor of a property on an object or its prototype chain.
|
|
@@ -34,7 +33,7 @@ export function clone(parent, respectCustomCloneMethod = true) {
|
|
|
34
33
|
if (raw && respectCustomCloneMethod) {
|
|
35
34
|
return raw.clone();
|
|
36
35
|
}
|
|
37
|
-
if (typeof parent !== 'object'
|
|
36
|
+
if (typeof parent !== 'object') {
|
|
38
37
|
return parent;
|
|
39
38
|
}
|
|
40
39
|
if (respectCustomCloneMethod && 'clone' in parent && typeof parent.clone === 'function') {
|