@azure/communication-chat 1.5.2 → 1.5.3

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/dist/index.js CHANGED
@@ -32,7 +32,7 @@ function _interopNamespaceDefault(e) {
32
32
  var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
33
33
 
34
34
  // Copyright (c) Microsoft Corporation.
35
- // Licensed under the MIT license.
35
+ // Licensed under the MIT License.
36
36
  const mapToCreateChatThreadOptionsRestModel = (options) => {
37
37
  const { participants, idempotencyToken } = options, rest = tslib.__rest(options, ["participants", "idempotencyToken"]);
38
38
  return Object.assign({ repeatabilityRequestId: idempotencyToken }, rest);
@@ -2119,11 +2119,11 @@ class ChatApiClient extends coreClient__namespace.ServiceClient {
2119
2119
  }
2120
2120
 
2121
2121
  // Copyright (c) Microsoft Corporation.
2122
- // Licensed under the MIT license.
2122
+ // Licensed under the MIT License.
2123
2123
  const logger = logger$1.createClientLogger("communication-chat");
2124
2124
 
2125
2125
  // Copyright (c) Microsoft Corporation.
2126
- // Licensed under the MIT license.
2126
+ // Licensed under the MIT License.
2127
2127
  /**
2128
2128
  * Creates a new CommunicationTokenCredentialPolicy factory.
2129
2129
  *
@@ -2140,7 +2140,7 @@ const createCommunicationTokenCredentialPolicy = (credential) => {
2140
2140
  };
2141
2141
 
2142
2142
  // Copyright (c) Microsoft Corporation.
2143
- // Licensed under the MIT license.
2143
+ // Licensed under the MIT License.
2144
2144
  const minimumTypingIntervalInMilliSeconds = 8000;
2145
2145
  /**
2146
2146
  * The client to do chat operations
@@ -2509,7 +2509,7 @@ class ChatThreadClient {
2509
2509
  }
2510
2510
 
2511
2511
  // Copyright (c) Microsoft Corporation.
2512
- // Licensed under the MIT license.
2512
+ // Licensed under the MIT License.
2513
2513
  /**
2514
2514
  * Generated Universally Unique Identifier
2515
2515
  *
@@ -2521,15 +2521,16 @@ function generateUuid() {
2521
2521
  }
2522
2522
 
2523
2523
  // Copyright (c) Microsoft Corporation.
2524
- // Licensed under the MIT license.
2524
+ // Licensed under the MIT License.
2525
2525
  const getSignalingClient = (credential, logger, options) => {
2526
- var _a, _b, _c;
2526
+ var _a, _b, _c, _d;
2527
2527
  if (typeof navigator !== "undefined" && navigator.product === "ReactNative") {
2528
2528
  // In React Native
2529
2529
  return new communicationSignaling.CommunicationSignalingClient(credential, logger, {
2530
- environment: (_a = options === null || options === void 0 ? void 0 : options.environment) !== null && _a !== void 0 ? _a : undefined,
2531
- resourceEndpoint: (_b = options === null || options === void 0 ? void 0 : options.resourceEndpoint) !== null && _b !== void 0 ? _b : undefined,
2532
- gatewayApiVersion: (_c = options === null || options === void 0 ? void 0 : options.gatewayApiVersion) !== null && _c !== void 0 ? _c : undefined,
2530
+ resourceEndpoint: (_a = options === null || options === void 0 ? void 0 : options.resourceEndpoint) !== null && _a !== void 0 ? _a : undefined,
2531
+ gatewayApiVersion: (_b = options === null || options === void 0 ? void 0 : options.gatewayApiVersion) !== null && _b !== void 0 ? _b : undefined,
2532
+ additionalPolicies: (_c = options === null || options === void 0 ? void 0 : options.additionalPolicies) !== null && _c !== void 0 ? _c : undefined,
2533
+ userAgentOptions: (_d = options === null || options === void 0 ? void 0 : options.userAgentOptions) !== null && _d !== void 0 ? _d : undefined,
2533
2534
  });
2534
2535
  }
2535
2536
  // In node js
@@ -2537,7 +2538,7 @@ const getSignalingClient = (credential, logger, options) => {
2537
2538
  };
2538
2539
 
2539
2540
  // Copyright (c) Microsoft Corporation.
2540
- // Licensed under the MIT license.
2541
+ // Licensed under the MIT License.
2541
2542
  /// <reference lib="esnext.asynciterable" />
2542
2543
  /**
2543
2544
  * The client to do chat operations