@gallop.software/studio 1.2.4 → 1.2.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.
@@ -359,6 +359,8 @@ async function handleList(request) {
359
359
  const cdnIndex = _optionalChain([originalEntry, 'optionalAccess', _8 => _8.c]);
360
360
  const cdnBaseUrl = cdnIndex !== void 0 ? cdnUrls[cdnIndex] : void 0;
361
361
  const thumbnailUrl = cdnBaseUrl ? `${cdnBaseUrl}${thumb.path}` : thumb.path;
362
+ const isPushedToCloud = cdnIndex !== void 0;
363
+ const isRemote = isPushedToCloud && cdnBaseUrl !== r2PublicUrl;
362
364
  if (imagesSubPath === "") {
363
365
  const slashIndex = thumbRelative.indexOf("/");
364
366
  if (slashIndex === -1) {
@@ -369,7 +371,10 @@ async function handleList(request) {
369
371
  type: "file",
370
372
  thumbnail: thumbnailUrl,
371
373
  hasThumbnail: false,
372
- isProtected: true
374
+ isProtected: true,
375
+ cdnPushed: isPushedToCloud,
376
+ cdnBaseUrl,
377
+ isRemote
373
378
  });
374
379
  } else {
375
380
  const folderName = thumbRelative.slice(0, slashIndex);
@@ -400,7 +405,10 @@ async function handleList(request) {
400
405
  type: "file",
401
406
  thumbnail: thumbnailUrl,
402
407
  hasThumbnail: false,
403
- isProtected: true
408
+ isProtected: true,
409
+ cdnPushed: isPushedToCloud,
410
+ cdnBaseUrl,
411
+ isRemote
404
412
  });
405
413
  } else {
406
414
  const folderName = remaining.slice(0, slashIndex);