@cg-devcenter/rtc-fpnn-webjs-sdk 1.0.0-cg.2 → 1.0.0-cg.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cg-devcenter/rtc-fpnn-webjs-sdk",
3
- "version": "1.0.0-cg.2",
3
+ "version": "1.0.0-cg.4",
4
4
  "description": "Browser RTM SDK with FPNN and TLV v1 MessagePack WebSocket transports",
5
5
  "main": "./dist/rtm.min.js",
6
6
  "browser": "./dist/rtm.min.js",
@@ -11,29 +11,35 @@
11
11
  "dist",
12
12
  "docs/TLV.md",
13
13
  "docs/TLV_CONTRACT.md",
14
- "docs/USAGE.md"
14
+ "docs/CAPABILITIES.md",
15
+ "docs/TLV_LIVE_E2E_TEST.md",
16
+ "docs/USAGE.md",
17
+ "docs/PROTOCOL_MIGRATION.md"
15
18
  ],
16
- "repository": {
17
- "type": "git",
18
- "url": "git+ssh://git@gitlab.diandian.info/rtc/rtc-client-sdk-websocket.git"
19
- },
20
- "homepage": "https://gitlab.diandian.info/rtc/rtc-client-sdk-websocket",
21
19
  "exports": {
22
20
  ".": {
23
21
  "types": "./dist/rtm.d.ts",
24
22
  "require": "./dist/rtm.min.js",
25
23
  "default": "./dist/rtm.min.js"
26
24
  },
25
+ "./vite": {
26
+ "types": "./dist/rtm.vite.d.ts",
27
+ "import": "./dist/rtm.vite.mjs",
28
+ "default": "./dist/rtm.vite.mjs"
29
+ },
30
+ "./shared-worker": "./dist/rtm.shared-worker.js",
27
31
  "./dist/*": "./dist/*",
28
32
  "./package.json": "./package.json"
29
33
  },
30
34
  "author": "Dixun",
31
35
  "license": "MIT",
32
36
  "scripts": {
33
- "build": "webpack --mode production",
37
+ "build": "webpack --mode production && webpack --config webpack.shared-worker.config.js --mode production",
34
38
  "test": "npm run test:unit && npm run test:package",
35
39
  "test:unit": "node test/tlv/run.js && node test/tlv/documentation.js",
36
40
  "test:package": "npm run build && node test/package-smoke.js",
41
+ "demo:tlv-basic": "node examples/tlv-basic-demo/server.js",
42
+ "demo:shared-worker": "node examples/shared-worker-demo/server.js",
37
43
  "prepack": "npm run build"
38
44
  },
39
45
  "devDependencies": {