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

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/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  routeSpanToProject,
3
3
  startDaemon
4
- } from "./chunk-V2HUBS5J.js";
4
+ } from "./chunk-AOLXZWRU.js";
5
5
  import {
6
6
  ProjectNameCollisionError,
7
7
  addProject,
@@ -37,7 +37,7 @@ import {
37
37
  thresholdForEdgeType,
38
38
  touchLastSeen,
39
39
  writeAtomically
40
- } from "./chunk-N7HEYLOF.js";
40
+ } from "./chunk-6HPRD53A.js";
41
41
  import {
42
42
  startOtelGrpcReceiver
43
43
  } from "./chunk-I72HTUOG.js";
package/dist/neatd.cjs CHANGED
@@ -9373,9 +9373,11 @@ async function buildApi(opts) {
9373
9373
  trustProxy,
9374
9374
  publicRead
9375
9375
  });
9376
+ const requiresAuth = authToken !== void 0 && authToken.length > 0 && trustProxy !== true;
9376
9377
  app.get("/api/config", async () => ({
9377
9378
  publicRead: publicRead === true,
9378
- authProxy: trustProxy === true
9379
+ authProxy: trustProxy === true,
9380
+ requiresAuth
9379
9381
  }));
9380
9382
  const startedAt = opts.startedAt ?? Date.now();
9381
9383
  const registry = buildLegacyRegistry(opts);