@azure/notification-hubs 1.0.0-alpha.20221121.3 → 1.0.0-alpha.20221128.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.cjs +31 -17
- package/dist/index.cjs.map +1 -1
- package/dist-esm/src/api/internal/_listRegistrations.js +12 -5
- package/dist-esm/src/api/internal/_listRegistrations.js.map +1 -1
- package/dist-esm/src/api/listRegistrationsByTag.js +12 -5
- 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/dist-esm/src/utils/constants.js +1 -1
- package/dist-esm/src/utils/constants.js.map +1 -1
- package/package.json +3 -3
- package/types/latest/tsdoc-metadata.json +1 -1
- 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
|
@@ -14,7 +14,7 @@ var uuid = require('uuid');
|
|
|
14
14
|
|
|
15
15
|
// Copyright (c) Microsoft Corporation.
|
|
16
16
|
// Licensed under the MIT license.
|
|
17
|
-
const SDK_VERSION = "1.0.0-beta.
|
|
17
|
+
const SDK_VERSION = "1.0.0-beta.9";
|
|
18
18
|
const JSON_CONTENT_TYPE = "application/json;charset=utf-8";
|
|
19
19
|
const XML_CONTENT_TYPE = "application/xml";
|
|
20
20
|
const STREAM_CONTENT_TYPE = "application/octet-stream";
|
|
@@ -46,6 +46,12 @@ 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
|
+
}
|
|
49
55
|
/**
|
|
50
56
|
* Initializes a new instance of SasTokenProvider
|
|
51
57
|
* @param credential - The source `NamedKeyCredential` or `SASCredential`.
|
|
@@ -53,12 +59,6 @@ class SasTokenProviderImpl {
|
|
|
53
59
|
constructor(credential) {
|
|
54
60
|
this._credential = credential;
|
|
55
61
|
}
|
|
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.
|
|
@@ -1410,17 +1410,24 @@ function listNotificationHubJobs(context, options = {}) {
|
|
|
1410
1410
|
// Copyright (c) Microsoft Corporation.
|
|
1411
1411
|
function listRegistrationsAll(context, options) {
|
|
1412
1412
|
return tslib.__asyncGenerator(this, arguments, function* listRegistrationsAll_1() {
|
|
1413
|
-
var e_1,
|
|
1413
|
+
var _a, e_1, _b, _c;
|
|
1414
1414
|
try {
|
|
1415
|
-
for (var
|
|
1416
|
-
|
|
1417
|
-
|
|
1415
|
+
for (var _d = true, _e = tslib.__asyncValues(listRegistrationPagingPage(context, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1416
|
+
_c = _f.value;
|
|
1417
|
+
_d = false;
|
|
1418
|
+
try {
|
|
1419
|
+
const page = _c;
|
|
1420
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1421
|
+
}
|
|
1422
|
+
finally {
|
|
1423
|
+
_d = true;
|
|
1424
|
+
}
|
|
1418
1425
|
}
|
|
1419
1426
|
}
|
|
1420
1427
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1421
1428
|
finally {
|
|
1422
1429
|
try {
|
|
1423
|
-
if (
|
|
1430
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1424
1431
|
}
|
|
1425
1432
|
finally { if (e_1) throw e_1.error; }
|
|
1426
1433
|
}
|
|
@@ -1582,17 +1589,24 @@ function listRegistrationsByTag(context, tag, options = {}) {
|
|
|
1582
1589
|
}
|
|
1583
1590
|
function listRegistrationsByTagAll(context, tag, options) {
|
|
1584
1591
|
return tslib.__asyncGenerator(this, arguments, function* listRegistrationsByTagAll_1() {
|
|
1585
|
-
var e_1,
|
|
1592
|
+
var _a, e_1, _b, _c;
|
|
1586
1593
|
try {
|
|
1587
|
-
for (var
|
|
1588
|
-
|
|
1589
|
-
|
|
1594
|
+
for (var _d = true, _e = tslib.__asyncValues(listRegistrationsByTagPagingPage(context, tag, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1595
|
+
_c = _f.value;
|
|
1596
|
+
_d = false;
|
|
1597
|
+
try {
|
|
1598
|
+
const page = _c;
|
|
1599
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1600
|
+
}
|
|
1601
|
+
finally {
|
|
1602
|
+
_d = true;
|
|
1603
|
+
}
|
|
1590
1604
|
}
|
|
1591
1605
|
}
|
|
1592
1606
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1593
1607
|
finally {
|
|
1594
1608
|
try {
|
|
1595
|
-
if (
|
|
1609
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1596
1610
|
}
|
|
1597
1611
|
finally { if (e_1) throw e_1.error; }
|
|
1598
1612
|
}
|