@exogee/graphweaver-mikroorm 1.0.1 → 1.0.3
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/lib/database.d.ts +2 -2
- package/lib/provider/assign.d.ts +2 -2
- package/package.json +6 -6
package/lib/database.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './utils/change-tracker';
|
|
2
|
-
import { Connection, EntityName, IDatabaseDriver, MikroORM, Options } from '@mikro-orm/core';
|
|
2
|
+
import { AnyEntity, Connection, EntityName, IDatabaseDriver, MikroORM, Options } from '@mikro-orm/core';
|
|
3
3
|
import type { EntityManager as PgEntityManager, PostgreSqlDriver } from '@mikro-orm/postgresql';
|
|
4
4
|
import type { EntityManager as MyEntityManager, MySqlDriver } from '@mikro-orm/mysql';
|
|
5
5
|
import type { EntityManager as SqliteEntityManager, SqliteDriver } from '@mikro-orm/sqlite';
|
|
@@ -28,7 +28,7 @@ declare class DatabaseImplementation {
|
|
|
28
28
|
isolatedTest(test: () => any): () => Promise<void>;
|
|
29
29
|
get rawConnection(): import("@mikro-orm/postgresql").PostgreSqlConnection | import("@mikro-orm/postgresql").MySqlConnection | import("@mikro-orm/sqlite").SqliteConnection;
|
|
30
30
|
private getConnectionInfo;
|
|
31
|
-
getRepository: <T extends
|
|
31
|
+
getRepository: <T extends AnyEntity<T>>(entityName: EntityName<T>) => import("@mikro-orm/core").GetRepository<T, import("@mikro-orm/postgresql").EntityRepository<T>>;
|
|
32
32
|
connect: (connectionOptions?: ConnectionOptions) => Promise<MikroORM<IDatabaseDriver<Connection>, import("@mikro-orm/core").EntityManager<IDatabaseDriver<Connection>>>>;
|
|
33
33
|
close: () => Promise<void>;
|
|
34
34
|
}
|
package/lib/provider/assign.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EntityData } from '@mikro-orm/core';
|
|
1
|
+
import { AnyEntity, EntityData } from '@mikro-orm/core';
|
|
2
2
|
interface AssignOptions {
|
|
3
3
|
create?: boolean;
|
|
4
4
|
update?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const assign: <T extends
|
|
6
|
+
export declare const assign: <T extends AnyEntity<T>>(entity: T, data: EntityData<T>, options?: AssignOptions, visited?: Set<Partial<any>>, em?: import("@mikro-orm/knex").EntityManager<import("@mikro-orm/postgresql").PostgreSqlDriver> | import("@mikro-orm/knex").EntityManager<import("@mikro-orm/mysql").MySqlDriver> | import("@mikro-orm/knex").EntityManager<import("@mikro-orm/sqlite").SqliteDriver>) => Promise<T>;
|
|
7
7
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exogee/graphweaver-mikroorm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "MikroORM backend for @exogee/graphweaver",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"dataloader": "2.2.2",
|
|
17
17
|
"decimal.js": "10.4.3",
|
|
18
18
|
"dotenv": "16.4.5",
|
|
19
|
-
"graphql": "16.
|
|
19
|
+
"graphql": "16.9.0",
|
|
20
20
|
"pluralize": "8.0.0",
|
|
21
21
|
"reflect-metadata": "0.2.2",
|
|
22
|
-
"@exogee/graphweaver": "1.0.
|
|
23
|
-
"@exogee/logger": "1.0.
|
|
22
|
+
"@exogee/graphweaver": "1.0.3",
|
|
23
|
+
"@exogee/logger": "1.0.3"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@mikro-orm/core": "6.2.9",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"@mikro-orm/mysql": "6.2.9",
|
|
29
29
|
"@mikro-orm/postgresql": "6.2.9",
|
|
30
30
|
"@mikro-orm/sqlite": "6.2.9",
|
|
31
|
-
"@types/node": "20.14.
|
|
31
|
+
"@types/node": "20.14.9",
|
|
32
32
|
"@types/pluralize": "0.0.33",
|
|
33
33
|
"esbuild": "0.21.5",
|
|
34
34
|
"glob": "10.4.2",
|
|
35
35
|
"ts-node": "10.9.2",
|
|
36
|
-
"typescript": "5.
|
|
36
|
+
"typescript": "5.5.2"
|
|
37
37
|
},
|
|
38
38
|
"optionalDependencies": {
|
|
39
39
|
"@mikro-orm/knex": "6.2.9",
|