@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.
package/dist/cjs/index.js CHANGED
@@ -2999,7 +2999,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
2999
2999
  };
3000
3000
 
3001
3001
  var AwsDynamoDbModule_1;
3002
- const ModuleData$b = {
3002
+ const ModuleData$a = {
3003
3003
  providers: [],
3004
3004
  exports: [],
3005
3005
  };
@@ -3008,13 +3008,13 @@ exports.AwsDynamoDbModule = AwsDynamoDbModule_1 = class AwsDynamoDbModule {
3008
3008
  awsDynamoDbSettings.initialize(input);
3009
3009
  return {
3010
3010
  module: AwsDynamoDbModule_1,
3011
- ...ModuleData$b,
3011
+ ...ModuleData$a,
3012
3012
  };
3013
3013
  }
3014
3014
  };
3015
3015
  exports.AwsDynamoDbModule = AwsDynamoDbModule_1 = __decorate([
3016
3016
  common.Module({
3017
- ...ModuleData$b,
3017
+ ...ModuleData$a,
3018
3018
  })
3019
3019
  ], exports.AwsDynamoDbModule);
3020
3020
 
@@ -21986,9 +21986,9 @@ exports.CustomDiscoveryService = class CustomDiscoveryService {
21986
21986
  */
21987
21987
  async providers(filter) {
21988
21988
  if (!this.discoveredProviders) {
21989
- this.discoveredProviders = this.discover("providers");
21989
+ this.discoveredProviders = await this.discover("providers");
21990
21990
  }
21991
- return (await this.discoveredProviders).filter((x) => filter(x));
21991
+ return this.discoveredProviders.filter((x) => filter(x));
21992
21992
  }
21993
21993
  /**
21994
21994
  * Discovers all controller methods that either directly have a certain meta key attached to them
@@ -22034,9 +22034,9 @@ exports.CustomDiscoveryService = class CustomDiscoveryService {
22034
22034
  */
22035
22035
  async controllers(filter) {
22036
22036
  if (!this.discoveredControllers) {
22037
- this.discoveredControllers = this.discover("controllers");
22037
+ this.discoveredControllers = await this.discover("controllers");
22038
22038
  }
22039
- return (await this.discoveredControllers).filter((x) => filter(x));
22039
+ return this.discoveredControllers.filter((x) => filter(x));
22040
22040
  }
22041
22041
  /**
22042
22042
  * Discovers all controllers in an App that have meta at a specific key and returns the controller(s) and associated meta
@@ -24345,7 +24345,7 @@ const getIoCContext = () => {
24345
24345
  return _context;
24346
24346
  };
24347
24347
 
24348
- const ModuleData$a = {
24348
+ const ModuleData$9 = {
24349
24349
  imports: [exports.CustomDiscoveryModule, eventEmitter.EventEmitterModule],
24350
24350
  providers: [
24351
24351
  ...IoC,
@@ -24368,9 +24368,9 @@ exports.EntityManagerModule = class EntityManagerModule {
24368
24368
  };
24369
24369
  exports.EntityManagerModule = __decorate([
24370
24370
  common.Module({
24371
- imports: ModuleData$a.imports,
24372
- providers: ModuleData$a.providers,
24373
- exports: ModuleData$a.exports,
24371
+ imports: ModuleData$9.imports,
24372
+ providers: ModuleData$9.providers,
24373
+ exports: ModuleData$9.exports,
24374
24374
  }),
24375
24375
  __metadata("design:paramtypes", [exports.EntityManagerRegistry])
24376
24376
  ], exports.EntityManagerModule);
@@ -24601,7 +24601,7 @@ AuthenticationMiddleware = __decorate([
24601
24601
  ], AuthenticationMiddleware);
24602
24602
 
24603
24603
  var AuthenticationModule_1;
24604
- const ModuleData$9 = {
24604
+ const ModuleData$8 = {
24605
24605
  imports: [exports.EntityManagerModule, jwt.JwtModule],
24606
24606
  providers: [
24607
24607
  AuthenticationServicesResolver,
@@ -24618,7 +24618,7 @@ exports.AuthenticationModule = AuthenticationModule_1 = class AuthenticationModu
24618
24618
  authSettings.initialize(input);
24619
24619
  return {
24620
24620
  module: AuthenticationModule_1,
24621
- ...ModuleData$9,
24621
+ ...ModuleData$8,
24622
24622
  };
24623
24623
  }
24624
24624
  configure(consumer) {
@@ -24631,7 +24631,7 @@ exports.AuthenticationModule = AuthenticationModule_1 = class AuthenticationModu
24631
24631
  };
24632
24632
  exports.AuthenticationModule = AuthenticationModule_1 = __decorate([
24633
24633
  common.Module({
24634
- ...ModuleData$9,
24634
+ ...ModuleData$8,
24635
24635
  })
24636
24636
  ], exports.AuthenticationModule);
24637
24637
 
@@ -34833,7 +34833,7 @@ const JobResolverProviders = [JobsProviderFactory];
34833
34833
  const JobTasks = [JobsMonitorTask, JobsSchedulerTask];
34834
34834
 
34835
34835
  var JobsModule_1;
34836
- const ModuleData$8 = {
34836
+ const ModuleData$7 = {
34837
34837
  providers: [
34838
34838
  ...JobsProviders,
34839
34839
  ...JobTasks,
@@ -34857,13 +34857,13 @@ exports.JobsModule = JobsModule_1 = class JobsModule {
34857
34857
  jobsSettings.initialize(input);
34858
34858
  return {
34859
34859
  module: JobsModule_1,
34860
- ...ModuleData$8,
34860
+ ...ModuleData$7,
34861
34861
  };
34862
34862
  }
34863
34863
  };
34864
34864
  exports.JobsModule = JobsModule_1 = __decorate([
34865
34865
  common.Module({
34866
- ...ModuleData$8,
34866
+ ...ModuleData$7,
34867
34867
  }),
34868
34868
  __metadata("design:paramtypes", [JobsScheduler,
34869
34869
  JobsProviderFactory])
@@ -35086,30 +35086,22 @@ exports.TasksService = TasksService_1 = __decorate([
35086
35086
 
35087
35087
  const TaskModuleServices = [exports.TasksService];
35088
35088
 
35089
- var TasksModule_1;
35090
- const ModuleData$7 = {
35091
- imports: [exports.EntityManagerModule],
35092
- providers: [TasksInitializer, ...TasksModuleProviders, ...TaskModuleServices],
35093
- exports: [...TaskModuleServices],
35094
- };
35095
- exports.TasksModule = TasksModule_1 = class TasksModule {
35089
+ exports.TasksModule = class TasksModule {
35096
35090
  constructor(scheduler) {
35097
35091
  this.scheduler = scheduler;
35098
35092
  }
35099
- static forRoot(input) {
35093
+ static initialize(input) {
35100
35094
  tasksSettings.initialize(input);
35101
- return {
35102
- module: TasksModule_1,
35103
- ...ModuleData$7,
35104
- };
35105
35095
  }
35106
35096
  onModuleDestroy() {
35107
35097
  this.scheduler.stopAllTasks();
35108
35098
  }
35109
35099
  };
35110
- exports.TasksModule = TasksModule_1 = __decorate([
35100
+ exports.TasksModule = __decorate([
35111
35101
  common.Module({
35112
- ...ModuleData$7,
35102
+ imports: [exports.EntityManagerModule],
35103
+ providers: [TasksInitializer, ...TasksModuleProviders, ...TaskModuleServices],
35104
+ exports: [...TaskModuleServices],
35113
35105
  }),
35114
35106
  __metadata("design:paramtypes", [TaskScheduler])
35115
35107
  ], exports.TasksModule);