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.mjs CHANGED
@@ -6874,11 +6874,14 @@ globalAxios4.interceptors.request.use(async (config) => {
6874
6874
  }
6875
6875
  return config;
6876
6876
  });
6877
- var ABORT_CONTROLLER = new AbortController();
6877
+ var abortController;
6878
+ if (typeof window !== "undefined") {
6879
+ abortController = new AbortController();
6880
+ }
6878
6881
  var AXIOS_CONFIG = new Configuration({
6879
6882
  basePath: BaseUrl,
6880
6883
  baseOptions: {
6881
- signal: ABORT_CONTROLLER.signal,
6884
+ signal: abortController?.signal,
6882
6885
  timeout: 2e4
6883
6886
  }
6884
6887
  });