viza 1.7.34 → 1.7.36

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.
@@ -127,15 +127,19 @@ export async function dispatchIntentAndWait(input, opts = {}) {
127
127
  showDispatchBanner(input, meta, opts.status);
128
128
  const spinner = startSpinner("Waiting for dispatch session");
129
129
  const handle = await dispatchIntent(input, mode);
130
- // Fast update check (kept before wait/log so the hint is not lost)
131
- const updateInfo = await checkForCliUpdateSoft().catch(() => null);
132
- if (updateInfo?.hasUpdate) {
130
+ // Non-blocking update check (utility only)
131
+ void checkForCliUpdateSoft()
132
+ .then((updateInfo) => {
133
+ if (!updateInfo?.hasUpdate)
134
+ return;
133
135
  const title = chalk.gray.bold("\n⬆️ Update available");
134
136
  const ver = chalk.yellow(`${updateInfo.current} → ${updateInfo.latest}`);
135
137
  const cmd = chalk.cyan("npm i -g viza");
136
- console.log(`\n${title} ${ver}`);
137
- console.log(chalk.dim(" Run:") + " " + cmd + "\n");
138
- }
138
+ console.log(`\n${title} ${ver}\n${chalk.dim(" Run:")} ${cmd}\n`);
139
+ })
140
+ .catch(() => {
141
+ // best-effort only — never affect dispatch flow
142
+ });
139
143
  try {
140
144
  const result = await handle.wait();
141
145
  stopSpinner(spinner, result.status === "success" ? "✅ Done" : "❌ Failed");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viza",
3
- "version": "1.7.34",
3
+ "version": "1.7.36",
4
4
  "type": "module",
5
5
  "description": "Viza unified command line interface",
6
6
  "bin": {
@@ -17,7 +17,7 @@
17
17
  "release:full": "rm -rf dist && npx npm-check-updates -u && npm install && git add package.json package-lock.json && git commit -m 'chore(deps): auto update dependencies before release' || echo 'No changes' && node versioning.js && npm login && npm publish --tag latest --access public && git push"
18
18
  },
19
19
  "dependencies": {
20
- "@vizamodo/viza-dispatcher": "^1.5.24",
20
+ "@vizamodo/viza-dispatcher": "^1.5.25",
21
21
  "adm-zip": "^0.5.16",
22
22
  "chalk": "^5.6.2",
23
23
  "clipboardy": "^5.3.1",