@azure/arm-devspaces 2.1.1-alpha.20250129.1 → 2.1.1-alpha.20250131.1

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 (3) hide show
  1. package/README.md +21 -12
  2. package/package.json +14 -15
  3. package/LICENSE.txt +0 -21
package/README.md CHANGED
@@ -48,20 +48,28 @@ 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
52
- const { DevSpacesManagementClient } = require("@azure/arm-devspaces");
53
- const { DefaultAzureCredential } = require("@azure/identity");
54
- // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
51
+ Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
52
+
53
+ ```ts snippet:ReadmeSampleCreateClient_Node
54
+ import { DevSpacesManagementClient } from "@azure/arm-devspaces";
55
+ import { DefaultAzureCredential } from "@azure/identity";
55
56
 
56
57
  const subscriptionId = "00000000-0000-0000-0000-000000000000";
57
58
  const client = new DevSpacesManagementClient(new DefaultAzureCredential(), subscriptionId);
59
+ ```
60
+
61
+ For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
58
62
 
59
- // For client-side applications running in the browser, use this code instead:
60
- // const credential = new InteractiveBrowserCredential({
61
- // tenantId: "<YOUR_TENANT_ID>",
62
- // clientId: "<YOUR_CLIENT_ID>"
63
- // });
64
- // const client = new DevSpacesManagementClient(credential, subscriptionId);
63
+ ```ts snippet:ReadmeSampleCreateClient_Browser
64
+ import { InteractiveBrowserCredential } from "@azure/identity";
65
+ import { DevSpacesManagementClient } from "@azure/arm-devspaces";
66
+
67
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
68
+ const credential = new InteractiveBrowserCredential({
69
+ tenantId: "<YOUR_TENANT_ID>",
70
+ clientId: "<YOUR_CLIENT_ID>",
71
+ });
72
+ const client = new DevSpacesManagementClient(credential, subscriptionId);
65
73
  ```
66
74
 
67
75
  ### JavaScript Bundle
@@ -80,8 +88,9 @@ 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
84
- const { setLogLevel } = require("@azure/logger");
91
+ ```ts snippet:SetLogLevel
92
+ import { setLogLevel } from "@azure/logger";
93
+
85
94
  setLogLevel("info");
86
95
  ```
87
96
 
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 DevSpacesManagementClient.",
6
- "version": "2.1.1-alpha.20250129.1",
6
+ "version": "2.1.1-alpha.20250131.1",
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.6.1",
11
+ "@azure/abort-controller": "^2.1.2",
12
+ "@azure/core-auth": "^1.9.0",
13
+ "@azure/core-client": "^1.9.2",
14
14
  "@azure/core-lro": "^2.2.0",
15
- "@azure/core-paging": "^1.2.0",
16
- "@azure/core-rest-pipeline": "^1.8.0",
17
- "tslib": "^2.2.0"
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.6.0",
37
+ "@azure/logger": "^1.1.4",
36
38
  "@types/node": "^18.0.0",
37
39
  "@vitest/browser": "^3.0.3",
38
40
  "@vitest/coverage-istanbul": "^3.0.3",
39
- "playwright": "^1.49.1",
41
+ "playwright": "^1.50.0",
40
42
  "typescript": "~5.7.2",
41
43
  "vitest": "^3.0.3"
42
44
  },
43
45
  "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devspaces/arm-devspaces",
44
- "repository": {
45
- "type": "git",
46
- "url": "https://github.com/Azure/azure-sdk-for-js.git"
47
- },
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
  },
@@ -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": {
package/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2018 Microsoft
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.