@xatlas/rainbow-core 1.6.1 → 1.6.2

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.
@@ -2110,8 +2110,8 @@ function file_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg)
2110
2110
 
2111
2111
  function file_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { file_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { file_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
2112
2112
 
2113
- var openDownload = function openDownload(apiBaseURL) {
2114
- window.open("".concat(apiBaseURL, "/api/download?_time='").concat(new Date().getTime()), '_blank');
2113
+ var openDownload = function openDownload(apiBaseURL, fileId) {
2114
+ window.open("/file/getfile/".concat(fileId, "?_time='").concat(new Date().getTime()), '_blank');
2115
2115
  };
2116
2116
 
2117
2117
  /* harmony default export */ var action_file = ({
@@ -2207,7 +2207,7 @@ var openDownload = function openDownload(apiBaseURL) {
2207
2207
  case 3:
2208
2208
  result = _context3.sent;
2209
2209
  hide();
2210
- if (!(result instanceof Error)) openDownload(_this3.apiBaseURL);
2210
+ if (!(result instanceof Error)) openDownload(_this3.apiBaseURL, result.file_id);
2211
2211
 
2212
2212
  case 6:
2213
2213
  case "end":
@@ -2281,7 +2281,7 @@ var openDownload = function openDownload(apiBaseURL) {
2281
2281
  case 3:
2282
2282
  result = _context5.sent;
2283
2283
  hide();
2284
- if (!(result instanceof Error)) openDownload(_this4.apiBaseURL);
2284
+ if (!(result instanceof Error)) openDownload(_this4.apiBaseURL, result.file_id);
2285
2285
 
2286
2286
  case 6:
2287
2287
  case "end":
@@ -2353,7 +2353,7 @@ var openDownload = function openDownload(apiBaseURL) {
2353
2353
  case 3:
2354
2354
  result = _context7.sent;
2355
2355
  hide();
2356
- if (!(result instanceof Error)) openDownload(_this5.apiBaseURL);
2356
+ if (!(result instanceof Error)) openDownload(_this5.apiBaseURL, result.file_id);
2357
2357
 
2358
2358
  case 6:
2359
2359
  case "end":