@mikro-orm/seeder 7.1.1-dev.8 → 7.1.1
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/Factory.d.ts +2 -2
- package/package.json +3 -3
package/Factory.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { EntityData, EntityManager,
|
|
1
|
+
import type { EntityData, EntityManager, EntityName } from '@mikro-orm/core';
|
|
2
2
|
/** Base class for entity factories used in seeding. Provides methods to create and persist test entities. */
|
|
3
3
|
export declare abstract class Factory<TEntity extends object, TInput = EntityData<TEntity>> {
|
|
4
4
|
protected readonly em: EntityManager;
|
|
5
|
-
abstract readonly model:
|
|
5
|
+
abstract readonly model: EntityName<TEntity>;
|
|
6
6
|
private eachFunction?;
|
|
7
7
|
constructor(em: EntityManager);
|
|
8
8
|
protected abstract definition(input?: TInput): EntityData<TEntity>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/seeder",
|
|
3
|
-
"version": "7.1.1
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"description": "Seeder package for MikroORM.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data-mapper",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"copy": "node ../../scripts/copy.mjs"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@mikro-orm/core": "^7.1.
|
|
51
|
+
"@mikro-orm/core": "^7.1.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@mikro-orm/core": "7.1.1
|
|
54
|
+
"@mikro-orm/core": "7.1.1"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">= 22.17.0"
|