nterminal 1.2.44 → 1.2.45

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.
@@ -12,7 +12,7 @@
12
12
  <link rel="icon" type="image/png" sizes="64x64" href="/icons/favicon-64.png" />
13
13
  <link rel="icon" type="image/png" sizes="96x96" href="/icons/favicon-96.png" />
14
14
  <title>NTerminal</title>
15
- <script type="module" crossorigin src="/assets/index-tpwfLyrQ.js"></script>
15
+ <script type="module" crossorigin src="/assets/index-YgFyqoXj.js"></script>
16
16
  <link rel="stylesheet" crossorigin href="/assets/index-DP_J1UQd.css">
17
17
  </head>
18
18
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nterminal",
3
- "version": "1.2.44",
3
+ "version": "1.2.45",
4
4
  "license": "GPL-3.0-only",
5
5
  "type": "module",
6
6
  "packageManager": "npm@10.9.7",
@@ -106,8 +106,22 @@ export NTERMINAL_PID_PATH="$PID_PATH"
106
106
  export NTERMINAL_MONITOR_PID_PATH="$MONITOR_PID_PATH"
107
107
  export NTERMINAL_LOG_PATH="$LOG_PATH"
108
108
 
109
+ health_host() {
110
+ case "$HOST" in
111
+ 0.0.0.0)
112
+ printf '127.0.0.1'
113
+ ;;
114
+ ::|\[::\])
115
+ printf '[::1]'
116
+ ;;
117
+ *)
118
+ printf '%s' "$HOST"
119
+ ;;
120
+ esac
121
+ }
122
+
109
123
  health_url() {
110
- printf 'http://%s:%s/api/auth/session' "$HOST" "$PORT"
124
+ printf 'http://%s:%s/api/auth/session' "$(health_host)" "$PORT"
111
125
  }
112
126
 
113
127
  public_url() {
@@ -617,7 +631,7 @@ cmd_start() {
617
631
  kill -TERM "$monitor_pid" 2>/dev/null || true
618
632
  fi
619
633
  rm -f "$PID_PATH" "$MONITOR_PID_PATH"
620
- echo "NTerminal $exit_hint. Last log lines:" >&2
634
+ echo "NTerminal $exit_hint. Health check: $(health_url). Last log lines:" >&2
621
635
  tail -n 40 "$LOG_PATH" >&2 || true
622
636
  return 1
623
637
  }
@@ -1 +0,0 @@
1
- import{j as a}from"./index-tpwfLyrQ.js";import{M as e,r as o}from"./index-Dw6YSaLh.js";function s({content:r}){return a.jsx(e,{remarkPlugins:[o],children:r})}export{s as default};