@vercube/ws 0.0.24 → 0.0.26
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.mjs +3 -4
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -36,7 +36,7 @@ let WebsocketTypes;
|
|
|
36
36
|
})(WebsocketTypes || (WebsocketTypes = {}));
|
|
37
37
|
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region \0@oxc-project+runtime@0.
|
|
39
|
+
//#region \0@oxc-project+runtime@0.94.0/helpers/decorate.js
|
|
40
40
|
function __decorate(decorators, target, key, desc) {
|
|
41
41
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
42
42
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -149,7 +149,7 @@ var WebsocketService = class {
|
|
|
149
149
|
* @returns {void}
|
|
150
150
|
*/
|
|
151
151
|
initialize() {
|
|
152
|
-
const
|
|
152
|
+
const serverPlugin = plugin(defineHooks({
|
|
153
153
|
upgrade: async (request) => {
|
|
154
154
|
const url = new URL(request.url);
|
|
155
155
|
const namespace = url.pathname;
|
|
@@ -187,8 +187,7 @@ var WebsocketService = class {
|
|
|
187
187
|
error: async (peer, error) => {
|
|
188
188
|
this.gLogger?.error("WebsocketService::initialize", `Error: ${error.message}`, { peer });
|
|
189
189
|
}
|
|
190
|
-
});
|
|
191
|
-
const serverPlugin = plugin(hooks);
|
|
190
|
+
}));
|
|
192
191
|
this.gHttpServer.addPlugin(serverPlugin);
|
|
193
192
|
}
|
|
194
193
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercube/ws",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26",
|
|
4
4
|
"description": "Websocket module for Vercube framework",
|
|
5
5
|
"repository": "@vercube/ws",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"README.md"
|
|
19
19
|
],
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"zod": "4.1.
|
|
21
|
+
"zod": "4.1.12"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"crossws": "0.4.1",
|
|
25
|
-
"srvx": "0.8.
|
|
26
|
-
"@vercube/
|
|
27
|
-
"@vercube/logger": "0.0.
|
|
28
|
-
"@vercube/
|
|
25
|
+
"srvx": "0.8.15",
|
|
26
|
+
"@vercube/di": "0.0.26",
|
|
27
|
+
"@vercube/logger": "0.0.26",
|
|
28
|
+
"@vercube/core": "0.0.26"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|