@midwayjs/mock 3.4.0-beta.9 → 3.4.3

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,6 +1,6 @@
1
- /// <reference types="socket.io-client" />
2
1
  /// <reference types="node" />
3
- export interface MidwaySocketIOClientOptions extends Partial<SocketIOClient.ConnectOpts> {
2
+ import type { ManagerOptions, SocketOptions, Socket } from 'socket.io-client';
3
+ export interface MidwaySocketIOClientOptions extends Partial<ManagerOptions & SocketOptions> {
4
4
  url?: string;
5
5
  protocol?: string;
6
6
  host?: string;
@@ -11,12 +11,12 @@ export declare class SocketIOWrapperClient {
11
11
  private readonly socket;
12
12
  constructor(socket: any);
13
13
  connect(): Promise<unknown>;
14
- getSocket(): SocketIOClient.Socket;
14
+ getSocket(): Socket<import("@socket.io/component-emitter").DefaultEventsMap, import("@socket.io/component-emitter").DefaultEventsMap>;
15
15
  send(eventName: string, ...args: any[]): void;
16
16
  on(eventName: string, handler: any): void;
17
- once(eventName: string, handler: any): SocketIOClient.Emitter;
18
- removeListener(event: string, fn?: any): SocketIOClient.Emitter;
19
- emit(eventName: string, ...args: any[]): SocketIOClient.Socket;
17
+ once(eventName: string, handler: any): Socket<import("@socket.io/component-emitter").DefaultEventsMap, import("@socket.io/component-emitter").DefaultEventsMap>;
18
+ removeListener(event: string, fn?: any): Socket<import("@socket.io/component-emitter").DefaultEventsMap, import("@socket.io/component-emitter").DefaultEventsMap>;
19
+ emit(eventName: string, ...args: any[]): Socket<import("@socket.io/component-emitter").DefaultEventsMap, import("@socket.io/component-emitter").DefaultEventsMap>;
20
20
  sendWithAck(eventName: string, ...args: any[]): Promise<unknown>;
21
21
  close(): void;
22
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/mock",
3
- "version": "3.4.0-beta.9",
3
+ "version": "3.4.3",
4
4
  "description": "create your test app from midway framework",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -27,18 +27,18 @@
27
27
  },
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
- "@midwayjs/core": "^3.4.0-beta.9",
31
- "@midwayjs/decorator": "^3.4.0-beta.9",
30
+ "@midwayjs/core": "^3.4.3",
31
+ "@midwayjs/decorator": "^3.4.1",
32
32
  "@midwayjs/logger": "^2.15.0",
33
33
  "@types/amqplib": "0.8.2",
34
34
  "amqplib": "0.10.0",
35
- "kafkajs": "1.16.0",
36
- "socket.io": "4.4.1",
37
- "socket.io-client": "4.4.1",
38
- "ws": "8.8.0"
35
+ "kafkajs": "2.1.0",
36
+ "socket.io": "4.5.1",
37
+ "socket.io-client": "4.5.1",
38
+ "ws": "8.8.1"
39
39
  },
40
40
  "dependencies": {
41
- "@midwayjs/async-hooks-context-manager": "^3.4.0-beta.9",
41
+ "@midwayjs/async-hooks-context-manager": "^3.4.3",
42
42
  "@types/supertest": "2.0.12",
43
43
  "fs-extra": "10.0.1",
44
44
  "js-yaml": "4.1.0",
@@ -50,5 +50,5 @@
50
50
  "type": "git",
51
51
  "url": "http://github.com/midwayjs/midway.git"
52
52
  },
53
- "gitHead": "41e82a0fba386c6ec42c2eefd1dff4795a81b389"
53
+ "gitHead": "0d79293f56d01a3ef3589e6a6ef53c582ac0c46f"
54
54
  }