@iankibetsh/shframework 5.2.1 → 5.2.2
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/dist/library.js +8 -4
- package/dist/library.mjs +8 -4
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -453,11 +453,15 @@ function doGet (endPoint, data,extraConfig) {
|
|
|
453
453
|
}
|
|
454
454
|
function doPost (endPoint, data, extraConfig) {
|
|
455
455
|
updateSession();
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
456
|
+
const accessToken = shStorage.getItem('access_token');
|
|
457
|
+
if(accessToken){
|
|
458
|
+
({
|
|
459
|
+
headers: {
|
|
460
|
+
Authorization: 'Bearer ' + shStorage.getItem('access_token')
|
|
461
|
+
}
|
|
462
|
+
});
|
|
459
463
|
}
|
|
460
|
-
|
|
464
|
+
|
|
461
465
|
if (extraConfig) {
|
|
462
466
|
Object.assign(config, extraConfig);
|
|
463
467
|
}
|
package/dist/library.mjs
CHANGED
|
@@ -441,11 +441,15 @@ function doGet (endPoint, data,extraConfig) {
|
|
|
441
441
|
}
|
|
442
442
|
function doPost (endPoint, data, extraConfig) {
|
|
443
443
|
updateSession();
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
444
|
+
const accessToken = shStorage.getItem('access_token');
|
|
445
|
+
if(accessToken){
|
|
446
|
+
({
|
|
447
|
+
headers: {
|
|
448
|
+
Authorization: 'Bearer ' + shStorage.getItem('access_token')
|
|
449
|
+
}
|
|
450
|
+
});
|
|
447
451
|
}
|
|
448
|
-
|
|
452
|
+
|
|
449
453
|
if (extraConfig) {
|
|
450
454
|
Object.assign(config, extraConfig);
|
|
451
455
|
}
|