@sambath999/localize-token 12.4.0 → 12.4.1
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/sambath999-localize-token.umd.js +10 -9
- package/bundles/sambath999-localize-token.umd.js.map +1 -1
- package/esm2015/localize-logindlg/localize-logindlg.component.js +4 -4
- package/esm2015/localize-logindlg/localize-logindlg.service.js +1 -1
- package/esm2015/localize-token/localize.api.service.js +2 -2
- package/esm2015/localize-token/localize.token.service.js +3 -6
- package/fesm2015/sambath999-localize-token.js +6 -9
- package/fesm2015/sambath999-localize-token.js.map +1 -1
- package/localize-logindlg/localize-logindlg.service.d.ts +0 -1
- package/localize-token/localize.token.service.d.ts +1 -1
- package/package.json +1 -1
- package/sambath999-localize-token.metadata.json +1 -1
|
@@ -614,6 +614,11 @@
|
|
|
614
614
|
enumerable: false,
|
|
615
615
|
configurable: true
|
|
616
616
|
});
|
|
617
|
+
Object.defineProperty(LocalizeTokenService.prototype, "tenantToken", {
|
|
618
|
+
get: function () { var _a; return LocalizeToken.storage.get(((_a = this.config.tenantToken) === null || _a === void 0 ? void 0 : _a.name) || ''); },
|
|
619
|
+
enumerable: false,
|
|
620
|
+
configurable: true
|
|
621
|
+
});
|
|
617
622
|
Object.defineProperty(LocalizeTokenService.prototype, "refreshToken", {
|
|
618
623
|
get: function () { var _a; return LocalizeToken.storage.get(((_a = this.config.refreshToken) === null || _a === void 0 ? void 0 : _a.name) || ''); },
|
|
619
624
|
enumerable: false,
|
|
@@ -636,10 +641,6 @@
|
|
|
636
641
|
enumerable: false,
|
|
637
642
|
configurable: true
|
|
638
643
|
});
|
|
639
|
-
LocalizeTokenService.prototype.tenantToken = function () {
|
|
640
|
-
var _a;
|
|
641
|
-
return LocalizeToken.storage.get(((_a = this.config.tenantToken) === null || _a === void 0 ? void 0 : _a.name) || '');
|
|
642
|
-
};
|
|
643
644
|
LocalizeTokenService.prototype.storageGet = function () {
|
|
644
645
|
var _a;
|
|
645
646
|
try {
|
|
@@ -659,7 +660,7 @@
|
|
|
659
660
|
LocalizeTokenService.prototype.tokensValid = function () {
|
|
660
661
|
var _a, _b;
|
|
661
662
|
return !!((_a = this.refreshToken) === null || _a === void 0 ? void 0 : _a.length)
|
|
662
|
-
&& (!this.config.tenantToken || !!((_b = this.tenantToken
|
|
663
|
+
&& (!this.config.tenantToken || !!((_b = this.tenantToken) === null || _b === void 0 ? void 0 : _b.length));
|
|
663
664
|
};
|
|
664
665
|
Object.defineProperty(LocalizeTokenService.prototype, "decodeRefreshToken", {
|
|
665
666
|
get: function () {
|
|
@@ -964,7 +965,7 @@
|
|
|
964
965
|
configurable: true
|
|
965
966
|
});
|
|
966
967
|
Object.defineProperty(LocalizeApiService.prototype, "tenantToken", {
|
|
967
|
-
get: function () { return this.localizeTokenService.tenantToken
|
|
968
|
+
get: function () { return this.localizeTokenService.tenantToken; },
|
|
968
969
|
enumerable: false,
|
|
969
970
|
configurable: true
|
|
970
971
|
});
|
|
@@ -1353,10 +1354,10 @@
|
|
|
1353
1354
|
};
|
|
1354
1355
|
LocalizeLogindlgComponent.prototype.getHeaders = function () {
|
|
1355
1356
|
var _d;
|
|
1356
|
-
var _a, _b
|
|
1357
|
+
var _a, _b;
|
|
1357
1358
|
return _d = {},
|
|
1358
|
-
_d[LocalizeToken.httpHeaders.X_REFRESH_TOKEN] = (
|
|
1359
|
-
_d[LocalizeToken.httpHeaders.X_TENANT] = (
|
|
1359
|
+
_d[LocalizeToken.httpHeaders.X_REFRESH_TOKEN] = (_a = this.tokenService.refreshToken) !== null && _a !== void 0 ? _a : "",
|
|
1360
|
+
_d[LocalizeToken.httpHeaders.X_TENANT] = (_b = this.tokenService.tenantToken) !== null && _b !== void 0 ? _b : "",
|
|
1360
1361
|
_d;
|
|
1361
1362
|
};
|
|
1362
1363
|
Object.defineProperty(LocalizeLogindlgComponent.prototype, "isValidPassword", {
|