gearboxdownloadmodal 5.0.75 → 5.0.76

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.es.js CHANGED
@@ -4076,7 +4076,7 @@ async function Vt(e, t, n, r, o, i = "download", a) {
4076
4076
  d(m), A(m);
4077
4077
  }).catch((s) => {
4078
4078
  let m = s.response.data.error.msg;
4079
- c(m);
4079
+ c({ message: m });
4080
4080
  })) : e === "Flex" ? (r && await JA(
4081
4081
  {
4082
4082
  _id: t,
@@ -4092,26 +4092,26 @@ async function Vt(e, t, n, r, o, i = "download", a) {
4092
4092
  o
4093
4093
  ).then(async (s) => {
4094
4094
  if (s.message) {
4095
- c(s.message);
4095
+ c(s);
4096
4096
  return;
4097
4097
  }
4098
4098
  let { url: m } = s;
4099
4099
  d(m), A(m);
4100
4100
  }).catch((s) => {
4101
4101
  let m = s.response.data.error.msg;
4102
- c(m);
4102
+ c({ message: m });
4103
4103
  })) : e === "Import" ? YA(o, t, n).then((s) => {
4104
4104
  let m = s.url;
4105
4105
  d(m), A(m);
4106
4106
  }).catch((s) => {
4107
4107
  let m = s.response.data.error.msg;
4108
- c(m);
4108
+ c({ message: m });
4109
4109
  }) : e === "Ready" && jA(o, t, n).then((s) => {
4110
4110
  let m = s.url;
4111
4111
  d(m), A(m);
4112
4112
  }).catch((s) => {
4113
4113
  let m = s.response.data.error.msg;
4114
- c(m);
4114
+ c({ message: m });
4115
4115
  });
4116
4116
  });
4117
4117
  }
@@ -5337,13 +5337,13 @@ const ms = [
5337
5337
  ).then((R) => {
5338
5338
  V(!1);
5339
5339
  }).catch((R) => {
5340
- V(!1), m(R);
5340
+ V(!1), m(R.message, R);
5341
5341
  });
5342
5342
  }, Y = async () => {
5343
5343
  W(!0), Vt(c, d, o, h, s, "download", M).then((k) => {
5344
5344
  W(!1), x(!1);
5345
5345
  }).catch((k) => {
5346
- m(k);
5346
+ m(k.message, k);
5347
5347
  });
5348
5348
  }, X = async () => {
5349
5349
  g(!0);
@@ -5949,7 +5949,7 @@ const ys = ({
5949
5949
  const I = c + "/" + K;
5950
5950
  g = document.createElement("iframe"), g.setAttribute("src", I), g.style.display = "none", document.body.appendChild(g), g.click(), ee(!1), Lt("Multi downloaded completed successfully");
5951
5951
  } catch (p) {
5952
- ee(!1), A(p.response.data.error.msg), console.error(p);
5952
+ ee(!1), A(p.response.data.error.msg, p.response), console.error(p);
5953
5953
  }
5954
5954
  }, j = async () => {
5955
5955
  d.iosUrl, d.googleUrl, t && t.willSpendCredit ? (ne(!0), se("download"), P(!0)) : (P(!1), await O());