@punks/backend-entity-manager 0.0.394 → 0.0.396

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,2 +1,3 @@
1
1
  export { TasksModule } from "./module";
2
+ export { TasksModuleSettings } from "./settings";
2
3
  export { TasksService } from "./services/tasks-service";
package/dist/esm/index.js CHANGED
@@ -21971,9 +21971,10 @@ let CustomDiscoveryService = class CustomDiscoveryService {
21971
21971
  */
21972
21972
  async providers(filter) {
21973
21973
  if (!this.discoveredProviders) {
21974
- this.discoveredProviders = this.discover("providers");
21974
+ const allProviders = await this.discover("providers");
21975
+ this.discoveredProviders = allProviders;
21975
21976
  }
21976
- return (await this.discoveredProviders).filter((x) => filter(x));
21977
+ return lodash.exports.uniqBy(this.discoveredProviders.filter((x) => filter(x)), (x) => x.instance);
21977
21978
  }
21978
21979
  /**
21979
21980
  * Discovers all controller methods that either directly have a certain meta key attached to them
@@ -22019,9 +22020,9 @@ let CustomDiscoveryService = class CustomDiscoveryService {
22019
22020
  */
22020
22021
  async controllers(filter) {
22021
22022
  if (!this.discoveredControllers) {
22022
- this.discoveredControllers = this.discover("controllers");
22023
+ this.discoveredControllers = await this.discover("controllers");
22023
22024
  }
22024
- return (await this.discoveredControllers).filter((x) => filter(x));
22025
+ return this.discoveredControllers.filter((x) => filter(x));
22025
22026
  }
22026
22027
  /**
22027
22028
  * Discovers all controllers in an App that have meta at a specific key and returns the controller(s) and associated meta