@azure/web-pubsub-chat-client 1.0.0-beta.1
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/CHANGELOG.md +5 -0
- package/README.md +175 -0
- package/dist/browser/index.js +4754 -0
- package/dist/browser/index.js.map +7 -0
- package/dist/chatClient.d.ts +253 -0
- package/dist/chatClient.d.ts.map +1 -0
- package/dist/constant.d.ts +21 -0
- package/dist/constant.d.ts.map +1 -0
- package/dist/events.d.ts +70 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/generatedTypes.d.ts +406 -0
- package/dist/generatedTypes.d.ts.map +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2620 -0
- package/dist/index.js.map +7 -0
- package/dist/logger.d.ts +5 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/modelGuards.d.ts +2 -0
- package/dist/modelGuards.d.ts.map +1 -0
- package/dist/models.d.ts +71 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/options.d.ts +69 -0
- package/dist/options.d.ts.map +1 -0
- package/dist/utils.d.ts +11 -0
- package/dist/utils.d.ts.map +1 -0
- package/package.json +71 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAO3E;AAGD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,eAAe,CAWtE"}
|
package/package.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@azure/web-pubsub-chat-client",
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
|
+
"description": "Client SDK for building chat applications with Azure Web PubSub",
|
|
5
|
+
"author": "Microsoft",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/Azure/azure-webpubsub/"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/Azure/azure-webpubsub/",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/Azure/azure-webpubsub/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"azure",
|
|
17
|
+
"webpubsub",
|
|
18
|
+
"chat",
|
|
19
|
+
"realtime",
|
|
20
|
+
"messaging"
|
|
21
|
+
],
|
|
22
|
+
"type": "module",
|
|
23
|
+
"main": "dist/index.js",
|
|
24
|
+
"browser": "dist/browser/index.js",
|
|
25
|
+
"types": "dist/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"browser": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"default": "./dist/browser/index.js"
|
|
31
|
+
},
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"default": "./dist/index.js"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"./package.json": "./package.json"
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"dist",
|
|
41
|
+
"README.md"
|
|
42
|
+
],
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "tsc -p tsconfig.json",
|
|
45
|
+
"build:bundle": "node scripts/esbuild.config.mjs && tsc -p tsconfig.json --emitDeclarationOnly",
|
|
46
|
+
"build:watch": "tsc -p tsconfig.json --watch",
|
|
47
|
+
"pack:publish": "node scripts/pack-for-publish.mjs",
|
|
48
|
+
"generate:types": "openapi-typescript swagger/openapi.yaml -o src/generatedTypes.ts && node -e \"const fs=require('fs');const c=fs.readFileSync('src/generatedTypes.ts','utf8');const schemas=[...c.matchAll(/^\\s{8}(\\w+):/gm)].map(m=>m[1]);const exports='\\n// Flattened schema exports\\nexport type Schemas = components[\\\"schemas\\\"];\\n'+schemas.map(s=>'export type '+s+' = Schemas[\\\"'+s+'\\\"];').join('\\n')+'\\n';fs.appendFileSync('src/generatedTypes.ts',exports)\"",
|
|
49
|
+
"test:start-server": "node .\\examples\\quickstart\\server.js",
|
|
50
|
+
"test": "npx tsx --test tests/**/*.ts",
|
|
51
|
+
"test:integration": "tsx --test tests/integration.test.ts",
|
|
52
|
+
"test:one": "tsx --test --test-name-pattern",
|
|
53
|
+
"extract-api": "api-extractor run --local",
|
|
54
|
+
"check-api": "api-extractor run"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@azure/abort-controller": "^2.1.2",
|
|
58
|
+
"@azure/core-paging": "^1.6.2",
|
|
59
|
+
"ws": "^8.0.0"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@microsoft/api-extractor": "^7.58.7",
|
|
63
|
+
"@types/events": "^3.0.3",
|
|
64
|
+
"@types/node": "^25.0.3",
|
|
65
|
+
"esbuild": "^0.27.3",
|
|
66
|
+
"esbuild-plugin-polyfill-node": "^0.3.0",
|
|
67
|
+
"openapi-typescript": "^7.10.1",
|
|
68
|
+
"tsx": "^4.21.0",
|
|
69
|
+
"typescript": "^5.9.3"
|
|
70
|
+
}
|
|
71
|
+
}
|