@punks/backend-entity-manager 0.0.395 → 0.0.397

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.
@@ -1,9 +1,9 @@
1
- import { DynamicModule, OnModuleDestroy } from "@nestjs/common";
1
+ import { OnModuleDestroy } from "@nestjs/common";
2
2
  import { TaskScheduler } from "./providers/scheduler";
3
3
  import { TasksModuleSettings } from "./settings";
4
4
  export declare class TasksModule implements OnModuleDestroy {
5
5
  private readonly scheduler;
6
6
  constructor(scheduler: TaskScheduler);
7
- static forRoot(input: TasksModuleSettings): DynamicModule;
7
+ static initialize(input: TasksModuleSettings): void;
8
8
  onModuleDestroy(): void;
9
9
  }
package/dist/esm/index.js CHANGED
@@ -2984,7 +2984,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
2984
2984
  };
2985
2985
 
2986
2986
  var AwsDynamoDbModule_1;
2987
- const ModuleData$b = {
2987
+ const ModuleData$a = {
2988
2988
  providers: [],
2989
2989
  exports: [],
2990
2990
  };
@@ -2993,13 +2993,13 @@ let AwsDynamoDbModule = AwsDynamoDbModule_1 = class AwsDynamoDbModule {
2993
2993
  awsDynamoDbSettings.initialize(input);
2994
2994
  return {
2995
2995
  module: AwsDynamoDbModule_1,
2996
- ...ModuleData$b,
2996
+ ...ModuleData$a,
2997
2997
  };
2998
2998
  }
2999
2999
  };
3000
3000
  AwsDynamoDbModule = AwsDynamoDbModule_1 = __decorate([
3001
3001
  Module({
3002
- ...ModuleData$b,
3002
+ ...ModuleData$a,
3003
3003
  })
3004
3004
  ], AwsDynamoDbModule);
3005
3005
 
@@ -21971,9 +21971,9 @@ let CustomDiscoveryService = class CustomDiscoveryService {
21971
21971
  */
21972
21972
  async providers(filter) {
21973
21973
  if (!this.discoveredProviders) {
21974
- this.discoveredProviders = this.discover("providers");
21974
+ this.discoveredProviders = await this.discover("providers");
21975
21975
  }
21976
- return (await this.discoveredProviders).filter((x) => filter(x));
21976
+ return this.discoveredProviders.filter((x) => filter(x));
21977
21977
  }
21978
21978
  /**
21979
21979
  * Discovers all controller methods that either directly have a certain meta key attached to them
@@ -22019,9 +22019,9 @@ let CustomDiscoveryService = class CustomDiscoveryService {
22019
22019
  */
22020
22020
  async controllers(filter) {
22021
22021
  if (!this.discoveredControllers) {
22022
- this.discoveredControllers = this.discover("controllers");
22022
+ this.discoveredControllers = await this.discover("controllers");
22023
22023
  }
22024
- return (await this.discoveredControllers).filter((x) => filter(x));
22024
+ return this.discoveredControllers.filter((x) => filter(x));
22025
22025
  }
22026
22026
  /**
22027
22027
  * Discovers all controllers in an App that have meta at a specific key and returns the controller(s) and associated meta
@@ -24330,7 +24330,7 @@ const getIoCContext = () => {
24330
24330
  return _context;
24331
24331
  };
24332
24332
 
24333
- const ModuleData$a = {
24333
+ const ModuleData$9 = {
24334
24334
  imports: [CustomDiscoveryModule, EventEmitterModule],
24335
24335
  providers: [
24336
24336
  ...IoC,
@@ -24353,9 +24353,9 @@ let EntityManagerModule = class EntityManagerModule {
24353
24353
  };
24354
24354
  EntityManagerModule = __decorate([
24355
24355
  Module({
24356
- imports: ModuleData$a.imports,
24357
- providers: ModuleData$a.providers,
24358
- exports: ModuleData$a.exports,
24356
+ imports: ModuleData$9.imports,
24357
+ providers: ModuleData$9.providers,
24358
+ exports: ModuleData$9.exports,
24359
24359
  }),
24360
24360
  __metadata("design:paramtypes", [EntityManagerRegistry])
24361
24361
  ], EntityManagerModule);
@@ -24586,7 +24586,7 @@ AuthenticationMiddleware = __decorate([
24586
24586
  ], AuthenticationMiddleware);
24587
24587
 
24588
24588
  var AuthenticationModule_1;
24589
- const ModuleData$9 = {
24589
+ const ModuleData$8 = {
24590
24590
  imports: [EntityManagerModule, JwtModule],
24591
24591
  providers: [
24592
24592
  AuthenticationServicesResolver,
@@ -24603,7 +24603,7 @@ let AuthenticationModule = AuthenticationModule_1 = class AuthenticationModule {
24603
24603
  authSettings.initialize(input);
24604
24604
  return {
24605
24605
  module: AuthenticationModule_1,
24606
- ...ModuleData$9,
24606
+ ...ModuleData$8,
24607
24607
  };
24608
24608
  }
24609
24609
  configure(consumer) {
@@ -24616,7 +24616,7 @@ let AuthenticationModule = AuthenticationModule_1 = class AuthenticationModule {
24616
24616
  };
24617
24617
  AuthenticationModule = AuthenticationModule_1 = __decorate([
24618
24618
  Module({
24619
- ...ModuleData$9,
24619
+ ...ModuleData$8,
24620
24620
  })
24621
24621
  ], AuthenticationModule);
24622
24622
 
@@ -34818,7 +34818,7 @@ const JobResolverProviders = [JobsProviderFactory];
34818
34818
  const JobTasks = [JobsMonitorTask, JobsSchedulerTask];
34819
34819
 
34820
34820
  var JobsModule_1;
34821
- const ModuleData$8 = {
34821
+ const ModuleData$7 = {
34822
34822
  providers: [
34823
34823
  ...JobsProviders,
34824
34824
  ...JobTasks,
@@ -34842,13 +34842,13 @@ let JobsModule = JobsModule_1 = class JobsModule {
34842
34842
  jobsSettings.initialize(input);
34843
34843
  return {
34844
34844
  module: JobsModule_1,
34845
- ...ModuleData$8,
34845
+ ...ModuleData$7,
34846
34846
  };
34847
34847
  }
34848
34848
  };
34849
34849
  JobsModule = JobsModule_1 = __decorate([
34850
34850
  Module({
34851
- ...ModuleData$8,
34851
+ ...ModuleData$7,
34852
34852
  }),
34853
34853
  __metadata("design:paramtypes", [JobsScheduler,
34854
34854
  JobsProviderFactory])
@@ -35071,30 +35071,22 @@ TasksService = TasksService_1 = __decorate([
35071
35071
 
35072
35072
  const TaskModuleServices = [TasksService];
35073
35073
 
35074
- var TasksModule_1;
35075
- const ModuleData$7 = {
35076
- imports: [EntityManagerModule],
35077
- providers: [TasksInitializer, ...TasksModuleProviders, ...TaskModuleServices],
35078
- exports: [...TaskModuleServices],
35079
- };
35080
- let TasksModule = TasksModule_1 = class TasksModule {
35074
+ let TasksModule = class TasksModule {
35081
35075
  constructor(scheduler) {
35082
35076
  this.scheduler = scheduler;
35083
35077
  }
35084
- static forRoot(input) {
35078
+ static initialize(input) {
35085
35079
  tasksSettings.initialize(input);
35086
- return {
35087
- module: TasksModule_1,
35088
- ...ModuleData$7,
35089
- };
35090
35080
  }
35091
35081
  onModuleDestroy() {
35092
35082
  this.scheduler.stopAllTasks();
35093
35083
  }
35094
35084
  };
35095
- TasksModule = TasksModule_1 = __decorate([
35085
+ TasksModule = __decorate([
35096
35086
  Module({
35097
- ...ModuleData$7,
35087
+ imports: [EntityManagerModule],
35088
+ providers: [TasksInitializer, ...TasksModuleProviders, ...TaskModuleServices],
35089
+ exports: [...TaskModuleServices],
35098
35090
  }),
35099
35091
  __metadata("design:paramtypes", [TaskScheduler])
35100
35092
  ], TasksModule);