mslxdff 0.1.17 → 0.1.18

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/bin/mslxdff.js +4 -3
  2. package/package.json +1 -1
package/bin/mslxdff.js CHANGED
@@ -210,7 +210,8 @@ if (groupCmd && groupCmd !== "create") {
210
210
  const rows = results.sort((a, b) => (a.rank ?? 9) - (b.rank ?? 9));
211
211
  for (const r of rows) {
212
212
  const state = r.fail ? `fail ${r.fail}` : `ok ${r.ms}ms`;
213
- console.log(` ${String(r.id || "?")} ${r.url} ${state}`);
213
+ const label = r.id && r.id !== r.url ? r.id + " " : "";
214
+ console.log(` ${label}${r.url} ${state}`);
214
215
  }
215
216
  }
216
217
  } else {
@@ -296,8 +297,8 @@ async function probeHealth({ id, url } = {}) {
296
297
  const res = await fetch(`${base}/health`, { signal: AbortSignal.timeout(HEALTH_TIMEOUT_MS) });
297
298
  if (!res.ok) return { id, url: base, fail: `HTTP ${res.status}`, rank: 2 };
298
299
  return { id, url: base, ms: Date.now() - startedAt, rank: 0 };
299
- } catch {
300
- return { id, url: base, fail: "unreachable", rank: 2 };
300
+ } catch (err) {
301
+ return { id, url: base, fail: errMsg(err), rank: 2 };
301
302
  }
302
303
  }
303
304
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mslxdff",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "测试项目,请勿使用。",
5
5
  "type": "module",
6
6
  "bin": {