hey-pharmacist-ecommerce 1.1.6 → 1.1.7
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/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/Apis/wrapper.ts +6 -2
package/dist/index.js
CHANGED
|
@@ -6884,11 +6884,14 @@ globalAxios4__default.default.interceptors.request.use(async (config) => {
|
|
|
6884
6884
|
}
|
|
6885
6885
|
return config;
|
|
6886
6886
|
});
|
|
6887
|
-
var
|
|
6887
|
+
var abortController;
|
|
6888
|
+
if (typeof window !== "undefined") {
|
|
6889
|
+
abortController = new AbortController();
|
|
6890
|
+
}
|
|
6888
6891
|
var AXIOS_CONFIG = new Configuration({
|
|
6889
6892
|
basePath: BaseUrl,
|
|
6890
6893
|
baseOptions: {
|
|
6891
|
-
signal:
|
|
6894
|
+
signal: abortController?.signal,
|
|
6892
6895
|
timeout: 2e4
|
|
6893
6896
|
}
|
|
6894
6897
|
});
|