ps-toolkit-ui 1.19.80 → 1.19.82
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/ps-toolkit-ui.umd.js +11 -12
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/request.class.js +10 -11
- package/esm2015/lib/services/config.service.js +3 -5
- package/fesm2015/ps-toolkit-ui.js +12 -13
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/services/config.service.d.ts +1 -2
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -32,19 +32,17 @@
|
|
|
32
32
|
var HighchartsExportData__namespace = /*#__PURE__*/_interopNamespace(HighchartsExportData);
|
|
33
33
|
|
|
34
34
|
var PsToolkitUiConfigService = /** @class */ (function () {
|
|
35
|
-
function PsToolkitUiConfigService(environment, strings, currentLang
|
|
35
|
+
function PsToolkitUiConfigService(environment, strings, currentLang) {
|
|
36
36
|
this.environment = environment;
|
|
37
37
|
this.strings = strings;
|
|
38
38
|
this.currentLang = currentLang;
|
|
39
|
-
this.authorizationName = authorizationName;
|
|
40
39
|
}
|
|
41
40
|
return PsToolkitUiConfigService;
|
|
42
41
|
}());
|
|
43
42
|
PsToolkitUiConfigService.ctorParameters = function () { return [
|
|
44
43
|
{ type: undefined, decorators: [{ type: core.Inject, args: ['environment',] }] },
|
|
45
44
|
{ type: undefined, decorators: [{ type: core.Inject, args: ['strings',] }] },
|
|
46
|
-
{ type: String, decorators: [{ type: core.Inject, args: ['currentLang',] }] }
|
|
47
|
-
{ type: String, decorators: [{ type: core.Inject, args: ['authorizationName',] }] }
|
|
45
|
+
{ type: String, decorators: [{ type: core.Inject, args: ['currentLang',] }] }
|
|
48
46
|
]; };
|
|
49
47
|
|
|
50
48
|
var AccordionComponent = /** @class */ (function () {
|
|
@@ -1972,23 +1970,24 @@
|
|
|
1972
1970
|
var _this = this;
|
|
1973
1971
|
if (timeout === void 0) { timeout = null; }
|
|
1974
1972
|
var token = HelperClass.getCookie('Authorization');
|
|
1973
|
+
var tokenCu = HelperClass.getCookie('AuthorizationCu');
|
|
1974
|
+
var h = {};
|
|
1975
|
+
if (token != null) {
|
|
1976
|
+
h.Authorization = token;
|
|
1977
|
+
}
|
|
1978
|
+
if (token != null) {
|
|
1979
|
+
h.AuthorizationCu = tokenCu;
|
|
1980
|
+
}
|
|
1975
1981
|
if (!(data instanceof FormData)) {
|
|
1976
1982
|
data = HelperClass.jsonToFormData(data);
|
|
1977
1983
|
}
|
|
1978
|
-
var headers = {};
|
|
1979
|
-
if (token !== null) {
|
|
1980
|
-
var config = core.inject(PsToolkitUiConfigService);
|
|
1981
|
-
var authName = config.authorizationName;
|
|
1982
|
-
console.log('Authorization name is:', authName);
|
|
1983
|
-
headers[authName] = token;
|
|
1984
|
-
}
|
|
1985
1984
|
var settings = {
|
|
1986
1985
|
url: (url.includes('https://') || url.includes('http://') ? '' : this.environment.apiUrl) + url,
|
|
1987
1986
|
method: exports.Method[method].toString(),
|
|
1988
1987
|
processData: false,
|
|
1989
1988
|
contentType: false,
|
|
1990
1989
|
data: data,
|
|
1991
|
-
headers:
|
|
1990
|
+
headers: h
|
|
1992
1991
|
};
|
|
1993
1992
|
if (timeout != null) {
|
|
1994
1993
|
settings.timeout = timeout;
|