@midwayjs/ws 3.8.0 → 3.10.0

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.
@@ -1,18 +1,18 @@
1
1
  import * as WebSocket from 'ws';
2
2
  import { CommonMiddlewareUnion, ContextMiddlewareManager, IConfigurationOptions, IMidwayApplication, IMidwayContext, NextFunction as BaseNextFunction } from '@midwayjs/core';
3
- export declare type IMidwayWSApplication = IMidwayApplication<IMidwayWSContext, {
3
+ export type IMidwayWSApplication = IMidwayApplication<IMidwayWSContext, {
4
4
  useConnectionMiddleware: (middleware: CommonMiddlewareUnion<Context, NextFunction, undefined>) => void;
5
5
  getConnectionMiddleware: ContextMiddlewareManager<Context, NextFunction, undefined>;
6
6
  }> & WebSocket.Server;
7
- export declare type IMidwayWSConfigurationOptions = {
7
+ export type IMidwayWSConfigurationOptions = {
8
8
  pubClient?: any;
9
9
  subClient?: any;
10
10
  } & Partial<WebSocket.ServerOptions> & IConfigurationOptions;
11
- export declare type IMidwayWSContext = IMidwayContext<WebSocket & {
11
+ export type IMidwayWSContext = IMidwayContext<WebSocket & {
12
12
  app: IMidwayWSApplication;
13
13
  }>;
14
- export declare type Application = IMidwayWSApplication;
15
- export declare type NextFunction = BaseNextFunction;
14
+ export type Application = IMidwayWSApplication;
15
+ export type NextFunction = BaseNextFunction;
16
16
  export interface Context extends IMidwayWSContext {
17
17
  }
18
18
  //# sourceMappingURL=interface.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/ws",
3
- "version": "3.8.0",
3
+ "version": "3.10.0",
4
4
  "description": "Midway Web Framework for ws",
5
5
  "main": "dist/index",
6
6
  "typings": "index.d.ts",
@@ -23,14 +23,14 @@
23
23
  ],
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@midwayjs/mock": "^3.8.0",
27
- "@types/ws": "8.5.3",
28
- "fs-extra": "10.0.1"
26
+ "@midwayjs/mock": "^3.10.0",
27
+ "@types/ws": "8.5.4",
28
+ "fs-extra": "10.1.0"
29
29
  },
30
30
  "dependencies": {
31
- "@midwayjs/core": "^3.8.0",
31
+ "@midwayjs/core": "^3.10.0",
32
32
  "@midwayjs/logger": "^2.15.0",
33
- "ws": "8.10.0"
33
+ "ws": "8.12.0"
34
34
  },
35
35
  "author": "Harry Chen <czy88840616@gmail.com>",
36
36
  "repository": {
@@ -40,5 +40,5 @@
40
40
  "engines": {
41
41
  "node": ">=12"
42
42
  },
43
- "gitHead": "5c640c7182923587139f9f9c0aecf50585798e1e"
43
+ "gitHead": "33d28f1a020963404488e866432916fd15c0952c"
44
44
  }