nydus-client 4.0.0 → 4.0.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/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface RouteInfo {
|
|
|
33
33
|
params: Record<string, string>;
|
|
34
34
|
splats: string[];
|
|
35
35
|
}
|
|
36
|
-
export
|
|
36
|
+
export type RouteHandler = (routeInfo: RouteInfo, data: any) => void;
|
|
37
37
|
interface NydusEvents extends EventMap {
|
|
38
38
|
/** Fired when the connection succeeds. */
|
|
39
39
|
connect: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nydus-client",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "WebSocket client library for the nydus protocol, a simple RPC/PubSub protocol.",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@types/backo2": "^1.0.1",
|
|
49
49
|
"@types/chai": "^4.2.14",
|
|
50
50
|
"@types/engine.io-client": "^3.1.4",
|
|
51
|
-
"@types/mocha": "^
|
|
51
|
+
"@types/mocha": "^10.0.1",
|
|
52
52
|
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
|
53
53
|
"@typescript-eslint/parser": "^5.27.0",
|
|
54
54
|
"chai": "^4.2.0",
|