@wendongfly/myhi 1.0.62 → 1.0.64

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/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -365,4 +365,4 @@ Content-Length: `+T+`\r
365
365
  `),main.generate(c,{small:!0},v=>console.log(v.split(`
366
366
  `).map(m=>" "+m).join(`
367
367
  `))),console.log(" \u63D0\u793A: myhi help \u67E5\u770B\u6240\u6709\u547D\u4EE4"),console.log(`\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501
368
- `)}const MAX_PORT_RETRIES=10;let _portRetries=0;function tryListen(){httpServer.listen(PORT,HOST)}httpServer.on("listening",showStartupInfo),httpServer.on("error",S=>{S.code==="EADDRINUSE"&&!PORT_EXPLICIT&&_portRetries<MAX_PORT_RETRIES?(_portRetries++,PORT++,console.log(`[myhi] \u7AEF\u53E3 ${PORT-1} \u88AB\u5360\u7528\uFF0C\u5C1D\u8BD5 ${PORT}...`),httpServer.close(),tryListen()):(console.error(`[myhi] \u542F\u52A8\u5931\u8D25: ${S.message}`),process.exit(1))}),tryListen();
368
+ `)}function tryListen(){httpServer.listen(PORT,HOST)}httpServer.on("listening",showStartupInfo);const MAX_PORT_RETRIES=10;let _portRetries=0;httpServer.on("error",S=>{S.code==="EADDRINUSE"?_portRetries<MAX_PORT_RETRIES?(_portRetries++,PORT++,console.log(`[myhi] \u7AEF\u53E3 ${PORT-1} \u88AB\u5176\u4ED6\u7A0B\u5E8F\u5360\u7528\uFF0C\u5C1D\u8BD5 ${PORT}...`),httpServer.close(),tryListen()):(console.error(`[myhi] \u8FDE\u7EED ${MAX_PORT_RETRIES} \u4E2A\u7AEF\u53E3\u90FD\u88AB\u5360\u7528\uFF0C\u542F\u52A8\u5931\u8D25`),process.exit(1)):(console.error(`[myhi] \u542F\u52A8\u5931\u8D25: ${S.message}`),process.exit(1))}),tryListen();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wendongfly/myhi",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
4
4
  "description": "Web-based terminal sharing with chat UI — control your terminal from phone via LAN/Tailscale",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",