@pisell/core 1.1.5 → 1.1.6

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.
@@ -38,13 +38,14 @@ export declare enum SocketStatus {
38
38
  /**
39
39
  * Socket消息格式
40
40
  */
41
- export interface SocketMessage<T = any> {
41
+ export interface SocketMessage {
42
42
  /** 事件类型 */
43
43
  type: string;
44
44
  /** 消息数据 */
45
- data?: T;
45
+ data?: any;
46
46
  /** 消息ID */
47
47
  id?: string;
48
+ event?: any;
48
49
  }
49
50
  /**
50
51
  * 心跳配置选项
package/package.json CHANGED
@@ -1,12 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/core",
3
- "version": "1.1.5",
4
- "scripts": {
5
- "build": "father build",
6
- "dev": "father dev",
7
- "build:types": "tsc --project tsconfig.types.json",
8
- "publish:types": "npm run build:types && cd types && cp ../types-package.json package.json && npm publish"
9
- },
3
+ "version": "1.1.6",
10
4
  "sideEffects": false,
11
5
  "main": "./lib/index.js",
12
6
  "module": "./es/index.js",
@@ -34,7 +28,8 @@
34
28
  "dva-core": "^2.0.4",
35
29
  "js-md5": "^0.8.3",
36
30
  "axios": "^1.7.2",
37
- "@aws-sdk/client-s3": "^3.456.0"
31
+ "@aws-sdk/client-s3": "^3.456.0",
32
+ "dexie": "^4.2.1"
38
33
  },
39
34
  "files": [
40
35
  "es",
@@ -44,5 +39,11 @@
44
39
  ],
45
40
  "publishConfig": {
46
41
  "access": "public"
42
+ },
43
+ "scripts": {
44
+ "build": "father build",
45
+ "dev": "father dev",
46
+ "build:types": "tsc --project tsconfig.types.json",
47
+ "publish:types": "npm run build:types && cd types && cp ../types-package.json package.json && npm publish"
47
48
  }
48
49
  }