@matchain/matchid-sdk-react 0.1.44-alpha.3 → 0.1.44-alpha.4
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/{chunk-7PMDBILL.mjs → chunk-24AMOG53.mjs} +2 -2
- package/dist/{chunk-YYO4X2NB.mjs → chunk-RAX4G26O.mjs} +6 -6
- package/dist/chunk-RAX4G26O.mjs.map +1 -0
- package/dist/components/index.js +5 -5
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/api/index.js +5 -5
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +2 -2
- package/dist/hooks/index.js +5 -5
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-YYO4X2NB.mjs.map +0 -1
- /package/dist/{chunk-7PMDBILL.mjs.map → chunk-24AMOG53.mjs.map} +0 -0
package/dist/components/index.js
CHANGED
|
@@ -1536,13 +1536,13 @@ var retryRequest = async (config) => {
|
|
|
1536
1536
|
try {
|
|
1537
1537
|
const endpoints = getEndpoints();
|
|
1538
1538
|
const token = getToken();
|
|
1539
|
-
|
|
1540
|
-
|
|
1539
|
+
retryInstance.defaults.baseURL = `${endpoints.back}`;
|
|
1540
|
+
retryInstance.defaults.headers.common["Appid"] = getAppid();
|
|
1541
1541
|
if (token) {
|
|
1542
|
-
|
|
1542
|
+
retryInstance.defaults.headers.common["Authorization"] = token;
|
|
1543
1543
|
}
|
|
1544
|
-
|
|
1545
|
-
const { data } = await
|
|
1544
|
+
retryInstance.defaults.headers.common["Accept-Language"] = getLocale();
|
|
1545
|
+
const { data } = await retryInstance.request(config);
|
|
1546
1546
|
matchlog_default.log("api", data);
|
|
1547
1547
|
if (data.code == 401001) {
|
|
1548
1548
|
localStore.getState().logout();
|