@overmap-ai/core 1.0.44-tiptap.3 → 1.0.44-tiptap.5

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.
@@ -6512,17 +6512,22 @@ var __publicField = (obj, key, value) => {
6512
6512
  let promise = cachedRequestPromises[requestCacheKey];
6513
6513
  let isFirstRequest = true;
6514
6514
  if (!promise) {
6515
- promise = this.enqueueRequest({
6516
- description: "Download file",
6517
- method: HttpMethod.GET,
6518
- url,
6519
- // If in development, we should assume the files are saved at localhost by the Django development server.
6520
- // Setting this to true will lead to localhost:8000 being prepended to the URL.
6521
- isExternalUrl: true,
6522
- isResponseBlob: true,
6523
- isAuthNeeded: false,
6524
- blockers: [expectedSha1],
6525
- blocks: [expectedSha1]
6515
+ promise = new Promise((resolve) => {
6516
+ void this.enqueueRequest({
6517
+ description: "Download file",
6518
+ method: HttpMethod.GET,
6519
+ url,
6520
+ // If in development, we should assume the files are saved at localhost by the Django development server.
6521
+ // Setting this to true will lead to localhost:8000 being prepended to the URL.
6522
+ isExternalUrl: true,
6523
+ isResponseBlob: true,
6524
+ isAuthNeeded: false,
6525
+ blockers: [expectedSha1],
6526
+ blocks: [expectedSha1]
6527
+ }).then((blob) => {
6528
+ const blobToFile = new File([blob], downloadedName ?? expectedSha1, { type: blob.type });
6529
+ resolve(blobToFile);
6530
+ });
6526
6531
  });
6527
6532
  cachedRequestPromises[requestCacheKey] = promise;
6528
6533
  } else {