@azure/notification-hubs 1.0.0 → 1.0.1

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/README.md CHANGED
@@ -655,6 +655,14 @@ console.log(`Notification ID: ${result.notificationId}`);
655
655
 
656
656
  ## Troubleshooting
657
657
 
658
+ ## React Native Support
659
+
660
+ React Native currently does not have support for [`URLSearchParams`] which is used by the Azure Notification Hubs SDK. In order to use the SDK in React Native, you will need to install the [`url-search-params-polyfill`](https://www.npmjs.com/package/url-search-params-polyfill) package and import it before using the SDK.
661
+
662
+ ```typescript
663
+ import 'url-search-params-polyfill';
664
+ ```
665
+
658
666
  ### Diagnose Dropped Notifications
659
667
 
660
668
  Azure Notification Hubs has a complete guide to troubleshooting problems with dropped notifications in the [Diagnose dropped notifications in Azure Notification Hubs Guide](https://docs.microsoft.com/azure/notification-hubs/notification-hubs-push-notification-fixer).
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";
17
+ const SDK_VERSION = "1.0.1";
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";
@@ -1697,7 +1697,7 @@ function scheduleNotification(context, scheduledTime, notification, options = {}
1697
1697
  * @returns true if SendNotificationOptions otherwise false.
1698
1698
  */
1699
1699
  function isSendNotificationOptions(options) {
1700
- return coreUtil.objectHasProperty(options, "tags") || coreUtil.objectHasProperty(options, "enableTestSend");
1700
+ return (coreUtil.objectHasProperty(options, "tagExpression") || coreUtil.objectHasProperty(options, "enableTestSend"));
1701
1701
  }
1702
1702
  /**
1703
1703
  * Determines whether the options are of type DirectSendNotificationOptions.