srvx 0.11.1 → 0.11.2

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/cli.mjs CHANGED
@@ -174,7 +174,7 @@ function getResponseFormat(res) {
174
174
  }
175
175
  const srvxMeta = {
176
176
  name: "srvx",
177
- version: "0.11.1",
177
+ version: "0.11.2",
178
178
  description: "Universal Server."
179
179
  };
180
180
  function usage(mainOpts) {
@@ -19,7 +19,7 @@ type RequestEvent = {
19
19
  * Tracing plugin that adds diagnostics channel tracing to middleware and fetch handlers.
20
20
  *
21
21
  * This plugin wraps all middleware and the fetch handler with tracing instrumentation,
22
- * allowing you to subscribe to `srvx.fetch` and `srvx.middleware` tracing channels.
22
+ * allowing you to subscribe to `srvx.request` and `srvx.middleware` tracing channels.
23
23
  *
24
24
  * @example
25
25
  * ```ts
package/dist/tracing.mjs CHANGED
@@ -3,7 +3,7 @@ function tracingPlugin(opts = {}) {
3
3
  const { tracingChannel } = globalThis.process?.getBuiltinModule?.("node:diagnostics_channel") || {};
4
4
  if (!tracingChannel) return;
5
5
  if (opts.fetch !== false) {
6
- const fetchChannel = tracingChannel("srvx.fetch");
6
+ const fetchChannel = tracingChannel("srvx.request");
7
7
  const originalFetch = server.options.fetch;
8
8
  server.options.fetch = (request) => {
9
9
  return fetchChannel.tracePromise(async () => await originalFetch(request), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "srvx",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "Universal Server.",
5
5
  "homepage": "https://srvx.h3.dev",
6
6
  "license": "MIT",