h3 1.11.0 → 1.11.1
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/index.cjs +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2097,7 +2097,8 @@ function websocketOptions(evResolver, appOptions) {
|
|
|
2097
2097
|
return {
|
|
2098
2098
|
...appOptions.websocket,
|
|
2099
2099
|
async resolve(info) {
|
|
2100
|
-
const
|
|
2100
|
+
const { pathname } = ufo.parseURL(info.url || "/");
|
|
2101
|
+
const resolved = await evResolver(pathname);
|
|
2101
2102
|
return resolved?.handler?.__websocket__ || {};
|
|
2102
2103
|
}
|
|
2103
2104
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -2090,7 +2090,8 @@ function websocketOptions(evResolver, appOptions) {
|
|
|
2090
2090
|
return {
|
|
2091
2091
|
...appOptions.websocket,
|
|
2092
2092
|
async resolve(info) {
|
|
2093
|
-
const
|
|
2093
|
+
const { pathname } = parseURL(info.url || "/");
|
|
2094
|
+
const resolved = await evResolver(pathname);
|
|
2094
2095
|
return resolved?.handler?.__websocket__ || {};
|
|
2095
2096
|
}
|
|
2096
2097
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "h3",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"description": "Minimal H(TTP) framework built for high performance and portability.",
|
|
5
5
|
"repository": "unjs/h3",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"cookie-es": "^1.0.0",
|
|
24
|
-
"crossws": "^0.2.
|
|
24
|
+
"crossws": "^0.2.2",
|
|
25
25
|
"defu": "^6.1.4",
|
|
26
26
|
"destr": "^2.0.3",
|
|
27
27
|
"iron-webcrypto": "^1.0.0",
|