Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
CommunicationUserIdentifier,
} from "@azure/communication-common";
import { logger } from "./models/logger";
import { SDK_VERSION } from "./models/constants";
import {
AnswerCallRequest,
CallAutomationApiClient,
Expand Down Expand Up @@ -94,18 +93,11 @@ export class CallAutomationClient {
const options = isCallAutomationClientOptions(credentialOrOptions)
? credentialOrOptions
: maybeOptions;
const libInfo = `azsdk-js-communication-call-automation/${SDK_VERSION}`;

if (!options?.userAgentOptions) {
options.userAgentOptions = {};
}

if (options?.userAgentOptions?.userAgentPrefix) {
options.userAgentOptions.userAgentPrefix = `${options.userAgentOptions.userAgentPrefix} ${libInfo}`;
} else {
options.userAgentOptions.userAgentPrefix = libInfo;
}

this.internalPipelineOptions = {
...options,
...{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Configuration

```yaml
package-name: azure-communication-call-automation
package-name: "@azure/communication-call-automation"
title: CallAutomationApiClient
description: Call Automation Client
generate-metadata: false
Expand Down