@vpdev2/metakyc 1.0.45 → 1.0.46

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 CHANGED
@@ -207,7 +207,7 @@ class Li {
207
207
  }
208
208
  }), this.axiosInstance.interceptors.request.use(
209
209
  (a) => {
210
- if (a.headers["Abp-TenantId"] = this.config.tenantId.toString(), this.config.getAccessToken) {
210
+ if (this.config.tenantId != null && (a.headers["Abp-TenantId"] = this.config.tenantId.toString()), this.config.clientId && (a.headers.ClientId = this.config.clientId), this.config.getAccessToken) {
211
211
  const r = this.config.getAccessToken();
212
212
  r && (a.headers.Authorization = `Bearer ${r}`);
213
213
  } else this.config.apiKey && (a.headers.ApiKey = this.config.apiKey, a.headers["X-API-KEY"] = this.config.apiKey);
@@ -6794,7 +6794,7 @@ function G(e, t) {
6794
6794
  const r = Sr.exec(a);
6795
6795
  return r ? t(r[1]) : e;
6796
6796
  }
6797
- const ii = "1.0.45", ri = Xt(null), qt = `metakyc-translations-${ii}-`, Cr = ({
6797
+ const ii = "1.0.46", ri = Xt(null), qt = `metakyc-translations-${ii}-`, Cr = ({
6798
6798
  locale: e,
6799
6799
  fetchTranslations: t,
6800
6800
  children: a