srvx 0.9.0 → 0.9.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/_chunks/{_inherit-BoJ2sCH1.mjs → _inherit-B9eAGP_O.mjs} +1 -1
- package/dist/_chunks/{_url-DjsXG6si.mjs → _url-DF-_pEPn.mjs} +1 -1
- package/dist/_chunks/call-Bz_KtGHu.mjs +4 -0
- package/dist/_chunks/{call-Ca6cbyoe.mjs → call-gjL9LWHI.mjs} +1 -1
- package/dist/adapters/bun.mjs +2 -2
- package/dist/adapters/deno.mjs +2 -2
- package/dist/adapters/node.mjs +4 -5
- package/dist/cli.mjs +2 -2
- package/dist/static.mjs +2 -2
- package/package.json +2 -2
- package/dist/_chunks/call-Ccm3CgTV.mjs +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/_inherit.ts
|
|
2
2
|
function lazyInherit(target, source, sourceKey) {
|
|
3
|
-
for (const key of Object.getOwnPropertyNames(source)) {
|
|
3
|
+
for (const key of [...Object.getOwnPropertyNames(source), ...Object.getOwnPropertySymbols(source)]) {
|
|
4
4
|
if (key === "constructor") continue;
|
|
5
5
|
const targetDesc = Object.getOwnPropertyDescriptor(target, key);
|
|
6
6
|
const desc = Object.getOwnPropertyDescriptor(source, key);
|
package/dist/adapters/bun.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../_chunks/_inherit-
|
|
2
|
-
import { FastURL$1 as FastURL } from "../_chunks/_url-
|
|
1
|
+
import "../_chunks/_inherit-B9eAGP_O.mjs";
|
|
2
|
+
import { FastURL$1 as FastURL } from "../_chunks/_url-DF-_pEPn.mjs";
|
|
3
3
|
import { createWaitUntil, fmtURL, printListening, resolvePortAndHost, resolveTLSOptions } from "../_chunks/_utils-dqVgpDNy.mjs";
|
|
4
4
|
import { wrapFetch } from "../_chunks/_middleware-Z-W2xNSK.mjs";
|
|
5
5
|
|
package/dist/adapters/deno.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../_chunks/_inherit-
|
|
2
|
-
import { FastURL$1 as FastURL } from "../_chunks/_url-
|
|
1
|
+
import "../_chunks/_inherit-B9eAGP_O.mjs";
|
|
2
|
+
import { FastURL$1 as FastURL } from "../_chunks/_url-DF-_pEPn.mjs";
|
|
3
3
|
import { createWaitUntil, fmtURL, printListening, resolvePortAndHost, resolveTLSOptions } from "../_chunks/_utils-dqVgpDNy.mjs";
|
|
4
4
|
import { wrapFetch } from "../_chunks/_middleware-Z-W2xNSK.mjs";
|
|
5
5
|
|
package/dist/adapters/node.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { lazyInherit } from "../_chunks/_inherit-
|
|
2
|
-
import { FastURL$1 as FastURL } from "../_chunks/_url-
|
|
1
|
+
import { lazyInherit } from "../_chunks/_inherit-B9eAGP_O.mjs";
|
|
2
|
+
import { FastURL$1 as FastURL } from "../_chunks/_url-DF-_pEPn.mjs";
|
|
3
3
|
import { createWaitUntil, fmtURL, printListening, resolvePortAndHost, resolveTLSOptions } from "../_chunks/_utils-dqVgpDNy.mjs";
|
|
4
4
|
import { wrapFetch } from "../_chunks/_middleware-Z-W2xNSK.mjs";
|
|
5
5
|
import { errorPlugin } from "../_chunks/_plugins-DOhVIkXu.mjs";
|
|
6
|
-
import { NodeResponse, callNodeHandler } from "../_chunks/call-
|
|
6
|
+
import { NodeResponse, callNodeHandler } from "../_chunks/call-gjL9LWHI.mjs";
|
|
7
7
|
import nodeHTTP, { IncomingMessage, ServerResponse } from "node:http";
|
|
8
8
|
import { Duplex, Readable } from "node:stream";
|
|
9
9
|
import nodeHTTPS from "node:https";
|
|
@@ -146,8 +146,7 @@ const NodeRequestHeaders = /* @__PURE__ */ (() => {
|
|
|
146
146
|
for (let i = 0; i < len; i += 2) {
|
|
147
147
|
const key = rawHeaders[i];
|
|
148
148
|
if (key.charCodeAt(0) === 58) continue;
|
|
149
|
-
|
|
150
|
-
yield [key, value];
|
|
149
|
+
yield [key.toLowerCase(), rawHeaders[i + 1]];
|
|
151
150
|
}
|
|
152
151
|
}
|
|
153
152
|
entries() {
|
package/dist/cli.mjs
CHANGED
|
@@ -148,7 +148,7 @@ async function loadEntry(opts) {
|
|
|
148
148
|
const nodeHandler = listenHandler || (typeof mod.default === "function" ? mod.default : void 0);
|
|
149
149
|
if (nodeHandler) {
|
|
150
150
|
_legacyNode = true;
|
|
151
|
-
const { callNodeHandler } = await import("./_chunks/call-
|
|
151
|
+
const { callNodeHandler } = await import("./_chunks/call-Bz_KtGHu.mjs");
|
|
152
152
|
fetchHandler = (webReq) => callNodeHandler(nodeHandler, webReq);
|
|
153
153
|
}
|
|
154
154
|
}
|
|
@@ -229,7 +229,7 @@ async function interceptListen(cb) {
|
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
231
|
async function version() {
|
|
232
|
-
const version$1 = "0.
|
|
232
|
+
const version$1 = "0.9.1";
|
|
233
233
|
return `srvx ${version$1}\n${runtime()}`;
|
|
234
234
|
}
|
|
235
235
|
function runtime() {
|
package/dist/static.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./_chunks/_inherit-
|
|
2
|
-
import { FastURL$1 as FastURL } from "./_chunks/_url-
|
|
1
|
+
import "./_chunks/_inherit-B9eAGP_O.mjs";
|
|
2
|
+
import { FastURL$1 as FastURL } from "./_chunks/_url-DF-_pEPn.mjs";
|
|
3
3
|
import { extname, join, resolve } from "node:path";
|
|
4
4
|
import { createReadStream } from "node:fs";
|
|
5
5
|
import { readFile, stat } from "node:fs/promises";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "srvx",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
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",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"lint:fix": "automd && eslint . --fix && prettier -w .",
|
|
47
47
|
"prepack": "pnpm build",
|
|
48
48
|
"play:mkcert": "openssl req -x509 -newkey rsa:2048 -nodes -keyout server.key -out server.crt -days 365 -subj /CN=srvx.local",
|
|
49
|
-
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
|
|
49
|
+
"release": "pnpm test && pnpm build && changelogen --release && npm publish && git push --follow-tags",
|
|
50
50
|
"srvx": "./bin/srvx.mjs",
|
|
51
51
|
"test": "pnpm lint && pnpm test:types && vitest run --coverage",
|
|
52
52
|
"test:node-compat:deno": "deno run vitest test/node.test",
|