mslxdff 0.1.18 → 0.1.19

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 +1 -1
  2. package/package.json +1 -1
package/bin/mslxdff.js CHANGED
@@ -20,6 +20,7 @@ const logs = { appendCall, appendError, appendEvent };
20
20
 
21
21
  const args = process.argv.slice(2);
22
22
  const VERSION = JSON.parse(readFileSync(join(dirname(fileURLToPath(import.meta.url)), "..", "package.json"), "utf8")).version;
23
+ const HEALTH_TIMEOUT_MS = 4000;
23
24
 
24
25
  if (args.includes("-help") || args.includes("--help") || args.includes("-h")) {
25
26
  printHelp();
@@ -288,7 +289,6 @@ function errMsg(err) { return String(err?.message || err); }
288
289
 
289
290
  // Probe a member's health endpoint concurrently (v1/health preferred,
290
291
  // falling back to /health). Returns { id, url, ms, rank } or { id, url, fail }.
291
- const HEALTH_TIMEOUT_MS = 4000;
292
292
  async function probeHealth({ id, url } = {}) {
293
293
  if (!url) return { id, url, fail: "no url", rank: 3 };
294
294
  const base = String(url).replace(/\/+$/, "");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mslxdff",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "测试项目,请勿使用。",
5
5
  "type": "module",
6
6
  "bin": {