@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.
package/dist/cjs/index.js CHANGED
@@ -21986,9 +21986,10 @@ exports.CustomDiscoveryService = class CustomDiscoveryService {
21986
21986
  */
21987
21987
  async providers(filter) {
21988
21988
  if (!this.discoveredProviders) {
21989
- this.discoveredProviders = this.discover("providers");
21989
+ const allProviders = await this.discover("providers");
21990
+ this.discoveredProviders = allProviders;
21990
21991
  }
21991
- return (await this.discoveredProviders).filter((x) => filter(x));
21992
+ return lodash.exports.uniqBy(this.discoveredProviders.filter((x) => filter(x)), (x) => x.instance);
21992
21993
  }
21993
21994
  /**
21994
21995
  * Discovers all controller methods that either directly have a certain meta key attached to them
@@ -22034,9 +22035,9 @@ exports.CustomDiscoveryService = class CustomDiscoveryService {
22034
22035
  */
22035
22036
  async controllers(filter) {
22036
22037
  if (!this.discoveredControllers) {
22037
- this.discoveredControllers = this.discover("controllers");
22038
+ this.discoveredControllers = await this.discover("controllers");
22038
22039
  }
22039
- return (await this.discoveredControllers).filter((x) => filter(x));
22040
+ return this.discoveredControllers.filter((x) => filter(x));
22040
22041
  }
22041
22042
  /**
22042
22043
  * Discovers all controllers in an App that have meta at a specific key and returns the controller(s) and associated meta