@metalabel/dfos-web-relay 0.13.3 → 0.13.4

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 +12 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1000,7 +1000,7 @@ import { Hono } from "hono";
1000
1000
  import { z } from "zod";
1001
1001
 
1002
1002
  // package.json
1003
- var version = "0.13.3";
1003
+ var version = "0.13.4";
1004
1004
 
1005
1005
  // src/auth.ts
1006
1006
  import {
@@ -1235,7 +1235,13 @@ var createRelay = async (options) => {
1235
1235
  c.res.headers.set("Access-Control-Allow-Headers", "Content-Type, Authorization");
1236
1236
  return;
1237
1237
  });
1238
- app.get("/.well-known/dfos-relay", (c) => {
1238
+ app.get("/.well-known/dfos-relay", async (c) => {
1239
+ let pendingOps = -1;
1240
+ try {
1241
+ pendingOps = await store.countUnsequenced();
1242
+ } catch {
1243
+ pendingOps = -1;
1244
+ }
1239
1245
  return c.json({
1240
1246
  did: relayDID,
1241
1247
  protocol: "dfos-web-relay",
@@ -1246,7 +1252,10 @@ var createRelay = async (options) => {
1246
1252
  content: contentEnabled,
1247
1253
  log: logEnabled
1248
1254
  },
1249
- profile: profileArtifactJws
1255
+ profile: profileArtifactJws,
1256
+ stats: {
1257
+ pendingOps
1258
+ }
1250
1259
  });
1251
1260
  });
1252
1261
  app.post(`${PROOF_BASE_PATH}/operations`, async (c) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metalabel/dfos-web-relay",
3
- "version": "0.13.3",
3
+ "version": "0.13.4",
4
4
  "type": "module",
5
5
  "description": "DFOS Web Relay — verifying HTTP relay for identity chains, content chains, and content blobs",
6
6
  "license": "MIT",
@@ -45,14 +45,14 @@
45
45
  "zod": "^4.4.3"
46
46
  },
47
47
  "peerDependencies": {
48
- "@metalabel/dfos-protocol": "^0.13.3"
48
+ "@metalabel/dfos-protocol": "^0.13.4"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/node": "^24.10.4",
52
52
  "tsup": "^8.5.1",
53
53
  "tsx": "^4.22.4",
54
54
  "vitest": "^4.1.8",
55
- "@metalabel/dfos-protocol": "0.13.3"
55
+ "@metalabel/dfos-protocol": "0.13.4"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "tsup",