@azure/web-pubsub 1.1.4-alpha.20241118.1 → 1.1.4-alpha.20241120.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. package/dist/commonjs/generated/generatedClient.d.ts +19 -0
  2. package/dist/commonjs/generated/generatedClient.d.ts.map +1 -0
  3. package/dist/commonjs/generated/generatedClient.js +76 -0
  4. package/dist/commonjs/generated/generatedClient.js.map +1 -0
  5. package/dist/commonjs/generated/generatedClientContext.d.ts +14 -0
  6. package/dist/commonjs/generated/generatedClientContext.d.ts.map +1 -0
  7. package/dist/commonjs/generated/generatedClientContext.js +46 -0
  8. package/dist/commonjs/generated/generatedClientContext.js.map +1 -0
  9. package/dist/commonjs/generated/index.d.ts +4 -0
  10. package/dist/commonjs/generated/index.d.ts.map +1 -0
  11. package/dist/commonjs/generated/index.js +16 -0
  12. package/dist/commonjs/generated/index.js.map +1 -0
  13. package/dist/commonjs/generated/models/index.d.ts +323 -0
  14. package/dist/commonjs/generated/models/index.d.ts.map +1 -0
  15. package/dist/commonjs/generated/models/index.js +27 -0
  16. package/dist/commonjs/generated/models/index.js.map +1 -0
  17. package/dist/commonjs/generated/models/mappers.d.ts +30 -0
  18. package/dist/commonjs/generated/models/mappers.d.ts.map +1 -0
  19. package/dist/commonjs/generated/models/mappers.js +463 -0
  20. package/dist/commonjs/generated/models/mappers.js.map +1 -0
  21. package/dist/commonjs/generated/models/parameters.d.ts +31 -0
  22. package/dist/commonjs/generated/models/parameters.d.ts.map +1 -0
  23. package/dist/commonjs/generated/models/parameters.js +335 -0
  24. package/dist/commonjs/generated/models/parameters.js.map +1 -0
  25. package/dist/commonjs/generated/operations/healthApi.d.ts +18 -0
  26. package/dist/commonjs/generated/operations/healthApi.d.ts.map +1 -0
  27. package/dist/commonjs/generated/operations/healthApi.js +43 -0
  28. package/dist/commonjs/generated/operations/healthApi.js.map +1 -0
  29. package/dist/commonjs/generated/operations/index.d.ts +3 -0
  30. package/dist/commonjs/generated/operations/index.d.ts.map +1 -0
  31. package/dist/commonjs/generated/operations/index.js +13 -0
  32. package/dist/commonjs/generated/operations/index.js.map +1 -0
  33. package/dist/commonjs/generated/operations/webPubSub.d.ts +249 -0
  34. package/dist/commonjs/generated/operations/webPubSub.d.ts.map +1 -0
  35. package/dist/commonjs/generated/operations/webPubSub.js +874 -0
  36. package/dist/commonjs/generated/operations/webPubSub.js.map +1 -0
  37. package/dist/commonjs/generated/operationsInterfaces/healthApi.d.ts +10 -0
  38. package/dist/commonjs/generated/operationsInterfaces/healthApi.d.ts.map +1 -0
  39. package/dist/commonjs/generated/operationsInterfaces/healthApi.js +10 -0
  40. package/dist/commonjs/generated/operationsInterfaces/healthApi.js.map +1 -0
  41. package/dist/commonjs/generated/operationsInterfaces/index.d.ts +3 -0
  42. package/dist/commonjs/generated/operationsInterfaces/index.d.ts.map +1 -0
  43. package/dist/commonjs/generated/operationsInterfaces/index.js +13 -0
  44. package/dist/commonjs/generated/operationsInterfaces/index.js.map +1 -0
  45. package/dist/commonjs/generated/operationsInterfaces/webPubSub.d.ts +224 -0
  46. package/dist/commonjs/generated/operationsInterfaces/webPubSub.d.ts.map +1 -0
  47. package/dist/commonjs/generated/operationsInterfaces/webPubSub.js +10 -0
  48. package/dist/commonjs/generated/operationsInterfaces/webPubSub.js.map +1 -0
  49. package/dist/commonjs/groupClient.d.ts +232 -0
  50. package/dist/commonjs/groupClient.d.ts.map +1 -0
  51. package/dist/commonjs/groupClient.js +101 -0
  52. package/dist/commonjs/groupClient.js.map +1 -0
  53. package/dist/commonjs/hubClient.d.ts +478 -0
  54. package/dist/commonjs/hubClient.d.ts.map +1 -0
  55. package/dist/commonjs/hubClient.js +372 -0
  56. package/dist/commonjs/hubClient.js.map +1 -0
  57. package/dist/commonjs/index.d.ts +5 -0
  58. package/dist/commonjs/index.d.ts.map +1 -0
  59. package/dist/commonjs/index.js +12 -0
  60. package/dist/commonjs/index.js.map +1 -0
  61. package/dist/commonjs/logger.d.ts +5 -0
  62. package/dist/commonjs/logger.d.ts.map +1 -0
  63. package/dist/commonjs/logger.js +11 -0
  64. package/dist/commonjs/logger.js.map +1 -0
  65. package/dist/commonjs/package.json +3 -0
  66. package/dist/commonjs/parseConnectionString.d.ts +8 -0
  67. package/dist/commonjs/parseConnectionString.d.ts.map +1 -0
  68. package/dist/commonjs/parseConnectionString.js +34 -0
  69. package/dist/commonjs/parseConnectionString.js.map +1 -0
  70. package/dist/commonjs/reverseProxyPolicy.d.ts +9 -0
  71. package/dist/commonjs/reverseProxyPolicy.d.ts.map +1 -0
  72. package/dist/commonjs/reverseProxyPolicy.js +25 -0
  73. package/dist/commonjs/reverseProxyPolicy.js.map +1 -0
  74. package/dist/commonjs/tracing.d.ts +3 -0
  75. package/dist/commonjs/tracing.d.ts.map +1 -0
  76. package/dist/commonjs/tracing.js +12 -0
  77. package/dist/commonjs/tracing.js.map +1 -0
  78. package/dist/commonjs/tsdoc-metadata.json +11 -0
  79. package/dist/commonjs/utils.d.ts +29 -0
  80. package/dist/commonjs/utils.d.ts.map +1 -0
  81. package/dist/commonjs/utils.js +73 -0
  82. package/dist/commonjs/utils.js.map +1 -0
  83. package/dist/commonjs/webPubSubCredentialPolicy.d.ts +13 -0
  84. package/dist/commonjs/webPubSubCredentialPolicy.d.ts.map +1 -0
  85. package/dist/commonjs/webPubSubCredentialPolicy.js +32 -0
  86. package/dist/commonjs/webPubSubCredentialPolicy.js.map +1 -0
  87. package/dist/esm/generated/generatedClient.d.ts +19 -0
  88. package/dist/esm/generated/generatedClient.d.ts.map +1 -0
  89. package/{dist-esm/src → dist/esm}/generated/generatedClient.js +1 -1
  90. package/dist/esm/generated/generatedClient.js.map +1 -0
  91. package/dist/esm/generated/generatedClientContext.d.ts +14 -0
  92. package/dist/esm/generated/generatedClientContext.d.ts.map +1 -0
  93. package/dist/esm/generated/generatedClientContext.js.map +1 -0
  94. package/dist/esm/generated/index.d.ts +4 -0
  95. package/dist/esm/generated/index.d.ts.map +1 -0
  96. package/{dist-esm/src → dist/esm}/generated/index.js +3 -3
  97. package/dist/esm/generated/index.js.map +1 -0
  98. package/dist/esm/generated/models/index.d.ts +323 -0
  99. package/dist/esm/generated/models/index.d.ts.map +1 -0
  100. package/dist/esm/generated/models/mappers.d.ts +30 -0
  101. package/dist/esm/generated/models/mappers.d.ts.map +1 -0
  102. package/dist/esm/generated/models/parameters.d.ts +31 -0
  103. package/dist/esm/generated/models/parameters.d.ts.map +1 -0
  104. package/{dist-esm/src → dist/esm}/generated/models/parameters.js +1 -1
  105. package/dist/esm/generated/models/parameters.js.map +1 -0
  106. package/dist/esm/generated/operations/healthApi.d.ts +18 -0
  107. package/dist/esm/generated/operations/healthApi.d.ts.map +1 -0
  108. package/{dist-esm/src → dist/esm}/generated/operations/healthApi.js +2 -2
  109. package/dist/esm/generated/operations/healthApi.js.map +1 -0
  110. package/dist/esm/generated/operations/index.d.ts +3 -0
  111. package/dist/esm/generated/operations/index.d.ts.map +1 -0
  112. package/{dist-esm/src/generated/operationsInterfaces → dist/esm/generated/operations}/index.js +2 -2
  113. package/dist/esm/generated/operations/index.js.map +1 -0
  114. package/dist/esm/generated/operations/webPubSub.d.ts +249 -0
  115. package/dist/esm/generated/operations/webPubSub.d.ts.map +1 -0
  116. package/{dist-esm/src → dist/esm}/generated/operations/webPubSub.js +2 -2
  117. package/dist/esm/generated/operations/webPubSub.js.map +1 -0
  118. package/dist/esm/generated/operationsInterfaces/healthApi.d.ts +10 -0
  119. package/dist/esm/generated/operationsInterfaces/healthApi.d.ts.map +1 -0
  120. package/{dist-esm/src → dist/esm}/generated/operationsInterfaces/healthApi.js.map +1 -1
  121. package/dist/esm/generated/operationsInterfaces/index.d.ts +3 -0
  122. package/dist/esm/generated/operationsInterfaces/index.d.ts.map +1 -0
  123. package/{dist-esm/src/generated/operations → dist/esm/generated/operationsInterfaces}/index.js +2 -2
  124. package/dist/esm/generated/operationsInterfaces/index.js.map +1 -0
  125. package/dist/esm/generated/operationsInterfaces/webPubSub.d.ts +224 -0
  126. package/dist/esm/generated/operationsInterfaces/webPubSub.d.ts.map +1 -0
  127. package/dist/esm/generated/operationsInterfaces/webPubSub.js.map +1 -0
  128. package/dist/esm/groupClient.d.ts +232 -0
  129. package/dist/esm/groupClient.d.ts.map +1 -0
  130. package/{dist-esm/src → dist/esm}/groupClient.js +2 -2
  131. package/dist/esm/groupClient.js.map +1 -0
  132. package/dist/esm/hubClient.d.ts +478 -0
  133. package/dist/esm/hubClient.d.ts.map +1 -0
  134. package/{dist-esm/src → dist/esm}/hubClient.js +9 -9
  135. package/dist/esm/hubClient.js.map +1 -0
  136. package/dist/esm/index.d.ts +5 -0
  137. package/dist/esm/index.d.ts.map +1 -0
  138. package/{dist-esm/src → dist/esm}/index.js +2 -2
  139. package/dist/esm/index.js.map +1 -0
  140. package/dist/esm/logger.d.ts +5 -0
  141. package/dist/esm/logger.d.ts.map +1 -0
  142. package/dist/esm/package.json +3 -0
  143. package/dist/esm/parseConnectionString.d.ts +8 -0
  144. package/dist/esm/parseConnectionString.d.ts.map +1 -0
  145. package/dist/esm/reverseProxyPolicy.d.ts +9 -0
  146. package/dist/esm/reverseProxyPolicy.d.ts.map +1 -0
  147. package/dist/esm/tracing.d.ts +3 -0
  148. package/dist/esm/tracing.d.ts.map +1 -0
  149. package/dist/esm/utils.d.ts +29 -0
  150. package/dist/esm/utils.d.ts.map +1 -0
  151. package/dist/esm/webPubSubCredentialPolicy.d.ts +13 -0
  152. package/dist/esm/webPubSubCredentialPolicy.d.ts.map +1 -0
  153. package/package.json +56 -52
  154. package/dist/index.js +0 -2441
  155. package/dist/index.js.map +0 -1
  156. package/dist-esm/samples-dev/broadcasting.js +0 -27
  157. package/dist-esm/samples-dev/broadcasting.js.map +0 -1
  158. package/dist-esm/samples-dev/directMessage.js +0 -20
  159. package/dist-esm/samples-dev/directMessage.js.map +0 -1
  160. package/dist-esm/samples-dev/managingGroups.js +0 -23
  161. package/dist-esm/samples-dev/managingGroups.js.map +0 -1
  162. package/dist-esm/src/generated/generatedClient.js.map +0 -1
  163. package/dist-esm/src/generated/generatedClientContext.js.map +0 -1
  164. package/dist-esm/src/generated/index.js.map +0 -1
  165. package/dist-esm/src/generated/models/parameters.js.map +0 -1
  166. package/dist-esm/src/generated/operations/healthApi.js.map +0 -1
  167. package/dist-esm/src/generated/operations/index.js.map +0 -1
  168. package/dist-esm/src/generated/operations/webPubSub.js.map +0 -1
  169. package/dist-esm/src/generated/operationsInterfaces/index.js.map +0 -1
  170. package/dist-esm/src/generated/operationsInterfaces/webPubSub.js.map +0 -1
  171. package/dist-esm/src/groupClient.js.map +0 -1
  172. package/dist-esm/src/hubClient.js.map +0 -1
  173. package/dist-esm/src/index.js.map +0 -1
  174. package/dist-esm/test/conn.spec.js +0 -23
  175. package/dist-esm/test/conn.spec.js.map +0 -1
  176. package/dist-esm/test/groups.spec.js +0 -138
  177. package/dist-esm/test/groups.spec.js.map +0 -1
  178. package/dist-esm/test/hubs.spec.js +0 -270
  179. package/dist-esm/test/hubs.spec.js.map +0 -1
  180. package/dist-esm/test/integration.spec.js +0 -299
  181. package/dist-esm/test/integration.spec.js.map +0 -1
  182. package/dist-esm/test/odata.spec.js +0 -15
  183. package/dist-esm/test/odata.spec.js.map +0 -1
  184. package/dist-esm/test/testEnv.js +0 -23
  185. package/dist-esm/test/testEnv.js.map +0 -1
  186. /package/{dist-esm/src → dist/esm}/generated/generatedClientContext.js +0 -0
  187. /package/{dist-esm/src → dist/esm}/generated/models/index.js +0 -0
  188. /package/{dist-esm/src → dist/esm}/generated/models/index.js.map +0 -0
  189. /package/{dist-esm/src → dist/esm}/generated/models/mappers.js +0 -0
  190. /package/{dist-esm/src → dist/esm}/generated/models/mappers.js.map +0 -0
  191. /package/{dist-esm/src → dist/esm}/generated/operationsInterfaces/healthApi.js +0 -0
  192. /package/{dist-esm/src → dist/esm}/generated/operationsInterfaces/webPubSub.js +0 -0
  193. /package/{dist-esm/src → dist/esm}/logger.js +0 -0
  194. /package/{dist-esm/src → dist/esm}/logger.js.map +0 -0
  195. /package/{dist-esm/src → dist/esm}/parseConnectionString.js +0 -0
  196. /package/{dist-esm/src → dist/esm}/parseConnectionString.js.map +0 -0
  197. /package/{dist-esm/src → dist/esm}/reverseProxyPolicy.js +0 -0
  198. /package/{dist-esm/src → dist/esm}/reverseProxyPolicy.js.map +0 -0
  199. /package/{dist-esm/src → dist/esm}/tracing.js +0 -0
  200. /package/{dist-esm/src → dist/esm}/tracing.js.map +0 -0
  201. /package/{dist-esm/src → dist/esm}/utils.js +0 -0
  202. /package/{dist-esm/src → dist/esm}/utils.js.map +0 -0
  203. /package/{dist-esm/src → dist/esm}/webPubSubCredentialPolicy.js +0 -0
  204. /package/{dist-esm/src → dist/esm}/webPubSubCredentialPolicy.js.map +0 -0
  205. /package/{types → dist}/web-pubsub.d.ts +0 -0
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The `@azure/logger` configuration for this package.
3
+ */
4
+ export declare const logger: import("@azure/logger").AzureLogger;
5
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,MAAM,qCAAmC,CAAC"}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,8 @@
1
+ import { AzureKeyCredential } from "@azure/core-auth";
2
+ interface ParsedConnectionString {
3
+ credential: AzureKeyCredential;
4
+ endpoint: string;
5
+ }
6
+ export declare function parseConnectionString(conn: string): ParsedConnectionString;
7
+ export {};
8
+ //# sourceMappingURL=parseConnectionString.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseConnectionString.d.ts","sourceRoot":"","sources":["../../src/parseConnectionString.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,UAAU,sBAAsB;IAC9B,UAAU,EAAE,kBAAkB,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,sBAAsB,CA0B1E"}
@@ -0,0 +1,9 @@
1
+ import type { PipelinePolicy } from "@azure/core-rest-pipeline";
2
+ export declare const webPubSubReverseProxyPolicyName = "webPubSubReverseProxyPolicy";
3
+ /**
4
+ * Create an HTTP pipeline policy to use a reverse proxy.
5
+ * This is generally going to be an Azure APIM endpoint.
6
+ * @internal
7
+ */
8
+ export declare function webPubSubReverseProxyPolicy(endpoint: string): PipelinePolicy;
9
+ //# sourceMappingURL=reverseProxyPolicy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reverseProxyPolicy.d.ts","sourceRoot":"","sources":["../../src/reverseProxyPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAIV,cAAc,EACf,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,+BAA+B,gCAAgC,CAAC;AAE7E;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,CAW5E"}
@@ -0,0 +1,3 @@
1
+ /** @internal */
2
+ export declare const tracingClient: import("@azure/core-tracing").TracingClient;
3
+ //# sourceMappingURL=tracing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../src/tracing.ts"],"names":[],"mappings":"AAKA,gBAAgB;AAChB,eAAO,MAAM,aAAa,6CAGxB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { RequestBodyType } from "@azure/core-rest-pipeline";
2
+ export interface TextPlainPayload {
3
+ contentType: "text/plain";
4
+ payload: string;
5
+ }
6
+ export interface JsonPayload {
7
+ contentType: "application/json";
8
+ payload: string;
9
+ }
10
+ export interface BinaryPayload {
11
+ contentType: "application/octet-stream";
12
+ payload: RequestBodyType;
13
+ }
14
+ export type Payload = TextPlainPayload | JsonPayload | BinaryPayload;
15
+ export declare function getPayloadForMessage(message: unknown, options: Record<string, any>): Payload;
16
+ /**
17
+ * Escapes an odata filter expression to avoid errors with quoting string literals.
18
+ * Example usage:
19
+ * ```ts
20
+ * const userId = "vic's";
21
+ * const anonymous = null;
22
+ * const length = 3
23
+ * const filter = odata`userId eq ${anonymous} or userId eq ${userId} or length(userId) > ${length}`;
24
+ * ```
25
+ * @param strings - Array of strings for the expression
26
+ * @param values - Array of values for the expression
27
+ */
28
+ export declare function odata(strings: TemplateStringsArray, ...values: unknown[]): string;
29
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAajE,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,YAAY,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,kBAAkB,CAAC;IAChC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,0BAA0B,CAAC;IACxC,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,MAAM,MAAM,OAAO,GAAG,gBAAgB,GAAG,WAAW,GAAG,aAAa,CAAC;AAErE,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAW5F;AAwBD;;;;;;;;;;;GAWG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAajF"}
@@ -0,0 +1,13 @@
1
+ import type { KeyCredential } from "@azure/core-auth";
2
+ import type { PipelinePolicy } from "@azure/core-rest-pipeline";
3
+ /**
4
+ * The programmatic identifier of the webPubSubKeyCredentialPolicy.
5
+ */
6
+ export declare const webPubSubKeyCredentialPolicyName = "webPubSubKeyCredentialPolicy";
7
+ /**
8
+ * Create an HTTP pipeline policy to authenticate a request
9
+ * using an `AzureKeyCredential` for Text Analytics
10
+ * @internal
11
+ */
12
+ export declare function webPubSubKeyCredentialPolicy(credential: KeyCredential): PipelinePolicy;
13
+ //# sourceMappingURL=webPubSubCredentialPolicy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webPubSubCredentialPolicy.d.ts","sourceRoot":"","sources":["../../src/webPubSubCredentialPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAIV,cAAc,EACf,MAAM,2BAA2B,CAAC;AAInC;;GAEG;AACH,eAAO,MAAM,gCAAgC,iCAAiC,CAAC;AAE/E;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,UAAU,EAAE,aAAa,GAAG,cAAc,CAatF"}
package/package.json CHANGED
@@ -1,43 +1,37 @@
1
1
  {
2
2
  "name": "@azure/web-pubsub",
3
- "version": "1.1.4-alpha.20241118.1",
3
+ "version": "1.1.4-alpha.20241120.2",
4
4
  "description": "Azure client library for Azure Web PubSub",
5
5
  "sdk-type": "client",
6
- "main": "dist/index.js",
7
- "module": "dist-esm/src/index.js",
8
- "types": "types/web-pubsub.d.ts",
6
+ "main": "./dist/commonjs/index.js",
7
+ "module": "./dist/esm/index.js",
8
+ "types": "./dist/commonjs/index.d.ts",
9
9
  "scripts": {
10
- "build": "npm run clean && tsc -p . && dev-tool run bundle --browser-test=false && dev-tool run extract-api",
11
- "build:browser": "echo \"Browser is not supported.\" && exit 0",
12
- "build:node": "tsc -p . && dev-tool run bundle --browser-test=false",
10
+ "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
13
11
  "build:samples": "echo Obsolete.",
14
- "build:test": "tsc -p . && dev-tool run bundle --browser-test=false",
15
- "bundle": "dev-tool run bundle --browser-test=false",
12
+ "build:test": "echo Obsolete.",
16
13
  "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
17
14
  "clean": "dev-tool run vendored rimraf --glob dist dist-esm test-dist temp types *.tgz *.log",
18
15
  "execute:samples": "dev-tool samples run samples-dev",
19
- "extract-api": "tsc -p . && dev-tool run extract-api",
16
+ "extract-api": "dev-tool run build-package && dev-tool run extract-api",
20
17
  "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
21
18
  "generate:client": "autorest --typescript ./swagger/README.md",
22
19
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
23
- "integration-test:browser": "echo \"Browser is not supported.\" && exit 0",
24
- "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'",
25
- "lint": "eslint package.json api-extractor.json README.md src test",
26
- "lint:fix": "eslint package.json api-extractor.json README.md src test --fix --fix-type [problem,suggestion]",
20
+ "integration-test:browser": "echo skipped",
21
+ "integration-test:node": "dev-tool run test:vitest",
22
+ "lint": "dev-tool run vendored eslint package.json api-extractor.json README.md src test",
23
+ "lint:fix": "dev-tool run vendored eslint package.json api-extractor.json README.md src test --fix --fix-type [problem,suggestion]",
27
24
  "pack": "npm pack 2>&1",
28
25
  "test": "npm run build:test && npm run unit-test && npm run integration-test",
29
- "test:browser": "echo \"Browser is not supported.\" && exit 0",
26
+ "test:browser": "echo skipped",
30
27
  "test:node": "npm run build:test && npm run unit-test:node && npm run integration-test:node",
31
28
  "unit-test": "npm run unit-test:node && npm run unit-test:browser",
32
- "unit-test:browser": "echo \"Browser is not supported.\" && exit 0",
33
- "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'",
29
+ "unit-test:browser": "echo skipped",
30
+ "unit-test:node": "dev-tool run test:vitest",
34
31
  "update-snippets": "echo skipped"
35
32
  },
36
33
  "files": [
37
34
  "dist/",
38
- "dist-esm/",
39
- "types/web-pubsub.d.ts",
40
- "types/web-pubsub.d.ts.map",
41
35
  "README.md",
42
36
  "LICENSE"
43
37
  ],
@@ -69,46 +63,31 @@
69
63
  "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/web-pubsub/web-pubsub/README.md",
70
64
  "sideEffects": false,
71
65
  "dependencies": {
72
- "@azure/core-auth": "^1.3.0",
73
- "@azure/core-client": "^1.0.0",
74
- "@azure/core-rest-pipeline": "^1.1.0",
75
- "@azure/core-tracing": "^1.0.0",
76
- "@azure/logger": "^1.0.0",
77
- "jsonwebtoken": "^9.0.0",
78
- "tslib": "^2.2.0"
66
+ "@azure/core-auth": "^1.9.0",
67
+ "@azure/core-client": "^1.9.2",
68
+ "@azure/core-rest-pipeline": ">=1.18.0-alpha <1.18.0-alphb",
69
+ "@azure/core-tracing": "^1.2.0",
70
+ "@azure/logger": "^1.1.4",
71
+ "jsonwebtoken": "^9.0.2",
72
+ "tslib": "^2.8.1"
79
73
  },
80
74
  "devDependencies": {
81
- "@azure-tools/test-credential": "^1.0.0",
82
- "@azure-tools/test-recorder": "^3.0.0",
83
- "@azure-tools/test-utils": "^1.0.1",
75
+ "@azure-tools/test-credential": "^2.0.0",
76
+ "@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
77
+ "@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
84
78
  "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
85
79
  "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
86
- "@types/chai": "^4.1.6",
87
- "@types/jsonwebtoken": "^9.0.0",
88
- "@types/mocha": "^10.0.0",
80
+ "@types/jsonwebtoken": "^9.0.7",
89
81
  "@types/node": "^18.0.0",
90
- "@types/sinon": "^17.0.0",
91
- "@types/ws": "^8.2.0",
92
- "chai": "^4.2.0",
82
+ "@types/ws": "^8.5.13",
83
+ "@vitest/browser": "^2.1.5",
84
+ "@vitest/coverage-istanbul": "^2.1.5",
93
85
  "dotenv": "^16.0.0",
94
86
  "eslint": "^9.9.0",
95
- "karma": "^6.2.0",
96
- "karma-chrome-launcher": "^3.0.0",
97
- "karma-coverage": "^2.0.0",
98
- "karma-env-preprocessor": "^0.1.1",
99
- "karma-firefox-launcher": "^1.1.0",
100
- "karma-junit-reporter": "^2.0.1",
101
- "karma-mocha": "^2.0.1",
102
- "karma-mocha-reporter": "^2.2.5",
103
- "karma-sourcemap-loader": "^0.3.8",
104
- "mocha": "^10.0.0",
105
- "nyc": "^17.0.0",
106
- "puppeteer": "^23.0.2",
107
- "sinon": "^17.0.0",
108
- "source-map-support": "^0.5.9",
109
- "ts-node": "^10.0.0",
87
+ "playwright": "^1.49.0",
110
88
  "typescript": "~5.6.2",
111
- "ws": "^8.2.0"
89
+ "vitest": "^2.1.5",
90
+ "ws": "^8.18.0"
112
91
  },
113
92
  "//sampleConfiguration": {
114
93
  "productName": "Azure Web PubSub",
@@ -118,5 +97,30 @@
118
97
  "skip": [
119
98
  "managingGroups.js"
120
99
  ]
100
+ },
101
+ "type": "module",
102
+ "tshy": {
103
+ "exports": {
104
+ "./package.json": "./package.json",
105
+ ".": "./src/index.ts"
106
+ },
107
+ "dialects": [
108
+ "esm",
109
+ "commonjs"
110
+ ],
111
+ "selfLink": false
112
+ },
113
+ "exports": {
114
+ "./package.json": "./package.json",
115
+ ".": {
116
+ "import": {
117
+ "types": "./dist/esm/index.d.ts",
118
+ "default": "./dist/esm/index.js"
119
+ },
120
+ "require": {
121
+ "types": "./dist/commonjs/index.d.ts",
122
+ "default": "./dist/commonjs/index.js"
123
+ }
124
+ }
121
125
  }
122
126
  }