@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.
Files changed (2) hide show
  1. package/dist/cli.js +2 -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/cli/images/jobs`, {
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/cli/images/jobs/${jobId}?workspaceId=${encodeURIComponent(auth.workspaceId)}`, { headers: { Authorization: `Bearer ${auth.key}` } });
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zalify/cli",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Zalify CLI - command-line interface for Zalify",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",