@wavemaker/app-ng-runtime 11.6.1-rc.5528 → 11.6.2-next.1417101

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.
@@ -2587,15 +2587,15 @@ class AppRef {
2587
2587
  return getHttpDependency.call(this);
2588
2588
  }
2589
2589
  let providerInstance = injectorMap[injToken] && this.inj.get(injectorMap[injToken]);
2590
- if (!providerInstance && this.inj['records']?.values) {
2591
- const values = this.inj['records'].values();
2592
- let next = values?.next();
2593
- while (next && !next.done) {
2594
- if (next?.value?.value?.constructor?.SERVICE_NAME === injToken) {
2595
- return next.value.value;
2590
+ if (!providerInstance && this.inj['_providers']) {
2591
+ _.forEach(this.inj['_providers'], val => {
2592
+ if (_.isObject(val)) {
2593
+ if (val.__proto__.constructor.SERVICE_NAME === injToken) {
2594
+ providerInstance = val;
2595
+ return false;
2596
+ }
2596
2597
  }
2597
- next = values.next();
2598
- }
2598
+ });
2599
2599
  }
2600
2600
  return providerInstance;
2601
2601
  }