@azure/event-hubs
Advanced tools
Comparing version 5.11.5-alpha.20240508.1 to 5.12.0-alpha.20240509.1
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
import { parseConnectionString } from "@azure/core-amqp"; | ||
import { isLoopbackAddress, parseConnectionString } from "@azure/core-amqp"; | ||
/** | ||
@@ -32,3 +32,3 @@ * Parses given connection string into the different properties applicable to Azure Event Hubs. | ||
*/ | ||
function validateProperties(endpoint, sharedAccessSignature, sharedAccessKey, sharedAccessKeyName) { | ||
function validateProperties(endpoint, sharedAccessSignature, sharedAccessKey, sharedAccessKeyName, useDevelopmentEmulator) { | ||
if (!endpoint) { | ||
@@ -48,3 +48,6 @@ throw new Error("Connection string should have an Endpoint key."); | ||
} | ||
if (useDevelopmentEmulator === "true" && !isLoopbackAddress(endpoint)) { | ||
throw new Error("Connection string should either has a loopback address or not have UseDevelopmentEmulator."); | ||
} | ||
} | ||
//# sourceMappingURL=connectionStringUtils.js.map |
@@ -8,3 +8,3 @@ // Copyright (c) Microsoft Corporation. | ||
name: "@azure/event-hubs", | ||
version: "5.11.5", | ||
version: "5.12.0", | ||
}; | ||
@@ -11,0 +11,0 @@ /** |
{ | ||
"name": "@azure/event-hubs", | ||
"sdk-type": "client", | ||
"version": "5.11.5-alpha.20240508.1", | ||
"version": "5.12.0-alpha.20240509.1", | ||
"description": "Azure Event Hubs SDK for JS.", | ||
@@ -6,0 +6,0 @@ "author": "Microsoft Corporation", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1666904
12628