@azure/notification-hubs 1.0.0-alpha.20220825.3 → 1.0.0-alpha.20220906.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
@@ -13,7 +13,7 @@ var tslib = require('tslib');
13
13
 
14
14
  // Copyright (c) Microsoft Corporation.
15
15
  // Licensed under the MIT license.
16
- const SDK_VERSION = "1.0.0-beta.3";
16
+ const SDK_VERSION = "1.0.0-beta.4";
17
17
  const JSON_CONTENT_TYPE = "application/json;charset=utf-8";
18
18
  const XML_CONTENT_TYPE = "application/xml";
19
19
  const STREAM_CONTENT_TYPE = "application/octet-stream";
@@ -565,6 +565,9 @@ const registrationDescriptionParser = {
565
565
  async parseRegistrationFeed(bodyText) {
566
566
  const xml = await coreXml.parseXML(bodyText, { includeRoot: true });
567
567
  const results = [];
568
+ if (!isDefined(xml.feed.entry)) {
569
+ return results;
570
+ }
568
571
  for (const entry of xml.feed.entry) {
569
572
  delete entry.content["$"];
570
573
  const keyName = Object.keys(entry.content)[0];