@gallop.software/studio 1.2.5 → 1.2.7
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/{StudioUI-NRYRARU4.mjs → StudioUI-TZB57JJT.mjs} +31 -11
- package/dist/StudioUI-TZB57JJT.mjs.map +1 -0
- package/dist/{StudioUI-4MNDHVMZ.js → StudioUI-XQRJTVYU.js} +31 -11
- package/dist/StudioUI-XQRJTVYU.js.map +1 -0
- package/dist/handlers/index.js +20 -16
- package/dist/handlers/index.js.map +1 -1
- package/dist/handlers/index.mjs +6 -2
- package/dist/handlers/index.mjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/StudioUI-4MNDHVMZ.js.map +0 -1
- package/dist/StudioUI-NRYRARU4.mjs.map +0 -1
package/dist/handlers/index.mjs
CHANGED
|
@@ -361,6 +361,8 @@ async function handleList(request) {
|
|
|
361
361
|
const thumbnailUrl = cdnBaseUrl ? `${cdnBaseUrl}${thumb.path}` : thumb.path;
|
|
362
362
|
const isPushedToCloud = cdnIndex !== void 0;
|
|
363
363
|
const isRemote = isPushedToCloud && cdnBaseUrl !== r2PublicUrl;
|
|
364
|
+
const thumbDims = originalEntry?.[thumb.size];
|
|
365
|
+
const dimensions = thumbDims ? { width: thumbDims.w, height: thumbDims.h } : void 0;
|
|
364
366
|
if (imagesSubPath === "") {
|
|
365
367
|
const slashIndex = thumbRelative.indexOf("/");
|
|
366
368
|
if (slashIndex === -1) {
|
|
@@ -374,7 +376,8 @@ async function handleList(request) {
|
|
|
374
376
|
isProtected: true,
|
|
375
377
|
cdnPushed: isPushedToCloud,
|
|
376
378
|
cdnBaseUrl,
|
|
377
|
-
isRemote
|
|
379
|
+
isRemote,
|
|
380
|
+
dimensions
|
|
378
381
|
});
|
|
379
382
|
} else {
|
|
380
383
|
const folderName = thumbRelative.slice(0, slashIndex);
|
|
@@ -408,7 +411,8 @@ async function handleList(request) {
|
|
|
408
411
|
isProtected: true,
|
|
409
412
|
cdnPushed: isPushedToCloud,
|
|
410
413
|
cdnBaseUrl,
|
|
411
|
-
isRemote
|
|
414
|
+
isRemote,
|
|
415
|
+
dimensions
|
|
412
416
|
});
|
|
413
417
|
} else {
|
|
414
418
|
const folderName = remaining.slice(0, slashIndex);
|