@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 +16 -30
- package/dist/index.cjs.map +1 -1
- package/dist-esm/src/api/internal/_listRegistrations.js +5 -12
- package/dist-esm/src/api/internal/_listRegistrations.js.map +1 -1
- package/dist-esm/src/api/listRegistrationsByTag.js +5 -12
- package/dist-esm/src/api/listRegistrationsByTag.js.map +1 -1
- package/dist-esm/src/auth/sasTokenProvider.js +6 -6
- package/dist-esm/src/auth/sasTokenProvider.js.map +1 -1
- package/package.json +9 -3
- package/types/src/auth/connectionStringUtils.d.ts +1 -1
- package/types/src/auth/connectionStringUtils.d.ts.map +1 -1
- package/types/src/models/installation.d.ts +3 -3
- package/types/src/models/installation.d.ts.map +1 -1
- package/types/src/models/notification.d.ts +2 -2
- package/types/src/models/notification.d.ts.map +1 -1
- package/types/src/models/notificationBodyBuilder.d.ts +1 -1
- package/types/src/models/notificationBodyBuilder.d.ts.map +1 -1
- package/types/src/models/notificationDetails.d.ts +1 -1
- package/types/src/models/notificationDetails.d.ts.map +1 -1
- package/types/src/models/notificationHubJob.d.ts +3 -3
- package/types/src/models/notificationHubJob.d.ts.map +1 -1
- package/types/src/models/registration.d.ts +3 -3
- package/types/src/models/registration.d.ts.map +1 -1
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
|
|
1412
|
+
var e_1, _a;
|
|
1413
1413
|
try {
|
|
1414
|
-
for (var
|
|
1415
|
-
|
|
1416
|
-
|
|
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 (
|
|
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
|
|
1584
|
+
var e_1, _a;
|
|
1592
1585
|
try {
|
|
1593
|
-
for (var
|
|
1594
|
-
|
|
1595
|
-
|
|
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 (
|
|
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
|
}
|