@azure/communication-chat 1.3.1 → 1.3.2-alpha.20230515.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/dist/index.js CHANGED
@@ -139,7 +139,7 @@ const mapToReadReceiptSdkModel = (readReceipt) => {
139
139
  const tracingClient = coreTracing.createTracingClient({
140
140
  namespace: "Azure.Communication",
141
141
  packageName: "@azure/communication-chat",
142
- packageVersion: "1.3.1"
142
+ packageVersion: "1.3.2"
143
143
  });
144
144
 
145
145
  /*
@@ -2006,7 +2006,7 @@ class ChatApiClient extends coreClient__namespace.ServiceClient {
2006
2006
  const defaults = {
2007
2007
  requestContentType: "application/json; charset=utf-8"
2008
2008
  };
2009
- const packageDetails = `azsdk-js-communication-chat/1.3.1`;
2009
+ const packageDetails = `azsdk-js-communication-chat/1.3.2`;
2010
2010
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2011
2011
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2012
2012
  : `${packageDetails}`;
@@ -2158,17 +2158,24 @@ class ChatThreadClient {
2158
2158
  }
2159
2159
  listMessagesAll(options) {
2160
2160
  return tslib.__asyncGenerator(this, arguments, function* listMessagesAll_1() {
2161
- var e_1, _a;
2161
+ var _a, e_1, _b, _c;
2162
2162
  try {
2163
- for (var _b = tslib.__asyncValues(this.listMessagesPage({}, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2164
- const page = _c.value;
2165
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2163
+ for (var _d = true, _e = tslib.__asyncValues(this.listMessagesPage({}, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2164
+ _c = _f.value;
2165
+ _d = false;
2166
+ try {
2167
+ const page = _c;
2168
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2169
+ }
2170
+ finally {
2171
+ _d = true;
2172
+ }
2166
2173
  }
2167
2174
  }
2168
2175
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
2169
2176
  finally {
2170
2177
  try {
2171
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2178
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2172
2179
  }
2173
2180
  finally { if (e_1) throw e_1.error; }
2174
2181
  }
@@ -2260,17 +2267,24 @@ class ChatThreadClient {
2260
2267
  }
2261
2268
  listParticipantsAll(options) {
2262
2269
  return tslib.__asyncGenerator(this, arguments, function* listParticipantsAll_1() {
2263
- var e_2, _a;
2270
+ var _a, e_2, _b, _c;
2264
2271
  try {
2265
- for (var _b = tslib.__asyncValues(this.listParticipantsPage({}, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2266
- const page = _c.value;
2267
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2272
+ for (var _d = true, _e = tslib.__asyncValues(this.listParticipantsPage({}, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2273
+ _c = _f.value;
2274
+ _d = false;
2275
+ try {
2276
+ const page = _c;
2277
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2278
+ }
2279
+ finally {
2280
+ _d = true;
2281
+ }
2268
2282
  }
2269
2283
  }
2270
2284
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
2271
2285
  finally {
2272
2286
  try {
2273
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2287
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2274
2288
  }
2275
2289
  finally { if (e_2) throw e_2.error; }
2276
2290
  }
@@ -2370,17 +2384,24 @@ class ChatThreadClient {
2370
2384
  }
2371
2385
  listReadReceiptsAll(options) {
2372
2386
  return tslib.__asyncGenerator(this, arguments, function* listReadReceiptsAll_1() {
2373
- var e_3, _a;
2387
+ var _a, e_3, _b, _c;
2374
2388
  try {
2375
- for (var _b = tslib.__asyncValues(this.listReadReceiptsPage({}, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2376
- const page = _c.value;
2377
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2389
+ for (var _d = true, _e = tslib.__asyncValues(this.listReadReceiptsPage({}, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2390
+ _c = _f.value;
2391
+ _d = false;
2392
+ try {
2393
+ const page = _c;
2394
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2395
+ }
2396
+ finally {
2397
+ _d = true;
2398
+ }
2378
2399
  }
2379
2400
  }
2380
2401
  catch (e_3_1) { e_3 = { error: e_3_1 }; }
2381
2402
  finally {
2382
2403
  try {
2383
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2404
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2384
2405
  }
2385
2406
  finally { if (e_3) throw e_3.error; }
2386
2407
  }
@@ -2532,17 +2553,24 @@ class ChatClient {
2532
2553
  }
2533
2554
  listChatThreadsAll(options) {
2534
2555
  return tslib.__asyncGenerator(this, arguments, function* listChatThreadsAll_1() {
2535
- var e_1, _a;
2556
+ var _a, e_1, _b, _c;
2536
2557
  try {
2537
- for (var _b = tslib.__asyncValues(this.listChatThreadsPage({}, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2538
- const page = _c.value;
2539
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2558
+ for (var _d = true, _e = tslib.__asyncValues(this.listChatThreadsPage({}, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2559
+ _c = _f.value;
2560
+ _d = false;
2561
+ try {
2562
+ const page = _c;
2563
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2564
+ }
2565
+ finally {
2566
+ _d = true;
2567
+ }
2540
2568
  }
2541
2569
  }
2542
2570
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
2543
2571
  finally {
2544
2572
  try {
2545
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2573
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2546
2574
  }
2547
2575
  finally { if (e_1) throw e_1.error; }
2548
2576
  }