@gallop.software/studio 2.3.88 → 2.3.89
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-NLWtKEEw.js"></script>
|
|
15
15
|
</head>
|
|
16
16
|
<body>
|
|
17
17
|
<div id="root"></div>
|
package/dist/server/index.js
CHANGED
|
@@ -4300,8 +4300,8 @@ async function handleGenerateFeaturedImage(request) {
|
|
|
4300
4300
|
}
|
|
4301
4301
|
} catch {
|
|
4302
4302
|
}
|
|
4303
|
-
const outputPath = getPublicPath(`
|
|
4304
|
-
const relativePath = `public/
|
|
4303
|
+
const outputPath = getPublicPath(`screenshot.jpg`);
|
|
4304
|
+
const relativePath = `public/screenshot.jpg`;
|
|
4305
4305
|
sendEvent({
|
|
4306
4306
|
type: "start",
|
|
4307
4307
|
total: 4,
|
|
@@ -4363,7 +4363,7 @@ async function handleGenerateFeaturedImage(request) {
|
|
|
4363
4363
|
const width = metadata.width || 0;
|
|
4364
4364
|
const height = metadata.height || 0;
|
|
4365
4365
|
const meta = await loadMeta();
|
|
4366
|
-
const metaKey = `/
|
|
4366
|
+
const metaKey = `/screenshot.jpg`;
|
|
4367
4367
|
setMetaEntry(meta, metaKey, {
|
|
4368
4368
|
o: { w: width, h: height }
|
|
4369
4369
|
});
|
|
@@ -4373,7 +4373,7 @@ async function handleGenerateFeaturedImage(request) {
|
|
|
4373
4373
|
processed: 1,
|
|
4374
4374
|
errors: 0,
|
|
4375
4375
|
outputPath: relativePath,
|
|
4376
|
-
message: `
|
|
4376
|
+
message: `Screenshot saved to ${relativePath}`
|
|
4377
4377
|
});
|
|
4378
4378
|
} finally {
|
|
4379
4379
|
await browser.close();
|
|
@@ -4384,7 +4384,7 @@ async function handleGenerateFeaturedImage(request) {
|
|
|
4384
4384
|
const errorMessage = error instanceof Error ? error.message : "Unknown error";
|
|
4385
4385
|
sendEvent({
|
|
4386
4386
|
type: "error",
|
|
4387
|
-
message: `Failed to generate
|
|
4387
|
+
message: `Failed to generate screenshot: ${errorMessage}`
|
|
4388
4388
|
});
|
|
4389
4389
|
controller.close();
|
|
4390
4390
|
}
|
|
@@ -4439,8 +4439,8 @@ async function handleGetFeaturedImageOptions() {
|
|
|
4439
4439
|
}
|
|
4440
4440
|
async function handleCheckFeaturedImage() {
|
|
4441
4441
|
try {
|
|
4442
|
-
const expectedFilename = `
|
|
4443
|
-
const metaKey = `/
|
|
4442
|
+
const expectedFilename = `screenshot.jpg`;
|
|
4443
|
+
const metaKey = `/screenshot.jpg`;
|
|
4444
4444
|
const meta = await loadMeta();
|
|
4445
4445
|
const exists = metaKey in meta && !Array.isArray(meta[metaKey]);
|
|
4446
4446
|
return jsonResponse({
|