@azure/arm-connectedvmware 1.0.0-alpha.20250120.1 → 1.0.0-alpha.20250122.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +10 -2
  2. package/package.json +18 -19
package/README.md CHANGED
@@ -48,7 +48,9 @@ Set the values of the client ID, tenant ID, and client secret of the AAD applica
48
48
 
49
49
  For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
50
50
 
51
- ```javascript
51
+ Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
52
+
53
+ ```ts snippet:ReadmeSampleCreateClient_Node
52
54
  const { AzureArcVMwareManagementServiceAPI } = require("@azure/arm-connectedvmware");
53
55
  const { DefaultAzureCredential } = require("@azure/identity");
54
56
  // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
@@ -64,6 +66,12 @@ const client = new AzureArcVMwareManagementServiceAPI(new DefaultAzureCredential
64
66
  // const client = new AzureArcVMwareManagementServiceAPI(credential, subscriptionId);
65
67
  ```
66
68
 
69
+ For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
70
+
71
+ ```ts snippet:ReadmeSampleCreateClient_Browser
72
+
73
+ ```
74
+
67
75
  ### JavaScript Bundle
68
76
 
69
77
  To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
@@ -80,7 +88,7 @@ To use this client library in the browser, first you need to use a bundler. For
80
88
 
81
89
  Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
82
90
 
83
- ```javascript
91
+ ```ts snippet:SetLogLevel
84
92
  const { setLogLevel } = require("@azure/logger");
85
93
  setLogLevel("info");
86
94
  ```
package/package.json CHANGED
@@ -3,25 +3,26 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for AzureArcVMwareManagementServiceAPI.",
6
- "version": "1.0.0-alpha.20250120.1",
6
+ "version": "1.0.0-alpha.20250122.2",
7
7
  "engines": {
8
8
  "node": ">=18.0.0"
9
9
  },
10
10
  "dependencies": {
11
- "@azure/abort-controller": "^1.0.0",
12
- "@azure/core-auth": "^1.3.0",
13
- "@azure/core-client": "^1.7.0",
14
- "@azure/core-lro": "^2.5.4",
15
- "@azure/core-paging": "^1.2.0",
16
- "@azure/core-rest-pipeline": "^1.12.0",
17
- "tslib": "^2.2.0"
11
+ "@azure/abort-controller": "^2.1.2",
12
+ "@azure/core-auth": "^1.9.0",
13
+ "@azure/core-client": "^1.9.2",
14
+ "@azure/core-lro": "^2.7.2",
15
+ "@azure/core-paging": "^1.6.2",
16
+ "@azure/core-rest-pipeline": "^1.18.2",
17
+ "tslib": "^2.8.1"
18
18
  },
19
19
  "keywords": [
20
20
  "node",
21
21
  "azure",
22
22
  "typescript",
23
23
  "browser",
24
- "isomorphic"
24
+ "isomorphic",
25
+ "cloud"
25
26
  ],
26
27
  "license": "MIT",
27
28
  "main": "./dist/commonjs/index.js",
@@ -32,19 +33,17 @@
32
33
  "@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
33
34
  "@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
34
35
  "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
35
- "@azure/identity": "^4.0.1",
36
+ "@azure/identity": "^4.5.0",
37
+ "@azure/logger": "^1.1.4",
36
38
  "@types/node": "^18.0.0",
37
- "@vitest/browser": "^2.1.8",
38
- "@vitest/coverage-istanbul": "^2.1.8",
39
+ "@vitest/browser": "^3.0.3",
40
+ "@vitest/coverage-istanbul": "^3.0.3",
39
41
  "dotenv": "^16.0.0",
40
42
  "playwright": "^1.49.1",
41
43
  "typescript": "~5.7.2",
42
- "vitest": "^2.1.8"
43
- },
44
- "repository": {
45
- "type": "git",
46
- "url": "https://github.com/Azure/azure-sdk-for-js.git"
44
+ "vitest": "^3.0.3"
47
45
  },
46
+ "repository": "github:Azure/azure-sdk-for-js",
48
47
  "bugs": {
49
48
  "url": "https://github.com/Azure/azure-sdk-for-js/issues"
50
49
  },
@@ -56,7 +55,7 @@
56
55
  "CHANGELOG.md"
57
56
  ],
58
57
  "scripts": {
59
- "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
58
+ "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
60
59
  "build:browser": "echo skipped",
61
60
  "build:node": "echo skipped",
62
61
  "build:samples": "echo skipped.",
@@ -79,7 +78,7 @@
79
78
  "unit-test": "npm run unit-test:node && npm run unit-test:browser",
80
79
  "unit-test:browser": "echo skipped",
81
80
  "unit-test:node": "dev-tool run test:vitest",
82
- "update-snippets": "echo skipped"
81
+ "update-snippets": "dev-tool run update-snippets"
83
82
  },
84
83
  "sideEffects": false,
85
84
  "//metadata": {