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
|
-
|
|
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
|
},
|
package/dist/adapters/bun.mjs
CHANGED
|
@@ -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-
|
|
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
|
package/dist/adapters/deno.mjs
CHANGED
|
@@ -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-
|
|
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-
|
|
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
|
package/dist/adapters/node.mjs
CHANGED
|
@@ -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-
|
|
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
package/package.json
CHANGED