@azure/notification-hubs 1.0.0-alpha.20230206.1 → 1.0.0-alpha.20230214.2

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.cjs CHANGED
@@ -46,12 +46,6 @@ function createSasTokenProvider(data) {
46
46
  * @internal
47
47
  */
48
48
  class SasTokenProviderImpl {
49
- /**
50
- * Property used to distinguish TokenProvider from TokenCredential.
51
- */
52
- get isSasTokenProvider() {
53
- return true;
54
- }
55
49
  /**
56
50
  * Initializes a new instance of SasTokenProvider
57
51
  * @param credential - The source `NamedKeyCredential` or `SASCredential`.
@@ -59,6 +53,12 @@ class SasTokenProviderImpl {
59
53
  constructor(credential) {
60
54
  this._credential = credential;
61
55
  }
56
+ /**
57
+ * Property used to distinguish TokenProvider from TokenCredential.
58
+ */
59
+ get isSasTokenProvider() {
60
+ return true;
61
+ }
62
62
  /**
63
63
  * Gets the sas token for the specified audience
64
64
  * @param audience - The audience for which the token is desired.
@@ -1409,24 +1409,17 @@ function listNotificationHubJobs(context, options = {}) {
1409
1409
  // Copyright (c) Microsoft Corporation.
1410
1410
  function listRegistrationsAll(context, options) {
1411
1411
  return tslib.__asyncGenerator(this, arguments, function* listRegistrationsAll_1() {
1412
- var _a, e_1, _b, _c;
1412
+ var e_1, _a;
1413
1413
  try {
1414
- for (var _d = true, _e = tslib.__asyncValues(listRegistrationPagingPage(context, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1415
- _c = _f.value;
1416
- _d = false;
1417
- try {
1418
- const page = _c;
1419
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1420
- }
1421
- finally {
1422
- _d = true;
1423
- }
1414
+ for (var _b = tslib.__asyncValues(listRegistrationPagingPage(context, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1415
+ const page = _c.value;
1416
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1424
1417
  }
1425
1418
  }
1426
1419
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
1427
1420
  finally {
1428
1421
  try {
1429
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1422
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1430
1423
  }
1431
1424
  finally { if (e_1) throw e_1.error; }
1432
1425
  }
@@ -1588,24 +1581,17 @@ function listRegistrationsByTag(context, tag, options = {}) {
1588
1581
  }
1589
1582
  function listRegistrationsByTagAll(context, tag, options) {
1590
1583
  return tslib.__asyncGenerator(this, arguments, function* listRegistrationsByTagAll_1() {
1591
- var _a, e_1, _b, _c;
1584
+ var e_1, _a;
1592
1585
  try {
1593
- for (var _d = true, _e = tslib.__asyncValues(listRegistrationsByTagPagingPage(context, tag, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1594
- _c = _f.value;
1595
- _d = false;
1596
- try {
1597
- const page = _c;
1598
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1599
- }
1600
- finally {
1601
- _d = true;
1602
- }
1586
+ for (var _b = tslib.__asyncValues(listRegistrationsByTagPagingPage(context, tag, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1587
+ const page = _c.value;
1588
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1603
1589
  }
1604
1590
  }
1605
1591
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
1606
1592
  finally {
1607
1593
  try {
1608
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1594
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1609
1595
  }
1610
1596
  finally { if (e_1) throw e_1.error; }
1611
1597
  }