@midwayjs/socketio 3.1.2 → 3.1.7-alpha.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.
@@ -15,9 +15,4 @@ export declare type Application = IMidwaySocketIOApplication;
15
15
  export interface Context extends IMidwaySocketIOContext {
16
16
  }
17
17
  export declare type NextFunction = BaseNextFunction;
18
- declare module '@midwayjs/core/dist/interface' {
19
- interface MidwayConfig {
20
- socketIO?: IMidwaySocketIOConfigurationOptions;
21
- }
22
- }
23
18
  //# sourceMappingURL=interface.d.ts.map
package/index.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ import { IMidwaySocketIOConfigurationOptions } from './dist';
2
+ export * from './dist/index';
3
+
4
+ declare module '@midwayjs/core' {
5
+ interface MidwayConfig {
6
+ socketIO?: IMidwaySocketIOConfigurationOptions;
7
+ }
8
+ }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@midwayjs/socketio",
3
- "version": "3.1.2",
3
+ "version": "3.1.7-alpha.0",
4
4
  "description": "Midway Web Framework for socket.io",
5
5
  "main": "dist/index",
6
- "typings": "dist/index.d.ts",
6
+ "typings": "index.d.ts",
7
7
  "scripts": {
8
8
  "build": "tsc",
9
9
  "test": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand",
@@ -15,22 +15,23 @@
15
15
  "IoC",
16
16
  "ws",
17
17
  "scene",
18
- "socket"
18
+ "socket.io"
19
19
  ],
20
20
  "files": [
21
21
  "dist/**/*.js",
22
- "dist/**/*.d.ts"
22
+ "dist/**/*.d.ts",
23
+ "index.d.ts"
23
24
  ],
24
25
  "license": "MIT",
25
26
  "devDependencies": {
26
- "@midwayjs/decorator": "^3.0.10",
27
- "@midwayjs/mock": "^3.1.2",
27
+ "@midwayjs/decorator": "^3.1.6",
28
+ "@midwayjs/mock": "^3.1.7-alpha.0",
28
29
  "@types/socket.io-client": "1.4.36",
29
30
  "fs-extra": "10.0.1",
30
31
  "socket.io-client": "4.4.1"
31
32
  },
32
33
  "dependencies": {
33
- "@midwayjs/core": "^3.1.2",
34
+ "@midwayjs/core": "^3.1.7-alpha.0",
34
35
  "@midwayjs/logger": "^2.15.0",
35
36
  "socket.io": "4.4.1",
36
37
  "socket.io-redis": "^6.1.0"
@@ -43,5 +44,5 @@
43
44
  "engines": {
44
45
  "node": ">=12"
45
46
  },
46
- "gitHead": "4ff3aa892b76d016f0ea123c7f9520d054d5c96b"
47
+ "gitHead": "8cb6db25f7eb794d9c61aaf69a43ac6506a289b5"
47
48
  }