@azure/notification-hubs 1.0.0-alpha.20220901.1 → 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
|
@@ -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];
|