@zalify/cli 0.6.0 → 0.6.1
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/cli.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -11889,7 +11889,7 @@ async function saveProduced(imagesDir, indexPath, index, file2, asset) {
|
|
|
11889
11889
|
return true;
|
|
11890
11890
|
}
|
|
11891
11891
|
async function submitJob(auth, manifest, entries) {
|
|
11892
|
-
const res = await fetch(`${auth.appUrl}/api/
|
|
11892
|
+
const res = await fetch(`${auth.appUrl}/api/images/jobs`, {
|
|
11893
11893
|
method: "POST",
|
|
11894
11894
|
headers: {
|
|
11895
11895
|
"Content-Type": "application/json",
|
|
@@ -11918,7 +11918,7 @@ async function pollJob(auth, jobId, files, imagesDir, indexPath, index, counters
|
|
|
11918
11918
|
const reported = new Set;
|
|
11919
11919
|
const deadline = Date.now() + POLL_TIMEOUT_MS;
|
|
11920
11920
|
while (true) {
|
|
11921
|
-
const res = await fetch(`${auth.appUrl}/api/
|
|
11921
|
+
const res = await fetch(`${auth.appUrl}/api/images/jobs/${jobId}?workspaceId=${encodeURIComponent(auth.workspaceId)}`, { headers: { Authorization: `Bearer ${auth.key}` } });
|
|
11922
11922
|
const json = await res.json().catch(() => ({}));
|
|
11923
11923
|
if (!res.ok)
|
|
11924
11924
|
throw apiError(auth, `images/jobs/${jobId}`, res.status, json);
|