impaktapps-ui-builder 0.0.381 → 0.0.382

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.
@@ -8314,13 +8314,12 @@ const downloadFile$1 = (obj) => {
8314
8314
  URL.revokeObjectURL(url);
8315
8315
  document.body.removeChild(link);
8316
8316
  };
8317
- const clickDownloadLink = (response2, service2) => {
8318
- const user = JSON.parse(localStorage.getItem("user"));
8319
- let url = `${service2.defaults.baseURL}/${response2.path}?Authorization=Bearer%20${user.token}`;
8317
+ const doDownload = (response2, service2) => {
8318
+ let url = `${service2.defaults.baseURL}/${response2.path}`;
8320
8319
  if (response2 == null ? void 0 : response2.params) {
8321
8320
  const keysArray = Object.keys(response2 == null ? void 0 : response2.params);
8322
8321
  keysArray.map((e, i) => {
8323
- url = url + `&${e}=${response2 == null ? void 0 : response2.params[e]}`;
8322
+ url = url + `${i === 0 ? "?" : "&"}${e}=${response2 == null ? void 0 : response2.params[e]}`;
8324
8323
  });
8325
8324
  }
8326
8325
  const link = document.createElement("a");
@@ -8597,7 +8596,7 @@ var service = (funcParams) => {
8597
8596
  dynamicData: funcParams.dynamicData,
8598
8597
  userValue: funcParams.userValue,
8599
8598
  service: funcParams.service,
8600
- serviceHolder: { downloadFile: downloadFile$1, download: clickDownloadLink },
8599
+ serviceHolder: { downloadFile: downloadFile$1, download: doDownload },
8601
8600
  eventGroups
8602
8601
  };
8603
8602
  return {
@@ -8744,7 +8743,7 @@ var service = (funcParams) => {
8744
8743
  }
8745
8744
  },
8746
8745
  downloadFile: downloadFile$1,
8747
- download: clickDownloadLink
8746
+ download: doDownload
8748
8747
  };
8749
8748
  };
8750
8749
  var leaderBoard = {