@punks/backend-entity-manager 0.0.17 → 0.0.18
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/dist/cjs/index.js +106 -106
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/processors/initializer/index.d.ts +7 -1
- package/dist/esm/index.js +106 -106
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/processors/initializer/index.d.ts +7 -1
- package/dist/index.d.ts +6 -1
- package/package.json +1 -1
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { INestApplicationContext } from "@nestjs/common";
|
|
2
|
+
import { EventEmitter2 } from "@nestjs/event-emitter";
|
|
2
3
|
import { EntityManagerRegistry } from "../../ioc/registry";
|
|
3
4
|
import { CustomDiscoveryService } from "../../ioc/discovery";
|
|
4
5
|
import { NestEventEmitter } from "../../providers/events";
|
|
6
|
+
import { ModulesContainer } from "@nestjs/core";
|
|
7
|
+
export interface EntityManagerStaticProviders {
|
|
8
|
+
eventEmitter: EventEmitter2;
|
|
9
|
+
modulesContainer: ModulesContainer;
|
|
10
|
+
}
|
|
5
11
|
export declare class EntityManagerInitializer {
|
|
6
12
|
private readonly discover;
|
|
7
13
|
private readonly registry;
|
|
8
14
|
private readonly eventEmitter;
|
|
9
15
|
private readonly logger;
|
|
10
16
|
constructor(discover: CustomDiscoveryService, registry: EntityManagerRegistry, eventEmitter: NestEventEmitter);
|
|
11
|
-
initialize(app: INestApplicationContext): Promise<void>;
|
|
17
|
+
initialize(app: INestApplicationContext, staticProviders: EntityManagerStaticProviders): Promise<void>;
|
|
12
18
|
private initializeProviders;
|
|
13
19
|
private discoverEntities;
|
|
14
20
|
private discoverRepositories;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ModulesContainer } from '@nestjs/core/injector/modules-container';
|
|
|
4
4
|
import { MetadataScanner } from '@nestjs/core/metadata-scanner';
|
|
5
5
|
import { ObjectLiteral, FindOneOptions, FindManyOptions, Repository, ObjectId, FindOptionsWhere, FindOptionsRelations } from 'typeorm';
|
|
6
6
|
import { EventEmitter2 } from '@nestjs/event-emitter';
|
|
7
|
+
import { ModulesContainer as ModulesContainer$1 } from '@nestjs/core';
|
|
7
8
|
|
|
8
9
|
type EnumType = string | number | symbol;
|
|
9
10
|
type SortingType = EnumType;
|
|
@@ -667,13 +668,17 @@ declare class NestEventEmitter implements IEventEmitter {
|
|
|
667
668
|
emit(event: string, ...args: any[]): Promise<void>;
|
|
668
669
|
}
|
|
669
670
|
|
|
671
|
+
interface EntityManagerStaticProviders {
|
|
672
|
+
eventEmitter: EventEmitter2;
|
|
673
|
+
modulesContainer: ModulesContainer$1;
|
|
674
|
+
}
|
|
670
675
|
declare class EntityManagerInitializer {
|
|
671
676
|
private readonly discover;
|
|
672
677
|
private readonly registry;
|
|
673
678
|
private readonly eventEmitter;
|
|
674
679
|
private readonly logger;
|
|
675
680
|
constructor(discover: CustomDiscoveryService, registry: EntityManagerRegistry, eventEmitter: NestEventEmitter);
|
|
676
|
-
initialize(app: INestApplicationContext): Promise<void>;
|
|
681
|
+
initialize(app: INestApplicationContext, staticProviders: EntityManagerStaticProviders): Promise<void>;
|
|
677
682
|
private initializeProviders;
|
|
678
683
|
private discoverEntities;
|
|
679
684
|
private discoverRepositories;
|