@gallop.software/studio 1.0.3 → 1.0.4

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.
@@ -1105,7 +1105,10 @@ async function handleSync(request) {
1105
1105
  const pushed = [];
1106
1106
  const errors = [];
1107
1107
  const urlsToPurge = [];
1108
- for (const imageKey of imageKeys) {
1108
+ for (let imageKey of imageKeys) {
1109
+ if (!imageKey.startsWith("/")) {
1110
+ imageKey = `/${imageKey}`;
1111
+ }
1109
1112
  const entry = getMetaEntry(meta, imageKey);
1110
1113
  if (!entry) {
1111
1114
  errors.push(`Image not found in meta: ${imageKey}. Run Scan first.`);
@@ -1206,7 +1209,10 @@ async function handleReprocess(request) {
1206
1209
  const processed = [];
1207
1210
  const errors = [];
1208
1211
  const urlsToPurge = [];
1209
- for (const imageKey of imageKeys) {
1212
+ for (let imageKey of imageKeys) {
1213
+ if (!imageKey.startsWith("/")) {
1214
+ imageKey = `/${imageKey}`;
1215
+ }
1210
1216
  try {
1211
1217
  let buffer;
1212
1218
  const entry = getMetaEntry(meta, imageKey);