@fedify/cli 2.5.0-dev.2618 → 2.5.0-dev.2664

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.
@@ -116,7 +116,7 @@ function aggregateServer(servers) {
116
116
  };
117
117
  }
118
118
  function aggregateSignatureVerification(servers) {
119
- const values = servers.map((s) => s.signatureVerificationMs).filter((s) => s != null);
119
+ const values = servers.flatMap((s) => s.signatureVerificationMs == null ? [] : [s.signatureVerificationMs]);
120
120
  if (values.length !== servers.length) return null;
121
121
  const standards = /* @__PURE__ */ new Set();
122
122
  for (const value of values) for (const key of Object.keys(value.byStandard ?? {})) standards.add(key);
@@ -128,7 +128,7 @@ function aggregateSignatureVerification(servers) {
128
128
  };
129
129
  }
130
130
  function aggregateQueue(servers) {
131
- const values = servers.map((s) => s.queue).filter((q) => q != null);
131
+ const values = servers.flatMap((s) => s.queue == null ? [] : [s.queue]);
132
132
  if (values.length !== servers.length) return null;
133
133
  const drainMs = aggregatePartial(values.map((v) => v.drainMs));
134
134
  const depths = values.map((v) => v.depthMax);
@@ -176,7 +176,7 @@ function mergeMeasurements(measurements) {
176
176
  const total = measurements.reduce((sum, m) => sum + m.requests.total, 0);
177
177
  const ok = measurements.reduce((sum, m) => sum + m.requests.ok, 0);
178
178
  const histogram = mergeHistograms(measurements);
179
- const deliveryThroughputs = measurements.map((m) => m.deliveryThroughputPerSec).filter((value) => value != null);
179
+ const deliveryThroughputs = measurements.flatMap((m) => m.deliveryThroughputPerSec == null ? [] : [m.deliveryThroughputPerSec]);
180
180
  return {
181
181
  requests: {
182
182
  total,
package/dist/deno.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "temporal-polyfill";
2
2
  //#region deno.json
3
- var version = "2.5.0-dev.2618+6a7cb6bb";
3
+ var version = "2.5.0-dev.2664+4790a72e";
4
4
  //#endregion
5
5
  export { version };
@@ -478,7 +478,7 @@ const ActivityList = ({ entries }) => {
478
478
  timestamp: entry.timestamp.toString(),
479
479
  children: /* @__PURE__ */ jsx("small", { children: entry.timestamp.toLocaleString() })
480
480
  })]
481
- });
481
+ }, url.toString());
482
482
  }).reverse()
483
483
  });
484
484
  };
package/dist/inbox.js CHANGED
@@ -165,12 +165,11 @@ async function runInbox(command) {
165
165
  spinner.stop();
166
166
  const peersCnt = Object.keys(peers).length;
167
167
  spinner.start(`Sending Delete(Application) activities to the ${peersCnt} ${peersCnt === 1 ? "peer" : "peers"}...`);
168
- sendDeleteToPeers(server).then(() => {
168
+ sendDeleteToPeers(server).then(async () => {
169
169
  spinner.text = "Stopping server...";
170
- server.close().then(() => {
171
- spinner.succeed("Server stopped.");
172
- process.exit(0);
173
- });
170
+ await server.close();
171
+ spinner.succeed("Server stopped.");
172
+ process.exit(0);
174
173
  });
175
174
  });
176
175
  spinner.start();
package/dist/lookup.js CHANGED
@@ -248,9 +248,7 @@ function printLookupFailureHint(authLoader, error, options = {}) {
248
248
  case "recursive-private-address":
249
249
  printRecursivePrivateAddressHint();
250
250
  return;
251
- case "authorized-fetch":
252
- printError(message`It may be a private object. Try with ${optionNames(["-a", "--authorized-fetch"])}.`);
253
- return;
251
+ case "authorized-fetch": printError(message`It may be a private object. Try with ${optionNames(["-a", "--authorized-fetch"])}.`);
254
252
  }
255
253
  }
256
254
  function isSuppressibleRecursiveFailure(kind) {
@@ -340,8 +338,8 @@ function printRecursiveLookupFailure(failure, spinner, timeoutSeconds) {
340
338
  return;
341
339
  case "diagnostic":
342
340
  printError(message`${text(failure.hint.message)}`);
343
- return;
344
- case "none": return;
341
+ break;
342
+ case "none": break;
345
343
  }
346
344
  }
347
345
  /**
package/dist/nodeinfo.js CHANGED
@@ -256,11 +256,11 @@ async function runNodeInfo(command) {
256
256
  layout[next()] += colors.bold(colors.dim("Protocols:"));
257
257
  for (const protocol of nodeInfo.protocols) layout[next()] += ` ${protocol}`;
258
258
  }
259
- if (nodeInfo.services?.inbound?.length ?? false) {
259
+ if ((nodeInfo.services?.inbound?.length ?? 0) > 0) {
260
260
  layout[next()] += colors.bold(colors.dim("Inbound services:"));
261
261
  for (const service of nodeInfo.services?.inbound ?? []) layout[next()] += ` ${service}`;
262
262
  }
263
- if (nodeInfo.services?.outbound?.length ?? false) {
263
+ if ((nodeInfo.services?.outbound?.length ?? 0) > 0) {
264
264
  layout[next()] += colors.bold(colors.dim("Outbound services:"));
265
265
  for (const service of nodeInfo.services?.outbound ?? []) layout[next()] += ` ${service}`;
266
266
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/cli",
3
- "version": "2.5.0-dev.2618+6a7cb6bb",
3
+ "version": "2.5.0-dev.2664+4790a72e",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "README.md",
@@ -66,8 +66,8 @@
66
66
  "@inquirer/prompts": "^7.8.4",
67
67
  "@jimp/core": "^1.6.1",
68
68
  "@jimp/wasm-webp": "^1.6.1",
69
- "@logtape/file": "^2.2.0",
70
- "@logtape/logtape": "^2.2.0",
69
+ "@logtape/file": "2.4.2",
70
+ "@logtape/logtape": "2.4.2",
71
71
  "@poppanator/http-constants": "^1.1.1",
72
72
  "@resvg/resvg-wasm": "^2.6.2",
73
73
  "byte-encodings": "^1.0.11",
@@ -90,14 +90,14 @@
90
90
  "temporal-polyfill": "^1.0.1",
91
91
  "valibot": "^1.4.0",
92
92
  "yaml": "^2.9.0",
93
- "@fedify/fedify": "2.5.0-dev.2618+6a7cb6bb",
94
- "@fedify/relay": "2.5.0-dev.2618+6a7cb6bb",
95
- "@fedify/vocab-tools": "2.5.0-dev.2618+6a7cb6bb",
96
- "@fedify/sqlite": "2.5.0-dev.2618+6a7cb6bb",
97
- "@fedify/init": "2.5.0-dev.2618+6a7cb6bb",
98
- "@fedify/vocab": "2.5.0-dev.2618+6a7cb6bb",
99
- "@fedify/vocab-runtime": "2.5.0-dev.2618+6a7cb6bb",
100
- "@fedify/webfinger": "2.5.0-dev.2618+6a7cb6bb"
93
+ "@fedify/fedify": "2.5.0-dev.2664+4790a72e",
94
+ "@fedify/relay": "2.5.0-dev.2664+4790a72e",
95
+ "@fedify/sqlite": "2.5.0-dev.2664+4790a72e",
96
+ "@fedify/vocab": "2.5.0-dev.2664+4790a72e",
97
+ "@fedify/vocab-runtime": "2.5.0-dev.2664+4790a72e",
98
+ "@fedify/vocab-tools": "2.5.0-dev.2664+4790a72e",
99
+ "@fedify/webfinger": "2.5.0-dev.2664+4790a72e",
100
+ "@fedify/init": "2.5.0-dev.2664+4790a72e"
101
101
  },
102
102
  "devDependencies": {
103
103
  "@types/bun": "^1.2.23",