@azure/web-pubsub 1.1.4-alpha.20241119.1 → 1.1.4-alpha.20241120.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/commonjs/generated/generatedClient.d.ts +19 -0
- package/dist/commonjs/generated/generatedClient.d.ts.map +1 -0
- package/dist/commonjs/generated/generatedClient.js +76 -0
- package/dist/commonjs/generated/generatedClient.js.map +1 -0
- package/dist/commonjs/generated/generatedClientContext.d.ts +14 -0
- package/dist/commonjs/generated/generatedClientContext.d.ts.map +1 -0
- package/dist/commonjs/generated/generatedClientContext.js +46 -0
- package/dist/commonjs/generated/generatedClientContext.js.map +1 -0
- package/dist/commonjs/generated/index.d.ts +4 -0
- package/dist/commonjs/generated/index.d.ts.map +1 -0
- package/dist/commonjs/generated/index.js +16 -0
- package/dist/commonjs/generated/index.js.map +1 -0
- package/dist/commonjs/generated/models/index.d.ts +323 -0
- package/dist/commonjs/generated/models/index.d.ts.map +1 -0
- package/dist/commonjs/generated/models/index.js +27 -0
- package/dist/commonjs/generated/models/index.js.map +1 -0
- package/dist/commonjs/generated/models/mappers.d.ts +30 -0
- package/dist/commonjs/generated/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/generated/models/mappers.js +463 -0
- package/dist/commonjs/generated/models/mappers.js.map +1 -0
- package/dist/commonjs/generated/models/parameters.d.ts +31 -0
- package/dist/commonjs/generated/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/models/parameters.js +335 -0
- package/dist/commonjs/generated/models/parameters.js.map +1 -0
- package/dist/commonjs/generated/operations/healthApi.d.ts +18 -0
- package/dist/commonjs/generated/operations/healthApi.d.ts.map +1 -0
- package/dist/commonjs/generated/operations/healthApi.js +43 -0
- package/dist/commonjs/generated/operations/healthApi.js.map +1 -0
- package/dist/commonjs/generated/operations/index.d.ts +3 -0
- package/dist/commonjs/generated/operations/index.d.ts.map +1 -0
- package/dist/commonjs/generated/operations/index.js +13 -0
- package/dist/commonjs/generated/operations/index.js.map +1 -0
- package/dist/commonjs/generated/operations/webPubSub.d.ts +249 -0
- package/dist/commonjs/generated/operations/webPubSub.d.ts.map +1 -0
- package/dist/commonjs/generated/operations/webPubSub.js +874 -0
- package/dist/commonjs/generated/operations/webPubSub.js.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/healthApi.d.ts +10 -0
- package/dist/commonjs/generated/operationsInterfaces/healthApi.d.ts.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/healthApi.js +10 -0
- package/dist/commonjs/generated/operationsInterfaces/healthApi.js.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/index.d.ts +3 -0
- package/dist/commonjs/generated/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/index.js +13 -0
- package/dist/commonjs/generated/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/webPubSub.d.ts +224 -0
- package/dist/commonjs/generated/operationsInterfaces/webPubSub.d.ts.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/webPubSub.js +10 -0
- package/dist/commonjs/generated/operationsInterfaces/webPubSub.js.map +1 -0
- package/dist/commonjs/groupClient.d.ts +232 -0
- package/dist/commonjs/groupClient.d.ts.map +1 -0
- package/dist/commonjs/groupClient.js +101 -0
- package/dist/commonjs/groupClient.js.map +1 -0
- package/dist/commonjs/hubClient.d.ts +478 -0
- package/dist/commonjs/hubClient.d.ts.map +1 -0
- package/dist/commonjs/hubClient.js +372 -0
- package/dist/commonjs/hubClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +12 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +5 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +11 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/parseConnectionString.d.ts +8 -0
- package/dist/commonjs/parseConnectionString.d.ts.map +1 -0
- package/dist/commonjs/parseConnectionString.js +34 -0
- package/dist/commonjs/parseConnectionString.js.map +1 -0
- package/dist/commonjs/reverseProxyPolicy.d.ts +9 -0
- package/dist/commonjs/reverseProxyPolicy.d.ts.map +1 -0
- package/dist/commonjs/reverseProxyPolicy.js +25 -0
- package/dist/commonjs/reverseProxyPolicy.js.map +1 -0
- package/dist/commonjs/tracing.d.ts +3 -0
- package/dist/commonjs/tracing.d.ts.map +1 -0
- package/dist/commonjs/tracing.js +12 -0
- package/dist/commonjs/tracing.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/commonjs/utils.d.ts +29 -0
- package/dist/commonjs/utils.d.ts.map +1 -0
- package/dist/commonjs/utils.js +73 -0
- package/dist/commonjs/utils.js.map +1 -0
- package/dist/commonjs/webPubSubCredentialPolicy.d.ts +13 -0
- package/dist/commonjs/webPubSubCredentialPolicy.d.ts.map +1 -0
- package/dist/commonjs/webPubSubCredentialPolicy.js +32 -0
- package/dist/commonjs/webPubSubCredentialPolicy.js.map +1 -0
- package/dist/esm/generated/generatedClient.d.ts +19 -0
- package/dist/esm/generated/generatedClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/generated/generatedClient.js +1 -1
- package/dist/esm/generated/generatedClient.js.map +1 -0
- package/dist/esm/generated/generatedClientContext.d.ts +14 -0
- package/dist/esm/generated/generatedClientContext.d.ts.map +1 -0
- package/dist/esm/generated/generatedClientContext.js.map +1 -0
- package/dist/esm/generated/index.d.ts +4 -0
- package/dist/esm/generated/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/generated/index.js +3 -3
- package/dist/esm/generated/index.js.map +1 -0
- package/dist/esm/generated/models/index.d.ts +323 -0
- package/dist/esm/generated/models/index.d.ts.map +1 -0
- package/dist/esm/generated/models/mappers.d.ts +30 -0
- package/dist/esm/generated/models/mappers.d.ts.map +1 -0
- package/dist/esm/generated/models/parameters.d.ts +31 -0
- package/dist/esm/generated/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/generated/models/parameters.js +1 -1
- package/dist/esm/generated/models/parameters.js.map +1 -0
- package/dist/esm/generated/operations/healthApi.d.ts +18 -0
- package/dist/esm/generated/operations/healthApi.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/generated/operations/healthApi.js +2 -2
- package/dist/esm/generated/operations/healthApi.js.map +1 -0
- package/dist/esm/generated/operations/index.d.ts +3 -0
- package/dist/esm/generated/operations/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/operationsInterfaces → dist/esm/generated/operations}/index.js +2 -2
- package/dist/esm/generated/operations/index.js.map +1 -0
- package/dist/esm/generated/operations/webPubSub.d.ts +249 -0
- package/dist/esm/generated/operations/webPubSub.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/generated/operations/webPubSub.js +2 -2
- package/dist/esm/generated/operations/webPubSub.js.map +1 -0
- package/dist/esm/generated/operationsInterfaces/healthApi.d.ts +10 -0
- package/dist/esm/generated/operationsInterfaces/healthApi.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/generated/operationsInterfaces/healthApi.js.map +1 -1
- package/dist/esm/generated/operationsInterfaces/index.d.ts +3 -0
- package/dist/esm/generated/operationsInterfaces/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/operations → dist/esm/generated/operationsInterfaces}/index.js +2 -2
- package/dist/esm/generated/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/generated/operationsInterfaces/webPubSub.d.ts +224 -0
- package/dist/esm/generated/operationsInterfaces/webPubSub.d.ts.map +1 -0
- package/dist/esm/generated/operationsInterfaces/webPubSub.js.map +1 -0
- package/dist/esm/groupClient.d.ts +232 -0
- package/dist/esm/groupClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/groupClient.js +2 -2
- package/dist/esm/groupClient.js.map +1 -0
- package/dist/esm/hubClient.d.ts +478 -0
- package/dist/esm/hubClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/hubClient.js +9 -9
- package/dist/esm/hubClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/index.js +2 -2
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +5 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/parseConnectionString.d.ts +8 -0
- package/dist/esm/parseConnectionString.d.ts.map +1 -0
- package/dist/esm/reverseProxyPolicy.d.ts +9 -0
- package/dist/esm/reverseProxyPolicy.d.ts.map +1 -0
- package/dist/esm/tracing.d.ts +3 -0
- package/dist/esm/tracing.d.ts.map +1 -0
- package/dist/esm/utils.d.ts +29 -0
- package/dist/esm/utils.d.ts.map +1 -0
- package/dist/esm/webPubSubCredentialPolicy.d.ts +13 -0
- package/dist/esm/webPubSubCredentialPolicy.d.ts.map +1 -0
- package/package.json +56 -52
- package/dist/index.js +0 -2441
- package/dist/index.js.map +0 -1
- package/dist-esm/samples-dev/broadcasting.js +0 -27
- package/dist-esm/samples-dev/broadcasting.js.map +0 -1
- package/dist-esm/samples-dev/directMessage.js +0 -20
- package/dist-esm/samples-dev/directMessage.js.map +0 -1
- package/dist-esm/samples-dev/managingGroups.js +0 -23
- package/dist-esm/samples-dev/managingGroups.js.map +0 -1
- package/dist-esm/src/generated/generatedClient.js.map +0 -1
- package/dist-esm/src/generated/generatedClientContext.js.map +0 -1
- package/dist-esm/src/generated/index.js.map +0 -1
- package/dist-esm/src/generated/models/parameters.js.map +0 -1
- package/dist-esm/src/generated/operations/healthApi.js.map +0 -1
- package/dist-esm/src/generated/operations/index.js.map +0 -1
- package/dist-esm/src/generated/operations/webPubSub.js.map +0 -1
- package/dist-esm/src/generated/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/generated/operationsInterfaces/webPubSub.js.map +0 -1
- package/dist-esm/src/groupClient.js.map +0 -1
- package/dist-esm/src/hubClient.js.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/test/conn.spec.js +0 -23
- package/dist-esm/test/conn.spec.js.map +0 -1
- package/dist-esm/test/groups.spec.js +0 -138
- package/dist-esm/test/groups.spec.js.map +0 -1
- package/dist-esm/test/hubs.spec.js +0 -270
- package/dist-esm/test/hubs.spec.js.map +0 -1
- package/dist-esm/test/integration.spec.js +0 -299
- package/dist-esm/test/integration.spec.js.map +0 -1
- package/dist-esm/test/odata.spec.js +0 -15
- package/dist-esm/test/odata.spec.js.map +0 -1
- package/dist-esm/test/testEnv.js +0 -23
- package/dist-esm/test/testEnv.js.map +0 -1
- /package/{dist-esm/src → dist/esm}/generated/generatedClientContext.js +0 -0
- /package/{dist-esm/src → dist/esm}/generated/models/index.js +0 -0
- /package/{dist-esm/src → dist/esm}/generated/models/index.js.map +0 -0
- /package/{dist-esm/src → dist/esm}/generated/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/esm}/generated/models/mappers.js.map +0 -0
- /package/{dist-esm/src → dist/esm}/generated/operationsInterfaces/healthApi.js +0 -0
- /package/{dist-esm/src → dist/esm}/generated/operationsInterfaces/webPubSub.js +0 -0
- /package/{dist-esm/src → dist/esm}/logger.js +0 -0
- /package/{dist-esm/src → dist/esm}/logger.js.map +0 -0
- /package/{dist-esm/src → dist/esm}/parseConnectionString.js +0 -0
- /package/{dist-esm/src → dist/esm}/parseConnectionString.js.map +0 -0
- /package/{dist-esm/src → dist/esm}/reverseProxyPolicy.js +0 -0
- /package/{dist-esm/src → dist/esm}/reverseProxyPolicy.js.map +0 -0
- /package/{dist-esm/src → dist/esm}/tracing.js +0 -0
- /package/{dist-esm/src → dist/esm}/tracing.js.map +0 -0
- /package/{dist-esm/src → dist/esm}/utils.js +0 -0
- /package/{dist-esm/src → dist/esm}/utils.js.map +0 -0
- /package/{dist-esm/src → dist/esm}/webPubSubCredentialPolicy.js +0 -0
- /package/{dist-esm/src → dist/esm}/webPubSubCredentialPolicy.js.map +0 -0
- /package/{types → dist}/web-pubsub.d.ts +0 -0
@@ -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,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 @@
|
|
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.
|
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
|
8
|
-
"types": "
|
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 &&
|
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": "
|
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": "
|
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
|
24
|
-
"integration-test:node": "dev-tool run test:
|
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
|
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
|
33
|
-
"unit-test:node": "dev-tool run test:
|
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.
|
73
|
-
"@azure/core-client": "^1.
|
74
|
-
"@azure/core-rest-pipeline": "
|
75
|
-
"@azure/core-tracing": "^1.
|
76
|
-
"@azure/logger": "^1.
|
77
|
-
"jsonwebtoken": "^9.0.
|
78
|
-
"tslib": "^2.
|
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": "^
|
82
|
-
"@azure-tools/test-recorder": "
|
83
|
-
"@azure-tools/test-utils": "
|
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/
|
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/
|
91
|
-
"@
|
92
|
-
"
|
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
|
-
"
|
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
|
-
"
|
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
|
}
|