ugcinc 4.5.75 → 4.5.76

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.
Files changed (2) hide show
  1. package/dist/render.js +2 -2
  2. package/package.json +1 -1
package/dist/render.js CHANGED
@@ -234,9 +234,9 @@ async function getRenderJobStatus(jobId) {
234
234
  if (data.status === 'error' || !response.ok) {
235
235
  return { ok: false, code: response.status, message: data.error ?? data.message ?? 'Failed to get job status' };
236
236
  }
237
- // Fallback to download endpoint if Modal didn't provide a URL
237
+ // If completed but no download_url, something went wrong — don't silently construct a broken fallback URL
238
238
  if (data.status === 'completed' && !data.download_url) {
239
- data.download_url = `${RENDER_BASE_URL}/download?job_id=${jobId}`;
239
+ return { ok: false, code: 500, message: `CRITICAL: Render job ${jobId} completed but has no download_url. This means the Vercel Blob upload failed silently.` };
240
240
  }
241
241
  return { ok: true, code: 200, message: "Job status retrieved", data };
242
242
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "4.5.75",
3
+ "version": "4.5.76",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",