@azure/communication-chat
Advanced tools
Comparing version 1.0.0-alpha.20210301.1 to 1.0.0-alpha.20210303.1
@@ -11,5 +11,5 @@ // Copyright (c) Microsoft Corporation. | ||
return bearerTokenAuthenticationPolicy({ | ||
getToken: (_scopes, options) => credential.getToken(options === null || options === void 0 ? void 0 : options.abortSignal) | ||
getToken: (_scopes, options) => credential.getToken({ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }) | ||
}, []); | ||
}; | ||
//# sourceMappingURL=communicationTokenCredentialPolicy.js.map |
@@ -5,4 +5,19 @@ // Copyright (c) Microsoft Corporation. | ||
export const getSignalingClient = (credential, logger) => { | ||
return new CommunicationSignalingClient(credential, logger); | ||
return new CommunicationSignalingClient(new SignalingCredentialType(credential), logger); | ||
}; | ||
/** | ||
* Bridge credential until @azure/communication-signaling has been updated | ||
* to match common's CommunicationTokenCredential interface. | ||
*/ | ||
class SignalingCredentialType { | ||
constructor(credential) { | ||
this.credential = credential; | ||
} | ||
getToken(abortSignal) { | ||
return this.credential.getToken({ abortSignal }); | ||
} | ||
dispose() { | ||
this.credential.dispose(); | ||
} | ||
} | ||
//# sourceMappingURL=signalingClient.browser.js.map |
{ | ||
"name": "@azure/communication-chat", | ||
"version": "1.0.0-alpha.20210301.1", | ||
"version": "1.0.0-alpha.20210303.1", | ||
"description": "Azure client library for Azure Communication Chat services", | ||
@@ -5,0 +5,0 @@ "sdk-type": "client", |
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 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
644378
7255