@azure/notification-hubs 1.0.1 → 1.0.2-alpha.20230330.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
|
@@ -10,11 +10,10 @@ var abortController = require('@azure/abort-controller');
|
|
|
10
10
|
var coreTracing = require('@azure/core-tracing');
|
|
11
11
|
var tslib = require('tslib');
|
|
12
12
|
var coreUtil = require('@azure/core-util');
|
|
13
|
-
var uuid = require('uuid');
|
|
14
13
|
|
|
15
14
|
// Copyright (c) Microsoft Corporation.
|
|
16
15
|
// Licensed under the MIT license.
|
|
17
|
-
const SDK_VERSION = "1.0.
|
|
16
|
+
const SDK_VERSION = "1.0.2";
|
|
18
17
|
const JSON_CONTENT_TYPE = "application/json;charset=utf-8";
|
|
19
18
|
const XML_CONTENT_TYPE = "application/xml";
|
|
20
19
|
const STREAM_CONTENT_TYPE = "application/octet-stream";
|
|
@@ -1754,7 +1753,7 @@ function sendNotification(context, notification, options = { enableTestSend: fal
|
|
|
1754
1753
|
// Check for direct batch send
|
|
1755
1754
|
if (isDirectSendNotificationOptions(options) && Array.isArray(options.deviceHandle)) {
|
|
1756
1755
|
endpoint.searchParams.append("direct", "true");
|
|
1757
|
-
const boundary = `nh-boundary-${
|
|
1756
|
+
const boundary = `nh-boundary-${coreUtil.randomUUID()}`;
|
|
1758
1757
|
contentType = `multipart/mixed; boundary = "${boundary}"`;
|
|
1759
1758
|
body = createMultipartDirectNotification(boundary, notification, options.deviceHandle);
|
|
1760
1759
|
}
|