srvx 0.9.3 → 0.9.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.
@@ -56,7 +56,8 @@ function createWaitUntil() {
56
56
  const promises = new Set();
57
57
  return {
58
58
  waitUntil: (promise) => {
59
- promises.add(promise.catch(console.error).finally(() => {
59
+ if (typeof promise?.then !== "function") return;
60
+ promises.add(Promise.resolve(promise).catch(console.error).finally(() => {
60
61
  promises.delete(promise);
61
62
  }));
62
63
  },
@@ -1,7 +1,7 @@
1
1
  import "../_chunks/_utils.cli-B2YzwlOv.mjs";
2
2
  import "../_chunks/_inherit-B9eAGP_O.mjs";
3
3
  import { FastURL$1 as FastURL } from "../_chunks/_url-DF-_pEPn.mjs";
4
- import { createWaitUntil, fmtURL, printListening, resolvePortAndHost, resolveTLSOptions } from "../_chunks/_utils-dqVgpDNy.mjs";
4
+ import { createWaitUntil, fmtURL, printListening, resolvePortAndHost, resolveTLSOptions } from "../_chunks/_utils-CjeNH3UU.mjs";
5
5
  import { gracefulShutdownPlugin, wrapFetch } from "../_chunks/_plugins-DBERsPAu.mjs";
6
6
 
7
7
  //#region src/adapters/bun.ts
@@ -1,7 +1,7 @@
1
1
  import "../_chunks/_utils.cli-B2YzwlOv.mjs";
2
2
  import "../_chunks/_inherit-B9eAGP_O.mjs";
3
3
  import { FastURL$1 as FastURL } from "../_chunks/_url-DF-_pEPn.mjs";
4
- import { createWaitUntil, fmtURL, printListening, resolvePortAndHost, resolveTLSOptions } from "../_chunks/_utils-dqVgpDNy.mjs";
4
+ import { createWaitUntil, fmtURL, printListening, resolvePortAndHost, resolveTLSOptions } from "../_chunks/_utils-CjeNH3UU.mjs";
5
5
  import { gracefulShutdownPlugin, wrapFetch } from "../_chunks/_plugins-DBERsPAu.mjs";
6
6
 
7
7
  //#region src/adapters/deno.ts
@@ -1,5 +1,5 @@
1
1
  import "../_chunks/_utils.cli-B2YzwlOv.mjs";
2
- import { createWaitUntil } from "../_chunks/_utils-dqVgpDNy.mjs";
2
+ import { createWaitUntil } from "../_chunks/_utils-CjeNH3UU.mjs";
3
3
  import { errorPlugin, wrapFetch } from "../_chunks/_plugins-DBERsPAu.mjs";
4
4
 
5
5
  //#region src/adapters/generic.ts
@@ -1,7 +1,7 @@
1
1
  import "../_chunks/_utils.cli-B2YzwlOv.mjs";
2
2
  import { lazyInherit } from "../_chunks/_inherit-B9eAGP_O.mjs";
3
3
  import { FastURL$1 as FastURL } from "../_chunks/_url-DF-_pEPn.mjs";
4
- import { createWaitUntil, fmtURL, printListening, resolvePortAndHost, resolveTLSOptions } from "../_chunks/_utils-dqVgpDNy.mjs";
4
+ import { createWaitUntil, fmtURL, printListening, resolvePortAndHost, resolveTLSOptions } from "../_chunks/_utils-CjeNH3UU.mjs";
5
5
  import { errorPlugin, gracefulShutdownPlugin, wrapFetch } from "../_chunks/_plugins-DBERsPAu.mjs";
6
6
  import { NodeResponse, callNodeHandler } from "../_chunks/call-BUTAdRs1.mjs";
7
7
  import nodeHTTP, { IncomingMessage, ServerResponse } from "node:http";
package/dist/cli.mjs CHANGED
@@ -217,7 +217,7 @@ async function interceptListen(cb) {
217
217
  };
218
218
  }
219
219
  async function version() {
220
- const version$1 = "0.9.3";
220
+ const version$1 = "0.9.4";
221
221
  return `srvx ${version$1}\n${runtime()}`;
222
222
  }
223
223
  function runtime() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "srvx",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "description": "Universal Server API based on web platform standards. Works seamlessly with Deno, Bun and Node.js.",
5
5
  "homepage": "https://srvx.h3.dev",
6
6
  "repository": "h3js/srvx",