srvx 0.11.12 → 0.11.13
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/_url.mjs +2 -1
- package/dist/cli.mjs +1 -1
- package/dist/log.d.mts +1 -1
- package/package.json +14 -14
package/dist/_chunks/_url.mjs
CHANGED
|
@@ -55,7 +55,8 @@ const FastURL = /* @__PURE__ */ (() => {
|
|
|
55
55
|
#searchParams;
|
|
56
56
|
#pos;
|
|
57
57
|
constructor(url) {
|
|
58
|
-
if (typeof url === "string") this.#href = url;
|
|
58
|
+
if (typeof url === "string") if (url[0] === "/") this.#href = url;
|
|
59
|
+
else this.#url = new NativeURL(url);
|
|
59
60
|
else if (_needsNormRE.test(url.pathname)) this.#url = new NativeURL(`${url.protocol || "http:"}//${url.host || "localhost"}${url.pathname}${url.search || ""}`);
|
|
60
61
|
else {
|
|
61
62
|
this.#protocol = url.protocol;
|
package/dist/cli.mjs
CHANGED
package/dist/log.d.mts
CHANGED
|
@@ -2,6 +2,6 @@ import { ServerMiddleware } from "./types.mjs";
|
|
|
2
2
|
|
|
3
3
|
//#region src/log.d.ts
|
|
4
4
|
interface LogOptions {}
|
|
5
|
-
declare const log: (
|
|
5
|
+
declare const log: (options?: LogOptions) => ServerMiddleware;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { LogOptions, log };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "srvx",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.13",
|
|
4
4
|
"description": "Universal Server.",
|
|
5
5
|
"homepage": "https://srvx.h3.dev",
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,38 +59,38 @@
|
|
|
59
59
|
"vitest": "vitest"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@cloudflare/workers-types": "^4.
|
|
63
|
-
"@hono/node-server": "^
|
|
62
|
+
"@cloudflare/workers-types": "^4.20260317.1",
|
|
63
|
+
"@hono/node-server": "^2.0.0-rc.1",
|
|
64
64
|
"@mitata/counters": "^0.0.8",
|
|
65
65
|
"@mjackson/node-fetch-server": "^0.7.0",
|
|
66
66
|
"@types/aws-lambda": "^8.10.161",
|
|
67
|
-
"@types/bun": "^1.3.
|
|
67
|
+
"@types/bun": "^1.3.11",
|
|
68
68
|
"@types/deno": "^2.5.0",
|
|
69
69
|
"@types/express": "^5.0.6",
|
|
70
70
|
"@types/node": "^25.5.0",
|
|
71
71
|
"@types/node-forge": "^1.3.14",
|
|
72
|
-
"@types/serviceworker": "^0.0.
|
|
73
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
74
|
-
"@vitest/coverage-v8": "^4.1.
|
|
72
|
+
"@types/serviceworker": "^0.0.194",
|
|
73
|
+
"@typescript/native-preview": "^7.0.0-dev.20260323.1",
|
|
74
|
+
"@vitest/coverage-v8": "^4.1.1",
|
|
75
75
|
"@whatwg-node/server": "^0.10.18",
|
|
76
76
|
"automd": "^0.4.3",
|
|
77
77
|
"changelogen": "^0.6.2",
|
|
78
78
|
"eslint-config-unjs": "^0.6.2",
|
|
79
79
|
"execa": "^9.6.1",
|
|
80
80
|
"express": "^5.2.1",
|
|
81
|
-
"fastify": "^5.8.
|
|
81
|
+
"fastify": "^5.8.4",
|
|
82
82
|
"get-port-please": "^3.2.0",
|
|
83
83
|
"mdbox": "^0.1.1",
|
|
84
84
|
"mitata": "^1.0.34",
|
|
85
85
|
"node-forge": "^1.3.3",
|
|
86
86
|
"obuild": "^0.4.32",
|
|
87
|
-
"oxfmt": "^0.
|
|
88
|
-
"oxlint": "^1.
|
|
89
|
-
"srvx-release": "npm:srvx@^0.11.
|
|
87
|
+
"oxfmt": "^0.41.0",
|
|
88
|
+
"oxlint": "^1.56.0",
|
|
89
|
+
"srvx-release": "npm:srvx@^0.11.12",
|
|
90
90
|
"tslib": "^2.8.1",
|
|
91
|
-
"typescript": "^
|
|
92
|
-
"undici": "^7.24.
|
|
93
|
-
"vitest": "^4.1.
|
|
91
|
+
"typescript": "^6.0.2",
|
|
92
|
+
"undici": "^7.24.5",
|
|
93
|
+
"vitest": "^4.1.1"
|
|
94
94
|
},
|
|
95
95
|
"resolutions": {
|
|
96
96
|
"srvx": "link:."
|