@tcic/core-sdk-v1 1.0.5
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/README-en.md +10 -0
- package/README-inner.md +10 -0
- package/README.md +343 -0
- package/dist/doc_index.d.ts +6 -0
- package/dist/index.d.ts +41 -0
- package/dist/lib/error.d.ts +20 -0
- package/dist/mods/actionModule.d.ts +12 -0
- package/dist/mods/actionName.d.ts +83 -0
- package/dist/mods/deviceStatus.d.ts +42 -0
- package/dist/mods/im.d.ts +138 -0
- package/dist/mods/report.d.ts +18 -0
- package/dist/mods/tiw.d.ts +9 -0
- package/dist/mods/trtc.d.ts +237 -0
- package/dist/mods/trtc_mobile.d.ts +325 -0
- package/dist/mods/twebview_inner.d.ts +84 -0
- package/dist/tcic.d.ts +319 -0
- package/dist/tcic_watch_sdk.js +3 -0
- package/dist/tcic_watch_sdk.js.LICENSE.txt +16 -0
- package/dist/utils.d.ts +14 -0
- package/package.json +57 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license Complex.js v2.1.1 12/05/2020
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2020, Robert Eisele (robert@xarg.org)
|
|
7
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
8
|
+
**/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @license Fraction.js v4.2.0 05/03/2022
|
|
12
|
+
* https://www.xarg.org/2014/03/rational-numbers-in-javascript/
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) 2021, Robert Eisele (robert@xarg.org)
|
|
15
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
16
|
+
**/
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface Debug {
|
|
2
|
+
(...args: any): void;
|
|
3
|
+
enable: (ns: string) => void;
|
|
4
|
+
disable: (ns: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function debugFatory(ns: string): Debug;
|
|
7
|
+
/**
|
|
8
|
+
* 仅开启指定debug命名空间
|
|
9
|
+
* @param nsList - debug命名空间列表
|
|
10
|
+
*/
|
|
11
|
+
export declare function enableDebug(nsList: string[]): void;
|
|
12
|
+
export declare function getRandomStr(): string;
|
|
13
|
+
export declare function getStreamId(uid: string, type: string): string;
|
|
14
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tcic/core-sdk-v1",
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"files": [
|
|
5
|
+
"dist/",
|
|
6
|
+
"README*.md"
|
|
7
|
+
],
|
|
8
|
+
"description": "实时互动(教育版) 无UI sdk",
|
|
9
|
+
"main": "dist/tcic_watch_sdk.js",
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
13
|
+
"build": "rm -rf dist/ && tsc && webpack build && typedoc",
|
|
14
|
+
"doc": "typedoc ",
|
|
15
|
+
"todo": "cp -R ./docs/* ~/MyWork/nginx-root/wsdk/",
|
|
16
|
+
"serve": "tsc &&webpack serve",
|
|
17
|
+
"dev": "tsc && webpack watch",
|
|
18
|
+
"doc:parse": "api-extractor run --local --verbose",
|
|
19
|
+
"doc:gen": "api-documenter markdown -i ./temp",
|
|
20
|
+
"typedoc": "typedoc src/doc_index.ts"
|
|
21
|
+
},
|
|
22
|
+
"author": "LCIC",
|
|
23
|
+
"license": "ISC",
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@babel/preset-env": "^7.22.20",
|
|
26
|
+
"@babel/preset-typescript": "^7.23.0",
|
|
27
|
+
"@microsoft/api-documenter": "^7.23.13",
|
|
28
|
+
"@microsoft/api-extractor": "^7.38.4",
|
|
29
|
+
"@microsoft/api-extractor-model": "^7.28.2",
|
|
30
|
+
"@microsoft/tsdoc": "^0.14.2",
|
|
31
|
+
"@tencentcloud/chat": "^3.6.3",
|
|
32
|
+
"@tencentcloud/tiw": "^2.9.12",
|
|
33
|
+
"@typescript-eslint/eslint-plugin": "^6.13.1",
|
|
34
|
+
"axios": "^1.7.4",
|
|
35
|
+
"babel-loader": "^9.1.3",
|
|
36
|
+
"css-loader": "^6.8.1",
|
|
37
|
+
"debug": "^4.3.4",
|
|
38
|
+
"eslint": "^8.54.0",
|
|
39
|
+
"eslint-config-prettier": "^9.0.0",
|
|
40
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
41
|
+
"eslint-plugin-tsdoc": "^0.2.17",
|
|
42
|
+
"prettier": "^3.0.3",
|
|
43
|
+
"style-loader": "^3.3.3",
|
|
44
|
+
"tcplayer.js": "^5.1.0",
|
|
45
|
+
"tim-upload-plugin": "^1.3.0",
|
|
46
|
+
"trtc-sdk-v5": "5.10.2-beta.8",
|
|
47
|
+
"ts-loader": "^9.5.0",
|
|
48
|
+
"typedoc": "^0.25.4",
|
|
49
|
+
"typescript": "5.2.2",
|
|
50
|
+
"webpack": "^5.88.2",
|
|
51
|
+
"webpack-cli": "^5.1.4",
|
|
52
|
+
"webpack-dev-server": "^4.15.1"
|
|
53
|
+
},
|
|
54
|
+
"volta": {
|
|
55
|
+
"node": "20.10.0"
|
|
56
|
+
}
|
|
57
|
+
}
|