@punks/backend-entity-manager 0.0.270 → 0.0.271
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 +16 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/module.d.ts +4 -1
- package/dist/esm/index.js +16 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/module.d.ts +4 -1
- package/dist/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { OnModuleInit } from "@nestjs/common";
|
|
1
|
+
import { DynamicModule, OnModuleInit, Type } from "@nestjs/common";
|
|
2
2
|
import { EntityManagerRegistry } from "./ioc/registry";
|
|
3
3
|
export declare class EntityManagerModule implements OnModuleInit {
|
|
4
4
|
private readonly registry;
|
|
5
5
|
constructor(registry: EntityManagerRegistry);
|
|
6
6
|
onModuleInit(): void;
|
|
7
|
+
static forRoot(providers: {
|
|
8
|
+
operationsLockRepository: Type<unknown>;
|
|
9
|
+
}): DynamicModule;
|
|
7
10
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -23613,6 +23613,7 @@ const getIoCContext = () => {
|
|
|
23613
23613
|
return _context;
|
|
23614
23614
|
};
|
|
23615
23615
|
|
|
23616
|
+
var EntityManagerModule_1;
|
|
23616
23617
|
const ModuleData$9 = {
|
|
23617
23618
|
imports: [CustomDiscoveryModule, EventEmitterModule],
|
|
23618
23619
|
providers: [
|
|
@@ -23624,7 +23625,7 @@ const ModuleData$9 = {
|
|
|
23624
23625
|
],
|
|
23625
23626
|
exports: [EntityManagerRegistry, ...Services$1],
|
|
23626
23627
|
};
|
|
23627
|
-
let EntityManagerModule = class EntityManagerModule {
|
|
23628
|
+
let EntityManagerModule = EntityManagerModule_1 = class EntityManagerModule {
|
|
23628
23629
|
constructor(registry) {
|
|
23629
23630
|
this.registry = registry;
|
|
23630
23631
|
}
|
|
@@ -23633,8 +23634,21 @@ let EntityManagerModule = class EntityManagerModule {
|
|
|
23633
23634
|
registry: this.registry,
|
|
23634
23635
|
});
|
|
23635
23636
|
}
|
|
23637
|
+
static forRoot(providers) {
|
|
23638
|
+
return {
|
|
23639
|
+
module: EntityManagerModule_1,
|
|
23640
|
+
...ModuleData$9,
|
|
23641
|
+
providers: [
|
|
23642
|
+
...ModuleData$9.providers,
|
|
23643
|
+
{
|
|
23644
|
+
provide: getEntityManagerProviderToken("OperationsLockRepository"),
|
|
23645
|
+
useClass: providers.operationsLockRepository,
|
|
23646
|
+
},
|
|
23647
|
+
],
|
|
23648
|
+
};
|
|
23649
|
+
}
|
|
23636
23650
|
};
|
|
23637
|
-
EntityManagerModule = __decorate([
|
|
23651
|
+
EntityManagerModule = EntityManagerModule_1 = __decorate([
|
|
23638
23652
|
Module({
|
|
23639
23653
|
imports: ModuleData$9.imports,
|
|
23640
23654
|
providers: ModuleData$9.providers,
|