@midwayjs/socketio 3.9.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,19 +1,19 @@
1
1
  import * as SocketIO from 'socket.io';
2
2
  import { CommonMiddlewareUnion, ContextMiddlewareManager, IConfigurationOptions, IMidwayApplication, IMidwayContext, NextFunction as BaseNextFunction } from '@midwayjs/core';
3
- export declare type Application = IMidwayApplication<Context, {
3
+ export type Application = IMidwayApplication<Context, {
4
4
  use(fn: (socket: Context, fn: (err?: any) => void) => void): SocketIO.Namespace;
5
5
  useConnectionMiddleware: (middleware: CommonMiddlewareUnion<Context, NextFunction, undefined>) => void;
6
6
  getConnectionMiddleware: ContextMiddlewareManager<Context, NextFunction, undefined>;
7
7
  } & SocketIO.Server>;
8
- export declare type IMidwaySocketIOOptions = {
8
+ export type IMidwaySocketIOOptions = {
9
9
  port?: number;
10
10
  pubClient?: any;
11
11
  subClient?: any;
12
12
  } & Partial<SocketIO.ServerOptions> & IConfigurationOptions;
13
- export declare type Context = IMidwayContext<SocketIO.Socket & {
13
+ export type Context = IMidwayContext<SocketIO.Socket & {
14
14
  app: Application;
15
15
  }>;
16
- export declare type NextFunction = BaseNextFunction;
16
+ export type NextFunction = BaseNextFunction;
17
17
  declare module '@midwayjs/core/dist/interface' {
18
18
  interface MidwayConfig {
19
19
  socketIO?: IMidwaySocketIOOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/socketio",
3
- "version": "3.9.0",
3
+ "version": "3.10.0",
4
4
  "description": "Midway Web Framework for socket.io",
5
5
  "main": "dist/index",
6
6
  "typings": "index.d.ts",
@@ -24,14 +24,14 @@
24
24
  ],
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@midwayjs/mock": "^3.9.0",
28
- "fs-extra": "10.0.1",
29
- "socket.io-client": "4.5.3"
27
+ "@midwayjs/mock": "^3.10.0",
28
+ "fs-extra": "10.1.0",
29
+ "socket.io-client": "4.5.4"
30
30
  },
31
31
  "dependencies": {
32
- "@midwayjs/core": "^3.9.0",
32
+ "@midwayjs/core": "^3.10.0",
33
33
  "@midwayjs/logger": "^2.15.0",
34
- "socket.io": "4.5.3",
34
+ "socket.io": "4.5.4",
35
35
  "socket.io-redis": "^6.1.0"
36
36
  },
37
37
  "author": "Harry Chen <czy88840616@gmail.com>",
@@ -42,5 +42,5 @@
42
42
  "engines": {
43
43
  "node": ">=12"
44
44
  },
45
- "gitHead": "5f6603d2c9606fc6fc7ece71f956e89e394efeee"
45
+ "gitHead": "33d28f1a020963404488e866432916fd15c0952c"
46
46
  }