mikser-io 9.26.0 → 9.26.1

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/package.json +1 -1
  2. package/src/plugins/api.js +14 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mikser-io",
3
- "version": "9.26.0",
3
+ "version": "9.26.1",
4
4
  "description": "<p align=\"center\"> <img src=\"mikser-lockup-stacked.svg\" alt=\"mikser\" width=\"198\" /> </p>",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -1062,10 +1062,20 @@ export function api(options = {}) {
1062
1062
  // (allowRemote), so we keep the REMOTE OPEN warning in the
1063
1063
  // log. streaming:true — the `subscribe` op holds an open SSE
1064
1064
  // stream, so a facade must not buffer this route.
1065
- const reachability = ep.token ? 'token' : (ep.allowRemote ? 'public' : 'loopback')
1066
- const authLabel = ep.token
1067
- ? 'token'
1068
- : (ep.allowRemote ? 'public, REMOTE OPEN' : 'loopback-only')
1065
+ //
1066
+ // reachabilityOf rather than a local ternary: `auth` and `token`
1067
+ // both mean gated, and one helper decides for every plugin that
1068
+ // registers a route (ADR-0012) webdav and mcp call it too. The
1069
+ // value is not just the log bracket: it lands on runtime.routes,
1070
+ // where 'loopback' tells a facade not to proxy, so reading it off
1071
+ // `token` alone hides an auth-gated endpoint from a generated
1072
+ // vhost while the boot log agrees that it is unreachable.
1073
+ const reachability = reachabilityOf(ep)
1074
+ const authLabel = ep.auth
1075
+ ? (verifier?.name ?? 'auth')
1076
+ : ep.token
1077
+ ? 'token'
1078
+ : (ep.allowRemote ? 'public, REMOTE OPEN' : 'loopback-only')
1069
1079
  registerRoute({
1070
1080
  path: `${base}/${name}`,
1071
1081
  plugin: 'api',