@azure/communication-common
Advanced tools
Comparing version 1.0.0-alpha.20210120.1 to 1.0.0-alpha.20210121.1
@@ -13,2 +13,8 @@ // Copyright (c) Microsoft Corporation. | ||
}; | ||
/** | ||
* Returns an EndpointCredential to easily access properties of the connection string | ||
* | ||
* @param {string} connectionString The connection string to parse | ||
* @returns {EndpointCredential} Object to access the endpoint and the credenials | ||
*/ | ||
export const parseConnectionString = (connectionString) => { | ||
@@ -15,0 +21,0 @@ const parsedConnectionString = tryParseConnectionString(connectionString); |
@@ -6,2 +6,3 @@ // Copyright (c) Microsoft Corporation. | ||
export * from "./clientArguments"; | ||
export * from "./connectionString"; | ||
//# sourceMappingURL=index.js.map |
@@ -282,2 +282,8 @@ 'use strict'; | ||
}; | ||
/** | ||
* Returns an EndpointCredential to easily access properties of the connection string | ||
* | ||
* @param {string} connectionString The connection string to parse | ||
* @returns {EndpointCredential} Object to access the endpoint and the credenials | ||
*/ | ||
const parseConnectionString = (connectionString) => { | ||
@@ -477,2 +483,3 @@ const parsedConnectionString = tryParseConnectionString(connectionString); | ||
exports.parseClientArguments = parseClientArguments; | ||
exports.parseConnectionString = parseConnectionString; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@azure/communication-common", | ||
"version": "1.0.0-alpha.20210120.1", | ||
"version": "1.0.0-alpha.20210121.1", | ||
"description": "Common package for Azure Communication services.", | ||
@@ -5,0 +5,0 @@ "sdk-type": "client", |
@@ -139,2 +139,17 @@ import { AbortSignalLike } from '@azure/core-http'; | ||
/** | ||
* Represents different properties of connection string | ||
* using format "/endpoint=(.*);accesskey=(.*)" | ||
*/ | ||
export declare interface EndpointCredential { | ||
/** | ||
* The endpoint as string | ||
*/ | ||
endpoint: string; | ||
/** | ||
* The access key represented as a KeyCredential object | ||
*/ | ||
credential: KeyCredential; | ||
} | ||
/** | ||
* Returns the CommunicationIdentifierKind for a given CommunicationIdentifier. Returns undefined if the kind couldn't be inferred. | ||
@@ -221,2 +236,10 @@ * | ||
/** | ||
* Returns an EndpointCredential to easily access properties of the connection string | ||
* | ||
* @param {string} connectionString The connection string to parse | ||
* @returns {EndpointCredential} Object to access the endpoint and the credenials | ||
*/ | ||
export declare const parseConnectionString: (connectionString: string) => EndpointCredential; | ||
/** | ||
* A phone number. | ||
@@ -223,0 +246,0 @@ */ |
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 not supported yet
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
142476
1271