@zalify/cli 0.2.3 → 0.2.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.
Files changed (2) hide show
  1. package/dist/cli.js +4 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -11467,7 +11467,8 @@ async function whoami() {
11467
11467
  } else {
11468
11468
  console.log(`key ${config.key.slice(0, 16)}…`);
11469
11469
  }
11470
- console.log(`app ${config.appUrl}`);
11470
+ const slug = ws?.slug ?? config.workspaceSlug;
11471
+ console.log(`app ${slug ? `${config.appUrl}/store/${slug}` : config.appUrl}`);
11471
11472
  console.log(live ? "status ✓ key verified" : `status ! not verified — ${liveError}`);
11472
11473
  }
11473
11474
 
@@ -11528,8 +11529,9 @@ async function assetsPush(storeDir) {
11528
11529
  const json = await res.json().catch(() => ({}));
11529
11530
  if (!res.ok) {
11530
11531
  if (json.code === "UPGRADE_REQUIRED") {
11532
+ const billingUrl = config.workspaceSlug ? `${config.appUrl}/store/${config.workspaceSlug}/settings/billing` : `${config.appUrl} (Settings → Billing)`;
11531
11533
  throw new Error(`${json.error ?? "This feature requires a paid plan."}
11532
- ` + ` Upgrade this workspace at ${config.appUrl} (Settings → Billing).`);
11534
+ ` + ` Upgrade this workspace: ${billingUrl}`);
11533
11535
  }
11534
11536
  throw new Error(`${path9} ${res.status}: ${JSON.stringify(json)}`);
11535
11537
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zalify/cli",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Zalify CLI - command-line interface for Zalify",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",