@punks/backend-entity-manager 0.0.5 → 0.0.7

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
@@ -48684,7 +48684,7 @@ let DiscoveryService = class DiscoveryService {
48684
48684
  };
48685
48685
  }
48686
48686
  async discover(component) {
48687
- const modulesMap = [...this.modulesContainer.entries()];
48687
+ const modulesMap = this.getModuleEntries();
48688
48688
  return Promise.all(
48689
48689
  // @ts-ignore
48690
48690
  lodash.exports.flatMap(modulesMap, ([key, nestModule]) => {
@@ -48694,9 +48694,16 @@ let DiscoveryService = class DiscoveryService {
48694
48694
  .map((component) => this.toDiscoveredClass(nestModule, component));
48695
48695
  }));
48696
48696
  }
48697
+ getModuleEntries() {
48698
+ return [...this.modulesContainer.entries()];
48699
+ // // todo: restore
48700
+ // // return [...this.modulesContainer.entries()]
48701
+ // return new Map<string, NestModule>()
48702
+ }
48697
48703
  };
48698
48704
  DiscoveryService = __decorate([
48699
48705
  common.Injectable(),
48706
+ __param(0, common.Inject(ModulesContainer_1)),
48700
48707
  __metadata("design:paramtypes", [ModulesContainer_1,
48701
48708
  MetadataScanner_1])
48702
48709
  ], DiscoveryService);