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.
- package/bundles/ngx-techlify-core.umd.js +22 -11
- package/bundles/ngx-techlify-core.umd.js.map +1 -1
- package/bundles/ngx-techlify-core.umd.min.js +1 -1
- package/bundles/ngx-techlify-core.umd.min.js.map +1 -1
- package/esm2015/lib/core/error-handler.service.js +1 -1
- package/esm2015/lib/core/techlify-config.model.js +24 -11
- package/fesm2015/ngx-techlify-core.js +22 -11
- package/fesm2015/ngx-techlify-core.js.map +1 -1
- package/lib/core/techlify-config.model.d.ts +2 -1
- package/ngx-techlify-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -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(
|
|
752
|
-
}
|
|
753
|
-
TechlifyConfig.prototype.loadFromMap = function (
|
|
754
|
-
|
|
755
|
-
this.
|
|
756
|
-
this.
|
|
757
|
-
this.
|
|
758
|
-
this.
|
|
759
|
-
this.
|
|
760
|
-
this.
|
|
761
|
-
this.
|
|
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
|