ngx-techlify-core 11.4.5-beta.5 → 11.4.5-beta.6

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.
@@ -742,26 +742,37 @@
742
742
  */
743
743
  var TechlifyConfig = /** @class */ (function () {
744
744
  function TechlifyConfig(data) {
745
+ this.data = data;
745
746
  this.projectKey = '';
746
747
  this.environment = '';
747
748
  this.authClientSecret = '';
748
749
  this.authGrantType = '';
749
750
  this.apiUrl = '';
750
751
  this.isLogoutWhileApiGetsFailed = false;
751
- this.loadFromMap(data);
752
- }
753
- TechlifyConfig.prototype.loadFromMap = function (data) {
754
- this.projectKey = data.projectKey;
755
- this.environment = data.environment;
756
- this.authClientSecret = data.authClientSecret;
757
- this.authGrantType = data.authGrantType;
758
- this.apiUrl = data.apiUrl;
759
- this.storage = data === null || data === void 0 ? void 0 : data.storage;
760
- this.rawConfigs = data;
761
- this.isLogoutWhileApiGetsFailed = data === null || data === void 0 ? void 0 : data.isLogoutWhileApiGetsFailed;
752
+ this.loadFromMap();
753
+ }
754
+ TechlifyConfig.prototype.loadFromMap = function () {
755
+ var _a, _b;
756
+ this.projectKey = this.data.projectKey;
757
+ this.environment = this.data.environment;
758
+ this.authClientSecret = this.data.authClientSecret;
759
+ this.authGrantType = this.data.authGrantType;
760
+ this.apiUrl = this.data.apiUrl;
761
+ this.storage = (_a = this.data) === null || _a === void 0 ? void 0 : _a.storage;
762
+ this.rawConfigs = this.data;
763
+ this.isLogoutWhileApiGetsFailed = (_b = this.data) === null || _b === void 0 ? void 0 : _b.isLogoutWhileApiGetsFailed;
762
764
  };
763
765
  return TechlifyConfig;
764
766
  }());
767
+ TechlifyConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function TechlifyConfig_Factory() { return new TechlifyConfig(i0.ɵɵinject("data")); }, token: TechlifyConfig, providedIn: "root" });
768
+ TechlifyConfig.decorators = [
769
+ { type: i0.Injectable, args: [{
770
+ providedIn: 'root'
771
+ },] }
772
+ ];
773
+ TechlifyConfig.ctorParameters = function () { return [
774
+ { type: undefined, decorators: [{ type: i0.Inject, args: ['data',] }] }
775
+ ]; };
765
776
 
766
777
  /**
767
778
  * Service that provides settings for all other services