@vpdev2/metakyc 1.0.47 → 1.0.48

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
@@ -300,14 +300,12 @@ class Ea {
300
300
  const { baseUrl: a, apiKey: r, secretKey: n, tenantId: l, clientId: o } = t;
301
301
  if (!l && !o)
302
302
  throw new Error("Either tenantId or clientId must be provided.");
303
- const p = {
304
- "Content-Type": "application/json"
305
- };
306
- l != null && (p["Abp-TenantId"] = l.toString()), o && (p.ClientId = o);
303
+ const p = { apiKey: r, secretKey: n };
304
+ l != null && (p.tenantId = l), o && (p.clientId = o);
307
305
  const d = (await Xt.post(
308
306
  `${a.replace(/\/+$/, "")}/api/SdkSession/CreateToken`,
309
- { apiKey: r, secretKey: n },
310
- { headers: p }
307
+ p,
308
+ { headers: { "Content-Type": "application/json" } }
311
309
  )).data;
312
310
  if (!d.success)
313
311
  throw new Error(d.error || "Failed to create session token.");
@@ -6813,7 +6811,7 @@ function G(e, t) {
6813
6811
  const r = Sr.exec(a);
6814
6812
  return r ? t(r[1]) : e;
6815
6813
  }
6816
- const ri = "1.0.47", ai = Zt(null), qt = `metakyc-translations-${ri}-`, Cr = ({
6814
+ const ri = "1.0.48", ai = Zt(null), qt = `metakyc-translations-${ri}-`, Cr = ({
6817
6815
  locale: e,
6818
6816
  fetchTranslations: t,
6819
6817
  children: a