@neat.is/core 0.4.28-dev.20260713 → 0.4.28-dev.20260714

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.
package/dist/neatd.js CHANGED
@@ -2,11 +2,11 @@
2
2
  import {
3
3
  reconcileDaemonRecordSync,
4
4
  startDaemon
5
- } from "./chunk-V2HUBS5J.js";
5
+ } from "./chunk-AOLXZWRU.js";
6
6
  import {
7
7
  listProjects,
8
8
  registryPath
9
- } from "./chunk-N7HEYLOF.js";
9
+ } from "./chunk-6HPRD53A.js";
10
10
  import {
11
11
  BindAuthorityError,
12
12
  __require
package/dist/server.cjs CHANGED
@@ -9012,9 +9012,11 @@ async function buildApi(opts) {
9012
9012
  trustProxy,
9013
9013
  publicRead
9014
9014
  });
9015
+ const requiresAuth = authToken !== void 0 && authToken.length > 0 && trustProxy !== true;
9015
9016
  app.get("/api/config", async () => ({
9016
9017
  publicRead: publicRead === true,
9017
- authProxy: trustProxy === true
9018
+ authProxy: trustProxy === true,
9019
+ requiresAuth
9018
9020
  }));
9019
9021
  const startedAt = opts.startedAt ?? Date.now();
9020
9022
  const registry = buildLegacyRegistry(opts);