@gallop.software/studio 2.3.55 → 2.3.56
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/client/index.html
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
12
12
|
}
|
|
13
13
|
</style>
|
|
14
|
-
<script type="module" crossorigin src="/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-CAoLmuAH.js"></script>
|
|
15
15
|
</head>
|
|
16
16
|
<body>
|
|
17
17
|
<div id="root"></div>
|
package/dist/server/index.js
CHANGED
|
@@ -1546,9 +1546,10 @@ async function handleDownloadStream(request) {
|
|
|
1546
1546
|
await saveMeta(meta);
|
|
1547
1547
|
if (operationId) clearCancelledOperation(operationId);
|
|
1548
1548
|
sendEvent({
|
|
1549
|
-
type: "
|
|
1549
|
+
type: "complete",
|
|
1550
1550
|
downloaded: downloaded.length,
|
|
1551
|
-
message: `Stopped. ${downloaded.length} image${downloaded.length !== 1 ? "s" : ""} downloaded
|
|
1551
|
+
message: `Stopped. ${downloaded.length} image${downloaded.length !== 1 ? "s" : ""} downloaded.`,
|
|
1552
|
+
cancelled: true
|
|
1552
1553
|
});
|
|
1553
1554
|
controller.close();
|
|
1554
1555
|
return;
|
|
@@ -1572,9 +1573,10 @@ async function handleDownloadStream(request) {
|
|
|
1572
1573
|
await saveMeta(meta);
|
|
1573
1574
|
if (operationId) clearCancelledOperation(operationId);
|
|
1574
1575
|
sendEvent({
|
|
1575
|
-
type: "
|
|
1576
|
+
type: "complete",
|
|
1576
1577
|
downloaded: downloaded.length,
|
|
1577
|
-
message: `Stopped. ${downloaded.length} image${downloaded.length !== 1 ? "s" : ""} downloaded
|
|
1578
|
+
message: `Stopped. ${downloaded.length} image${downloaded.length !== 1 ? "s" : ""} downloaded.`,
|
|
1579
|
+
cancelled: true
|
|
1578
1580
|
});
|
|
1579
1581
|
controller.close();
|
|
1580
1582
|
return;
|
|
@@ -1663,12 +1665,13 @@ async function handlePushUpdatesStream(request) {
|
|
|
1663
1665
|
controller.close();
|
|
1664
1666
|
return;
|
|
1665
1667
|
}
|
|
1666
|
-
const { paths } = await request.json();
|
|
1668
|
+
const { paths, operationId } = await request.json();
|
|
1667
1669
|
if (!paths || !Array.isArray(paths) || paths.length === 0) {
|
|
1668
1670
|
sendEvent({ type: "error", message: "No paths provided" });
|
|
1669
1671
|
controller.close();
|
|
1670
1672
|
return;
|
|
1671
1673
|
}
|
|
1674
|
+
const isCancelled = () => operationId ? isOperationCancelled(operationId) : false;
|
|
1672
1675
|
const s3 = new S3Client2({
|
|
1673
1676
|
region: "auto",
|
|
1674
1677
|
endpoint: `https://${accountId}.r2.cloudflarestorage.com`,
|
|
@@ -1683,6 +1686,13 @@ async function handlePushUpdatesStream(request) {
|
|
|
1683
1686
|
const total = paths.length;
|
|
1684
1687
|
sendEvent({ type: "start", total });
|
|
1685
1688
|
for (let i = 0; i < paths.length; i++) {
|
|
1689
|
+
if (isCancelled()) {
|
|
1690
|
+
await saveMeta(meta);
|
|
1691
|
+
if (operationId) clearCancelledOperation(operationId);
|
|
1692
|
+
sendEvent({ type: "complete", pushed: pushed.length, message: `Stopped. ${pushed.length} file${pushed.length !== 1 ? "s" : ""} pushed.`, cancelled: true });
|
|
1693
|
+
controller.close();
|
|
1694
|
+
return;
|
|
1695
|
+
}
|
|
1686
1696
|
const itemPath = paths[i];
|
|
1687
1697
|
const key = itemPath.startsWith("public/") ? "/" + itemPath.slice(7) : itemPath;
|
|
1688
1698
|
const entry = meta[key];
|