@egovernments/digit-ui-libraries 1.3.4 → 1.3.5
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/README.md +32 -32
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +42 -42
package/dist/index.modern.js
CHANGED
|
@@ -634,8 +634,10 @@ var ServiceRequest = function ServiceRequest(_ref2) {
|
|
|
634
634
|
|
|
635
635
|
var _temp = function () {
|
|
636
636
|
if (window[postHookName] && typeof window[postHookName] === "function") {
|
|
637
|
-
|
|
638
|
-
|
|
637
|
+
return Promise.resolve(window[postHookName](resData)).then(function (_await$window$postHoo) {
|
|
638
|
+
_exit = true;
|
|
639
|
+
return _await$window$postHoo;
|
|
640
|
+
});
|
|
639
641
|
}
|
|
640
642
|
}();
|
|
641
643
|
|
|
@@ -2757,6 +2759,8 @@ var LoginService = {
|
|
|
2757
2759
|
},
|
|
2758
2760
|
authenticate: function (details, stateCode) {
|
|
2759
2761
|
try {
|
|
2762
|
+
var _window, _window$globalConfigs;
|
|
2763
|
+
|
|
2760
2764
|
var params = new URLSearchParams();
|
|
2761
2765
|
Object.entries(details).forEach(function (_ref) {
|
|
2762
2766
|
var key = _ref[0],
|
|
@@ -2770,7 +2774,7 @@ var LoginService = {
|
|
|
2770
2774
|
method: "post",
|
|
2771
2775
|
params: params,
|
|
2772
2776
|
headers: {
|
|
2773
|
-
authorization: "Basic
|
|
2777
|
+
authorization: "Basic " + ((_window = window) === null || _window === void 0 ? void 0 : (_window$globalConfigs = _window.globalConfigs) === null || _window$globalConfigs === void 0 ? void 0 : _window$globalConfigs.getConfig("JWT_TOKEN")),
|
|
2774
2778
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
2775
2779
|
}
|
|
2776
2780
|
};
|
|
@@ -35444,6 +35448,8 @@ var Complaint = {
|
|
|
35444
35448
|
|
|
35445
35449
|
var UserService = {
|
|
35446
35450
|
authenticate: function authenticate(details) {
|
|
35451
|
+
var _window, _window$globalConfigs;
|
|
35452
|
+
|
|
35447
35453
|
var data = new URLSearchParams();
|
|
35448
35454
|
Object.entries(details).forEach(function (_ref) {
|
|
35449
35455
|
var key = _ref[0],
|
|
@@ -35457,7 +35463,7 @@ var UserService = {
|
|
|
35457
35463
|
url: Urls.Authenticate,
|
|
35458
35464
|
data: data,
|
|
35459
35465
|
headers: {
|
|
35460
|
-
authorization: "Basic
|
|
35466
|
+
authorization: "Basic " + ((_window = window) === null || _window === void 0 ? void 0 : (_window$globalConfigs = _window.globalConfigs) === null || _window$globalConfigs === void 0 ? void 0 : _window$globalConfigs.getConfig("JWT_TOKEN")),
|
|
35461
35467
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
35462
35468
|
}
|
|
35463
35469
|
});
|