@shimotsuki/core 3.0.31 → 3.0.33

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.
package/dist/index.d.ts CHANGED
@@ -643,7 +643,8 @@ declare class WrapperSocialGameClient extends SocialGameClient {
643
643
  ignore: (route: string) => boolean;
644
644
  constructor(name: string, opts: Partial<SocialGameClientOption>, eventResponsePairs: Partial<AllEventResponsePairs>, clientOption?: ExtendedClientOption);
645
645
  destroy(): void;
646
- GameRequest<U>(route: string, req: BinaryWriter, res: MessageFns<U>, { forwardReq, forwardResp }?: AudienceOptions): Promise<U>;
646
+ GameRequest<T extends string>(route: T, req: BinaryWriter, res: MessageFns<any>, options?: AudienceOptions): Promise<any>;
647
+ GameRequest<T extends string, U>(route: T, req: BinaryWriter, res: MessageFns<U>, options?: AudienceOptions): Promise<U>;
647
648
  subscribe<T>(route: string, respType: MessageFns<T>, fn?: (data: T) => void): this;
648
649
  }
649
650
 
package/package.json CHANGED
@@ -1,54 +1,54 @@
1
- {
2
- "name": "@shimotsuki/core",
3
- "version": "3.0.31",
4
- "description": "",
5
- "license": "MIT",
6
- "main": "dist/shimotsuki_core.js",
7
- "types": "dist/index.d.ts",
8
- "repository": "https://gitee.com/shimotsuki_yami/cat-core",
9
- "author": "shimotsuki <youcunzhou2383@shengtian.com>",
10
- "scripts": {
11
- "build:dev": "cross-env BUILD=development rollup -c",
12
- "build:prod": "cross-env BUILD=production rollup -c"
13
- },
14
- "devDependencies": {
15
- "@babel/core": "^7.26.8",
16
- "@babel/plugin-transform-runtime": "^7.27.4",
17
- "@babel/preset-env": "^7.26.8",
18
- "@babel/runtime": "^7.27.6",
19
- "@rollup/plugin-babel": "^6.0.4",
20
- "@rollup/plugin-typescript": "^12.1.2",
21
- "api": "git+ssh://git@gitlab.stnts.com:sparklab/gameapi.git",
22
- "cross-env": "^10.0.0",
23
- "minigame-api-typings": "^3.8.12",
24
- "rollup-plugin-delete": "^2.1.0",
25
- "rollup-plugin-typescript2": "^0.36.0",
26
- "tslib": "^2.8.1",
27
- "typescript": "^5.7.3"
28
- },
29
- "type": "module",
30
- "dependencies": {
31
- "@babel/runtime-corejs3": "^7.27.6",
32
- "@bufbuild/protobuf": "^2.2.5",
33
- "@rollup/plugin-commonjs": "^26.0.1",
34
- "@rollup/plugin-node-resolve": "^15.2.3",
35
- "@shimotsuki/mobx": "^1.0.1",
36
- "core-js": "^3.41.0",
37
- "crypto-es": "^2.1.0",
38
- "eventemitter3": "^5.0.1",
39
- "pitayaclient": "git+ssh://git@gitlab.stnts.com/sparklab/pitaya-client.git#ts-proto",
40
- "rollup": "^4.18.1",
41
- "rollup-plugin-copy": "^3.5.0",
42
- "rollup-plugin-dts": "^6.1.1",
43
- "rollup-plugin-terser": "^7.0.2",
44
- "sgc": "git+ssh://git@gitlab.stnts.com/sparklab/social-gaming-client.git#ts-proto"
45
- },
46
- "files": [
47
- "dist",
48
- "package.json",
49
- "./temp/tsconfig.cocos.json",
50
- "./temp/declarations",
51
- "tsconfig.json",
52
- "LICENSE"
53
- ]
54
- }
1
+ {
2
+ "name": "@shimotsuki/core",
3
+ "version": "3.0.33",
4
+ "description": "",
5
+ "license": "MIT",
6
+ "main": "dist/shimotsuki_core.js",
7
+ "types": "dist/index.d.ts",
8
+ "repository": "https://gitee.com/shimotsuki_yami/cat-core",
9
+ "author": "shimotsuki <youcunzhou2383@shengtian.com>",
10
+ "scripts": {
11
+ "build:dev": "cross-env BUILD=development rollup -c",
12
+ "build:prod": "cross-env BUILD=production rollup -c"
13
+ },
14
+ "devDependencies": {
15
+ "@babel/core": "^7.26.8",
16
+ "@babel/plugin-transform-runtime": "^7.27.4",
17
+ "@babel/preset-env": "^7.26.8",
18
+ "@babel/runtime": "^7.27.6",
19
+ "@rollup/plugin-babel": "^6.0.4",
20
+ "@rollup/plugin-typescript": "^12.1.2",
21
+ "api": "git+ssh://git@gitlab.stnts.com:sparklab/gameapi.git",
22
+ "cross-env": "^10.0.0",
23
+ "minigame-api-typings": "^3.8.12",
24
+ "rollup-plugin-delete": "^2.1.0",
25
+ "rollup-plugin-typescript2": "^0.36.0",
26
+ "tslib": "^2.8.1",
27
+ "typescript": "^5.7.3"
28
+ },
29
+ "type": "module",
30
+ "dependencies": {
31
+ "@babel/runtime-corejs3": "^7.27.6",
32
+ "@bufbuild/protobuf": "^2.2.5",
33
+ "@rollup/plugin-commonjs": "^26.0.1",
34
+ "@rollup/plugin-node-resolve": "^15.2.3",
35
+ "@shimotsuki/mobx": "^1.0.1",
36
+ "core-js": "^3.41.0",
37
+ "crypto-es": "^2.1.0",
38
+ "eventemitter3": "^5.0.1",
39
+ "pitayaclient": "git+ssh://git@gitlab.stnts.com/sparklab/pitaya-client.git#ts-proto",
40
+ "rollup": "^4.18.1",
41
+ "rollup-plugin-copy": "^3.5.0",
42
+ "rollup-plugin-dts": "^6.1.1",
43
+ "rollup-plugin-terser": "^7.0.2",
44
+ "sgc": "git+ssh://git@gitlab.stnts.com/sparklab/social-gaming-client.git#ts-proto"
45
+ },
46
+ "files": [
47
+ "dist",
48
+ "package.json",
49
+ "./temp/tsconfig.cocos.json",
50
+ "./temp/declarations",
51
+ "tsconfig.json",
52
+ "LICENSE"
53
+ ]
54
+ }
@@ -1,3 +1,3 @@
1
- declare module "cc/userland/macro" {
2
-
3
- }
1
+ declare module "cc/userland/macro" {
2
+
3
+ }
@@ -1,8 +1,8 @@
1
-
2
- /// <reference path="C:\ProgramData\cocos\editors\Creator\3.8.4\resources\resources\3d\engine\bin\.declarations\cc.d.ts"/>
3
-
4
- /**
5
- * @deprecated Global variable `cc` was dropped since 3.0. Use ES6 module syntax to import Cocos Creator APIs.
6
- */
7
- declare const cc: never;
1
+
2
+ /// <reference path="C:\ProgramData\cocos\editors\Creator\3.8.4\resources\resources\3d\engine\bin\.declarations\cc.d.ts"/>
3
+
4
+ /**
5
+ * @deprecated Global variable `cc` was dropped since 3.0. Use ES6 module syntax to import Cocos Creator APIs.
6
+ */
7
+ declare const cc: never;
8
8
 
@@ -1,180 +1,180 @@
1
- declare module 'cc/env'{
2
- /**
3
- * Running in Web platform
4
- */
5
- export const HTML5: boolean;
6
-
7
- /**
8
- * Running in native platform (mobile app, desktop app, or simulator).
9
- */
10
- export const NATIVE: boolean;
11
-
12
- /**
13
- * Running in ANDROID platform
14
- */
15
- export const ANDROID: boolean;
16
-
17
- /**
18
- * Running in IOS platform
19
- */
20
- export const IOS: boolean;
21
-
22
- /**
23
- * Running in MAC platform
24
- */
25
- export const MAC: boolean;
26
-
27
- /**
28
- * Running in WINDOWS platform
29
- */
30
- export const WINDOWS: boolean;
31
-
32
- /**
33
- * Running in LINUX platform
34
- */
35
- export const LINUX: boolean;
36
-
37
- /**
38
- * Running in OHOS platform
39
- */
40
- export const OHOS: boolean;
41
-
42
- /**
43
- * Running in OPEN_HARMONY platform
44
- */
45
- export const OPEN_HARMONY: boolean;
46
-
47
- /**
48
- * Running in the Wechat's mini game.
49
- */
50
- export const WECHAT: boolean;
51
-
52
- /**
53
- * Running in the Wechat's mini program.
54
- */
55
- export const WECHAT_MINI_PROGRAM: boolean;
56
-
57
- /**
58
- * Running in the baidu's mini game.
59
- */
60
- export const BAIDU: boolean;
61
-
62
- /**
63
- * Running in the xiaomi's quick game.
64
- */
65
- export const XIAOMI: boolean;
66
-
67
- /**
68
- * Running in the alipay's mini game.
69
- */
70
- export const ALIPAY: boolean;
71
-
72
- /**
73
- * Running in the taobao creative app.
74
- */
75
- export const TAOBAO: boolean;
76
-
77
- /**
78
- * Running in the taobao mini game.
79
- */
80
- export const TAOBAO_MINIGAME: boolean;
81
-
82
- /**
83
- * Running in the ByteDance's mini game.
84
- */
85
- export const BYTEDANCE: boolean;
86
-
87
- /**
88
- * Running in the oppo's quick game.
89
- */
90
- export const OPPO: boolean;
91
-
92
- /**
93
- * Running in the vivo's quick game.
94
- */
95
- export const VIVO: boolean;
96
-
97
- /**
98
- * Running in the huawei's quick game.
99
- */
100
- export const HUAWEI: boolean;
101
-
102
- /**
103
- * Running in the cocosplay.
104
- */
105
- export const COCOSPLAY: boolean;
106
-
107
- /**
108
- * Running in the qtt's quick game.
109
- */
110
- export const QTT: boolean;
111
-
112
- /**
113
- * Running in the linksure's quick game.
114
- */
115
- export const LINKSURE: boolean;
116
-
117
- /**
118
- * Running in the editor.
119
- */
120
- export const EDITOR: boolean;
121
-
122
- /**
123
- * Run in editor but not in editor preview.
124
- */
125
- export const EDITOR_NOT_IN_PREVIEW: boolean;
126
-
127
- /**
128
- * Preview in browser or simulator.
129
- */
130
- export const PREVIEW: boolean;
131
-
132
- /**
133
- * Running in published project.
134
- */
135
- export const BUILD: boolean;
136
-
137
- /**
138
- * Running in the engine's unit test.
139
- */
140
- export const TEST: boolean;
141
-
142
- /**
143
- * Running debug mode.
144
- */
145
- export const DEBUG: boolean;
146
-
147
- /**
148
- * Running in the editor or preview.
149
- */
150
- export const DEV: boolean;
151
-
152
- /**
153
- * Running in mini game.
154
- */
155
- export const MINIGAME: boolean;
156
-
157
- /**
158
- * Running in runtime based environment.
159
- */
160
- export const RUNTIME_BASED: boolean;
161
-
162
- /**
163
- * Support JIT.
164
- */
165
- export const SUPPORT_JIT: boolean;
166
-
167
- /**
168
- * Running in environment where using JSB as the JavaScript interface binding scheme.
169
- */
170
- export const JSB: boolean;
171
-
172
- /**
173
- * The network access mode.
174
- * - 0 Client
175
- * - 1 ListenServer
176
- * - 2 HostServer
177
- */
178
- export const NET_MODE: number;
179
-
180
- }
1
+ declare module 'cc/env'{
2
+ /**
3
+ * Running in Web platform
4
+ */
5
+ export const HTML5: boolean;
6
+
7
+ /**
8
+ * Running in native platform (mobile app, desktop app, or simulator).
9
+ */
10
+ export const NATIVE: boolean;
11
+
12
+ /**
13
+ * Running in ANDROID platform
14
+ */
15
+ export const ANDROID: boolean;
16
+
17
+ /**
18
+ * Running in IOS platform
19
+ */
20
+ export const IOS: boolean;
21
+
22
+ /**
23
+ * Running in MAC platform
24
+ */
25
+ export const MAC: boolean;
26
+
27
+ /**
28
+ * Running in WINDOWS platform
29
+ */
30
+ export const WINDOWS: boolean;
31
+
32
+ /**
33
+ * Running in LINUX platform
34
+ */
35
+ export const LINUX: boolean;
36
+
37
+ /**
38
+ * Running in OHOS platform
39
+ */
40
+ export const OHOS: boolean;
41
+
42
+ /**
43
+ * Running in OPEN_HARMONY platform
44
+ */
45
+ export const OPEN_HARMONY: boolean;
46
+
47
+ /**
48
+ * Running in the Wechat's mini game.
49
+ */
50
+ export const WECHAT: boolean;
51
+
52
+ /**
53
+ * Running in the Wechat's mini program.
54
+ */
55
+ export const WECHAT_MINI_PROGRAM: boolean;
56
+
57
+ /**
58
+ * Running in the baidu's mini game.
59
+ */
60
+ export const BAIDU: boolean;
61
+
62
+ /**
63
+ * Running in the xiaomi's quick game.
64
+ */
65
+ export const XIAOMI: boolean;
66
+
67
+ /**
68
+ * Running in the alipay's mini game.
69
+ */
70
+ export const ALIPAY: boolean;
71
+
72
+ /**
73
+ * Running in the taobao creative app.
74
+ */
75
+ export const TAOBAO: boolean;
76
+
77
+ /**
78
+ * Running in the taobao mini game.
79
+ */
80
+ export const TAOBAO_MINIGAME: boolean;
81
+
82
+ /**
83
+ * Running in the ByteDance's mini game.
84
+ */
85
+ export const BYTEDANCE: boolean;
86
+
87
+ /**
88
+ * Running in the oppo's quick game.
89
+ */
90
+ export const OPPO: boolean;
91
+
92
+ /**
93
+ * Running in the vivo's quick game.
94
+ */
95
+ export const VIVO: boolean;
96
+
97
+ /**
98
+ * Running in the huawei's quick game.
99
+ */
100
+ export const HUAWEI: boolean;
101
+
102
+ /**
103
+ * Running in the cocosplay.
104
+ */
105
+ export const COCOSPLAY: boolean;
106
+
107
+ /**
108
+ * Running in the qtt's quick game.
109
+ */
110
+ export const QTT: boolean;
111
+
112
+ /**
113
+ * Running in the linksure's quick game.
114
+ */
115
+ export const LINKSURE: boolean;
116
+
117
+ /**
118
+ * Running in the editor.
119
+ */
120
+ export const EDITOR: boolean;
121
+
122
+ /**
123
+ * Run in editor but not in editor preview.
124
+ */
125
+ export const EDITOR_NOT_IN_PREVIEW: boolean;
126
+
127
+ /**
128
+ * Preview in browser or simulator.
129
+ */
130
+ export const PREVIEW: boolean;
131
+
132
+ /**
133
+ * Running in published project.
134
+ */
135
+ export const BUILD: boolean;
136
+
137
+ /**
138
+ * Running in the engine's unit test.
139
+ */
140
+ export const TEST: boolean;
141
+
142
+ /**
143
+ * Running debug mode.
144
+ */
145
+ export const DEBUG: boolean;
146
+
147
+ /**
148
+ * Running in the editor or preview.
149
+ */
150
+ export const DEV: boolean;
151
+
152
+ /**
153
+ * Running in mini game.
154
+ */
155
+ export const MINIGAME: boolean;
156
+
157
+ /**
158
+ * Running in runtime based environment.
159
+ */
160
+ export const RUNTIME_BASED: boolean;
161
+
162
+ /**
163
+ * Support JIT.
164
+ */
165
+ export const SUPPORT_JIT: boolean;
166
+
167
+ /**
168
+ * Running in environment where using JSB as the JavaScript interface binding scheme.
169
+ */
170
+ export const JSB: boolean;
171
+
172
+ /**
173
+ * The network access mode.
174
+ * - 0 Client
175
+ * - 1 ListenServer
176
+ * - 2 HostServer
177
+ */
178
+ export const NET_MODE: number;
179
+
180
+ }
@@ -1 +1 @@
1
- /// <reference path="C:\ProgramData\cocos\editors\Creator\3.8.4\resources\resources\3d\engine\@types\jsb.d.ts"/>
1
+ /// <reference path="C:\ProgramData\cocos\editors\Creator\3.8.4\resources\resources\3d\engine\@types\jsb.d.ts"/>
@@ -1,17 +1,17 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "compilerOptions": {
4
- "target": "ES2015",
5
- "module": "ES2015",
6
- "strict": true,
7
- "types": ["./temp/declarations/cc.custom-macro", "./temp/declarations/cc", "./temp/declarations/jsb", "./temp/declarations/cc.env"],
8
- "paths": {
9
- "db://internal/*": ["C:\\ProgramData\\cocos\\editors\\Creator\\3.8.4\\resources\\resources\\3d\\engine\\editor\\assets\\*"]
10
- },
11
- "experimentalDecorators": true,
12
- "isolatedModules": true,
13
- "moduleResolution": "node",
14
- "noEmit": true,
15
- "forceConsistentCasingInFileNames": true
16
- }
17
- }
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "target": "ES2015",
5
+ "module": "ES2015",
6
+ "strict": true,
7
+ "types": ["./temp/declarations/cc.custom-macro", "./temp/declarations/cc", "./temp/declarations/jsb", "./temp/declarations/cc.env"],
8
+ "paths": {
9
+ "db://internal/*": ["C:\\ProgramData\\cocos\\editors\\Creator\\3.8.4\\resources\\resources\\3d\\engine\\editor\\assets\\*"]
10
+ },
11
+ "experimentalDecorators": true,
12
+ "isolatedModules": true,
13
+ "moduleResolution": "node",
14
+ "noEmit": true,
15
+ "forceConsistentCasingInFileNames": true
16
+ }
17
+ }