@azure/arm-edgezones 1.0.0-alpha.20250130.1 → 1.0.0-alpha.20250203.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.
- package/LICENSE +4 -4
- package/README.md +21 -12
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/package.json +40 -38
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
Copyright (c) Microsoft Corporation.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
MIT License
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -12,10 +12,10 @@ furnished to do so, subject to the following conditions:
|
|
|
12
12
|
The above copyright notice and this permission notice shall be included in all
|
|
13
13
|
copies or substantial portions of the Software.
|
|
14
14
|
|
|
15
|
-
THE SOFTWARE IS PROVIDED
|
|
15
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -47,20 +47,28 @@ Set the values of the client ID, tenant ID, and client secret of the AAD applica
|
|
|
47
47
|
|
|
48
48
|
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).
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
|
|
51
|
+
|
|
52
|
+
```ts snippet:ReadmeSampleCreateClient_Node
|
|
53
|
+
import { EdgeZonesClient } from "@azure/arm-edgezones";
|
|
54
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
54
55
|
|
|
55
56
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
56
57
|
const client = new EdgeZonesClient(new DefaultAzureCredential(), subscriptionId);
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
|
57
61
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
```ts snippet:ReadmeSampleCreateClient_Browser
|
|
63
|
+
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
64
|
+
import { EdgeZonesClient } from "@azure/arm-edgezones";
|
|
65
|
+
|
|
66
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
67
|
+
const credential = new InteractiveBrowserCredential({
|
|
68
|
+
tenantId: "<YOUR_TENANT_ID>",
|
|
69
|
+
clientId: "<YOUR_CLIENT_ID>",
|
|
70
|
+
});
|
|
71
|
+
const client = new EdgeZonesClient(credential, subscriptionId);
|
|
64
72
|
```
|
|
65
73
|
|
|
66
74
|
### JavaScript Bundle
|
|
@@ -79,8 +87,9 @@ To use this client library in the browser, first you need to use a bundler. For
|
|
|
79
87
|
|
|
80
88
|
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`:
|
|
81
89
|
|
|
82
|
-
```
|
|
83
|
-
|
|
90
|
+
```ts snippet:SetLogLevel
|
|
91
|
+
import { setLogLevel } from "@azure/logger";
|
|
92
|
+
|
|
84
93
|
setLogLevel("info");
|
|
85
94
|
```
|
|
86
95
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/arm-edgezones",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.20250203.2",
|
|
4
4
|
"description": "A generated SDK for EdgeZonesClient.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"autoPublish": false,
|
|
10
10
|
"tshy": {
|
|
11
|
+
"project": "./tsconfig.src.json",
|
|
11
12
|
"exports": {
|
|
12
13
|
"./package.json": "./package.json",
|
|
13
14
|
".": "./src/index.ts",
|
|
@@ -21,8 +22,7 @@
|
|
|
21
22
|
"browser",
|
|
22
23
|
"react-native"
|
|
23
24
|
],
|
|
24
|
-
"selfLink": false
|
|
25
|
-
"project": "./tsconfig.src.json"
|
|
25
|
+
"selfLink": false
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
28
|
"keywords": [
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"author": "Microsoft Corporation",
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"files": [
|
|
39
|
-
"dist",
|
|
39
|
+
"dist/",
|
|
40
40
|
"README.md",
|
|
41
41
|
"LICENSE",
|
|
42
|
-
"review
|
|
42
|
+
"review/",
|
|
43
43
|
"CHANGELOG.md"
|
|
44
44
|
],
|
|
45
45
|
"sdk-type": "mgmt",
|
|
@@ -57,53 +57,53 @@
|
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@azure/core-util": "^1.9.2",
|
|
61
60
|
"@azure-rest/core-client": "^2.3.1",
|
|
62
|
-
"@azure/core-auth": "^1.
|
|
63
|
-
"@azure/core-rest-pipeline": "^1.
|
|
64
|
-
"@azure/
|
|
65
|
-
"
|
|
61
|
+
"@azure/core-auth": "^1.9.0",
|
|
62
|
+
"@azure/core-rest-pipeline": "^1.18.2",
|
|
63
|
+
"@azure/core-util": "^1.11.0",
|
|
64
|
+
"@azure/logger": "^1.1.4",
|
|
65
|
+
"tslib": "^2.8.1"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"
|
|
68
|
+
"@azure-tools/test-credential": "^2.0.0",
|
|
69
|
+
"@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
|
|
70
|
+
"@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
|
|
71
|
+
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
|
|
72
|
+
"@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
|
|
73
|
+
"@azure/identity": "^4.6.0",
|
|
69
74
|
"@types/node": "^18.0.0",
|
|
70
|
-
"eslint": "^9.9.0",
|
|
71
|
-
"typescript": "~5.7.2",
|
|
72
|
-
"tshy": "^2.0.0",
|
|
73
|
-
"@azure/identity": "^4.2.1",
|
|
74
75
|
"@vitest/browser": "^3.0.3",
|
|
75
76
|
"@vitest/coverage-istanbul": "^3.0.3",
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb"
|
|
77
|
+
"dotenv": "^16.0.0",
|
|
78
|
+
"eslint": "^9.9.0",
|
|
79
|
+
"playwright": "^1.50.1",
|
|
80
|
+
"typescript": "~5.7.2",
|
|
81
|
+
"vitest": "^3.0.3"
|
|
82
82
|
},
|
|
83
83
|
"scripts": {
|
|
84
|
-
"
|
|
85
|
-
"extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api",
|
|
86
|
-
"pack": "npm pack 2>&1",
|
|
87
|
-
"lint": "echo skipped",
|
|
88
|
-
"lint:fix": "echo skipped",
|
|
89
|
-
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
90
|
-
"unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser",
|
|
91
|
-
"unit-test:node": "dev-tool run test:vitest",
|
|
92
|
-
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
93
|
-
"integration-test:browser": "echo skipped",
|
|
94
|
-
"integration-test:node": "echo skipped",
|
|
84
|
+
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
|
|
95
85
|
"build:samples": "echo skipped",
|
|
86
|
+
"build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test",
|
|
96
87
|
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
|
|
88
|
+
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
97
89
|
"execute:samples": "echo skipped",
|
|
90
|
+
"extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api",
|
|
98
91
|
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
|
|
99
92
|
"generate:client": "echo skipped",
|
|
100
|
-
"test
|
|
93
|
+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
94
|
+
"integration-test:browser": "echo skipped",
|
|
95
|
+
"integration-test:node": "dev-tool run test:vitest --esm",
|
|
96
|
+
"lint": "echo skipped",
|
|
97
|
+
"lint:fix": "echo skipped",
|
|
101
98
|
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
102
|
-
"
|
|
103
|
-
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
|
|
104
|
-
"test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node",
|
|
99
|
+
"pack": "npm pack 2>&1",
|
|
105
100
|
"test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
|
|
106
|
-
"
|
|
101
|
+
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
|
|
102
|
+
"test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node",
|
|
103
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
104
|
+
"unit-test:browser": "echo skipped",
|
|
105
|
+
"unit-test:node": "dev-tool run test:vitest",
|
|
106
|
+
"update-snippets": "dev-tool run update-snippets"
|
|
107
107
|
},
|
|
108
108
|
"exports": {
|
|
109
109
|
"./package.json": "./package.json",
|
|
@@ -146,5 +146,7 @@
|
|
|
146
146
|
},
|
|
147
147
|
"main": "./dist/commonjs/index.js",
|
|
148
148
|
"types": "./dist/commonjs/index.d.ts",
|
|
149
|
-
"module": "./dist/esm/index.js"
|
|
149
|
+
"module": "./dist/esm/index.js",
|
|
150
|
+
"browser": "./dist/browser/index.js",
|
|
151
|
+
"react-native": "./dist/react-native/index.js"
|
|
150
152
|
}
|