@azure/arm-botservice
Advanced tools
Comparing version 4.0.1-alpha.20250110.1 to 4.0.1-alpha.20250113.2
@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard. | ||
"packageName": "@microsoft/api-extractor", | ||
"packageVersion": "7.48.1" | ||
"packageVersion": "7.49.1" | ||
} | ||
] | ||
} |
@@ -6,3 +6,3 @@ { | ||
"description": "A generated SDK for AzureBotService.", | ||
"version": "4.0.1-alpha.20250110.1", | ||
"version": "4.0.1-alpha.20250113.2", | ||
"engines": { | ||
@@ -12,9 +12,9 @@ "node": ">=18.0.0" | ||
"dependencies": { | ||
"@azure/abort-controller": "^1.0.0", | ||
"@azure/core-auth": "^1.3.0", | ||
"@azure/core-client": "^1.6.1", | ||
"@azure/core-lro": "^2.2.0", | ||
"@azure/core-paging": "^1.2.0", | ||
"@azure/core-rest-pipeline": "^1.8.0", | ||
"tslib": "^2.2.0" | ||
"@azure/abort-controller": "^2.1.2", | ||
"@azure/core-auth": "^1.9.0", | ||
"@azure/core-client": "^1.9.2", | ||
"@azure/core-lro": "^2.7.2", | ||
"@azure/core-paging": "^1.6.2", | ||
"@azure/core-rest-pipeline": "^1.18.0", | ||
"tslib": "^2.8.1" | ||
}, | ||
@@ -26,3 +26,4 @@ "keywords": [ | ||
"browser", | ||
"isomorphic" | ||
"isomorphic", | ||
"cloud" | ||
], | ||
@@ -38,3 +39,4 @@ "license": "MIT", | ||
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb", | ||
"@azure/identity": "^4.0.1", | ||
"@azure/identity": "^4.5.0", | ||
"@azure/logger": "^1.1.4", | ||
"@types/node": "^18.0.0", | ||
@@ -48,6 +50,3 @@ "@vitest/browser": "^2.1.8", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Azure/azure-sdk-for-js.git" | ||
}, | ||
"repository": "github:Azure/azure-sdk-for-js", | ||
"bugs": { | ||
@@ -87,3 +86,3 @@ "url": "https://github.com/Azure/azure-sdk-for-js/issues" | ||
"unit-test:node": "dev-tool run test:vitest", | ||
"update-snippets": "echo skipped" | ||
"update-snippets": "dev-tool run update-snippets" | ||
}, | ||
@@ -90,0 +89,0 @@ "sideEffects": false, |
@@ -51,16 +51,24 @@ # Azure Bot client library for JavaScript | ||
```javascript | ||
const { AzureBotService } = require("@azure/arm-botservice"); | ||
const { DefaultAzureCredential } = require("@azure/identity"); | ||
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details. | ||
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client. | ||
```ts snippet:ReadmeSampleCreateClient_Node | ||
import { AzureBotService } from "@azure/arm-botservice"; | ||
import { DefaultAzureCredential } from "@azure/identity"; | ||
const subscriptionId = "00000000-0000-0000-0000-000000000000"; | ||
const client = new AzureBotService(new DefaultAzureCredential(), subscriptionId); | ||
``` | ||
// For client-side applications running in the browser, use this code instead: | ||
// const credential = new InteractiveBrowserCredential({ | ||
// tenantId: "<YOUR_TENANT_ID>", | ||
// clientId: "<YOUR_CLIENT_ID>" | ||
// }); | ||
// const client = new AzureBotService(credential, subscriptionId); | ||
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate. | ||
```ts snippet:ReadmeSampleCreateClient_Browser | ||
import { InteractiveBrowserCredential } from "@azure/identity"; | ||
import { AzureBotService } from "@azure/arm-botservice"; | ||
const subscriptionId = "00000000-0000-0000-0000-000000000000"; | ||
const credential = new InteractiveBrowserCredential({ | ||
tenantId: "<YOUR_TENANT_ID>", | ||
clientId: "<YOUR_CLIENT_ID>", | ||
}); | ||
const client = new AzureBotService(credential, subscriptionId); | ||
``` | ||
@@ -84,4 +92,5 @@ | ||
```javascript | ||
const { setLogLevel } = require("@azure/logger"); | ||
```ts snippet:SetLogLevel | ||
import { setLogLevel } from "@azure/logger"; | ||
setLogLevel("info"); | ||
@@ -88,0 +97,0 @@ ``` |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
2777474
119
13
1
- Removed@azure/abort-controller@1.1.0(transitive)
Updated@azure/core-auth@^1.9.0
Updated@azure/core-client@^1.9.2
Updated@azure/core-lro@^2.7.2
Updated@azure/core-paging@^1.6.2
Updatedtslib@^2.8.1