sim-sdk-web 1.0.4 → 1.0.7
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/lib/api/index.d.ts +4 -3
- package/lib/constant/api.d.ts +1 -2
- package/lib/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index.umd.js +1 -1
- package/lib/types/entity.d.ts +1 -1
- package/lib/types/params.d.ts +2 -2
- package/package.json +2 -2
package/lib/types/entity.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { AllowType, ApplicationHandleResult, GroupJoinSource, GroupMemberRo
|
|
|
3
3
|
import { HttpMethod } from '../utils/request';
|
|
4
4
|
export interface WsRequest {
|
|
5
5
|
url: RequestApi;
|
|
6
|
-
|
|
6
|
+
username?: string;
|
|
7
7
|
data: Record<string, any> | undefined;
|
|
8
8
|
method: HttpMethod;
|
|
9
9
|
}
|
package/lib/types/params.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { AtUsersInfoItem, GroupItem, MessageItem, OfflinePush, PicBaseInfo, SelfUserInfo } from './entity';
|
|
2
2
|
import type { GroupJoinSource, GroupMemberFilter, GroupMemberRole, MessageReceiveOptType, MessageType } from './enum';
|
|
3
3
|
export type LoginParams = {
|
|
4
|
+
apiAddr: string;
|
|
4
5
|
appKey: string;
|
|
5
|
-
|
|
6
|
+
username: string;
|
|
6
7
|
token: string;
|
|
7
|
-
platformID: number;
|
|
8
8
|
};
|
|
9
9
|
export type SetSelfInfoParams = Partial<SelfUserInfo>;
|
|
10
10
|
export type GetUserInfoWithCacheParams = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sim-sdk-web",
|
|
3
|
-
"version": "v1.0.
|
|
3
|
+
"version": "v1.0.7",
|
|
4
4
|
"description": "Sim SDK for Web",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "rimraf lib && microbundle --no-sourcemap && tsc-alias",
|
|
20
20
|
"obfuscate": "javascript-obfuscator lib --output lib --config javascript-obfuscator-config.json",
|
|
21
|
-
"build:rollup": "rimraf dist && rollup -c --bundleConfigAsCjs && rollup -c --bundleConfigAsCjs rollup.dts.config.js.cc",
|
|
22
21
|
"test": "jest",
|
|
23
22
|
"lint": "eslint . --ext .ts",
|
|
24
23
|
"format": "prettier --write .",
|
|
@@ -36,6 +35,7 @@
|
|
|
36
35
|
"devDependencies": {
|
|
37
36
|
"@types/spark-md5": "^3.0.3",
|
|
38
37
|
"@typescript-eslint/parser": "^6.9.1",
|
|
38
|
+
"javascript-obfuscator": "^4.1.1",
|
|
39
39
|
"microbundle": "^0.15.1",
|
|
40
40
|
"prettier": "^3.0.3",
|
|
41
41
|
"semantic-release": "^22.0.6",
|