@iankibetsh/shframework 4.2.4 → 4.2.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/dist/library.js +3 -2
- package/dist/library.mjs +3 -2
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -406,7 +406,7 @@ const axios = Axios__default["default"].create({
|
|
|
406
406
|
window.shAxionInstance = axios;
|
|
407
407
|
function doGet (endPoint, data,extraConfig) {
|
|
408
408
|
updateSession();
|
|
409
|
-
|
|
409
|
+
let config = {
|
|
410
410
|
headers: {
|
|
411
411
|
Authorization: 'Bearer ' + ShStorage.getItem('access_token')
|
|
412
412
|
}
|
|
@@ -416,7 +416,8 @@ function doGet (endPoint, data,extraConfig) {
|
|
|
416
416
|
}
|
|
417
417
|
return axios.get(endPoint, {
|
|
418
418
|
params: data,
|
|
419
|
-
crossOrigin: true
|
|
419
|
+
crossOrigin: true,
|
|
420
|
+
...config
|
|
420
421
|
})
|
|
421
422
|
}
|
|
422
423
|
function doPost (endPoint, data, extraConfig) {
|
package/dist/library.mjs
CHANGED
|
@@ -394,7 +394,7 @@ const axios = Axios.create({
|
|
|
394
394
|
window.shAxionInstance = axios;
|
|
395
395
|
function doGet (endPoint, data,extraConfig) {
|
|
396
396
|
updateSession();
|
|
397
|
-
|
|
397
|
+
let config = {
|
|
398
398
|
headers: {
|
|
399
399
|
Authorization: 'Bearer ' + ShStorage.getItem('access_token')
|
|
400
400
|
}
|
|
@@ -404,7 +404,8 @@ function doGet (endPoint, data,extraConfig) {
|
|
|
404
404
|
}
|
|
405
405
|
return axios.get(endPoint, {
|
|
406
406
|
params: data,
|
|
407
|
-
crossOrigin: true
|
|
407
|
+
crossOrigin: true,
|
|
408
|
+
...config
|
|
408
409
|
})
|
|
409
410
|
}
|
|
410
411
|
function doPost (endPoint, data, extraConfig) {
|