@azure/arm-connectedcache 1.0.0-alpha.20250121.1 → 1.0.0-alpha.20250123.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.
- package/README.md +21 -12
- package/package.json +41 -39
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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 { ConnectedCacheClient } from "@azure/arm-connectedcache";
|
|
55
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
55
56
|
|
|
56
57
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
57
58
|
const client = new ConnectedCacheClient(new DefaultAzureCredential(), subscriptionId);
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
|
58
62
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
```ts snippet:ReadmeSampleCreateClient_Browser
|
|
64
|
+
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
65
|
+
import { ConnectedCacheClient } from "@azure/arm-connectedcache";
|
|
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 ConnectedCacheClient(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
|
-
```
|
|
84
|
-
|
|
91
|
+
```ts snippet:SetLogLevel
|
|
92
|
+
import { setLogLevel } from "@azure/logger";
|
|
93
|
+
|
|
85
94
|
setLogLevel("info");
|
|
86
95
|
```
|
|
87
96
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/arm-connectedcache",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.20250123.1",
|
|
4
4
|
"description": "A generated SDK for ConnectedCacheClient.",
|
|
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,55 +57,55 @@
|
|
|
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/
|
|
63
|
-
"@azure/core-
|
|
64
|
-
"@azure/logger": "^1.0.0",
|
|
65
|
-
"tslib": "^2.6.2",
|
|
61
|
+
"@azure/abort-controller": "^2.1.2",
|
|
62
|
+
"@azure/core-auth": "^1.9.0",
|
|
66
63
|
"@azure/core-lro": "^3.1.0",
|
|
67
|
-
"@azure/
|
|
64
|
+
"@azure/core-rest-pipeline": "^1.18.2",
|
|
65
|
+
"@azure/core-util": "^1.11.0",
|
|
66
|
+
"@azure/logger": "^1.1.4",
|
|
67
|
+
"tslib": "^2.8.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"
|
|
70
|
+
"@azure-tools/test-credential": "^2.0.0",
|
|
71
|
+
"@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
|
|
72
|
+
"@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
|
|
73
|
+
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
|
|
74
|
+
"@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
|
|
75
|
+
"@azure/identity": "^4.6.0",
|
|
71
76
|
"@types/node": "^18.0.0",
|
|
77
|
+
"@vitest/browser": "^3.0.3",
|
|
78
|
+
"@vitest/coverage-istanbul": "^3.0.3",
|
|
79
|
+
"dotenv": "^16.0.0",
|
|
72
80
|
"eslint": "^9.9.0",
|
|
81
|
+
"playwright": "^1.49.1",
|
|
73
82
|
"typescript": "~5.7.2",
|
|
74
|
-
"
|
|
75
|
-
"@azure/identity": "^4.2.1",
|
|
76
|
-
"@vitest/browser": "^2.0.5",
|
|
77
|
-
"@vitest/coverage-istanbul": "^2.0.5",
|
|
78
|
-
"playwright": "^1.41.2",
|
|
79
|
-
"vitest": "^2.0.5",
|
|
80
|
-
"@azure-tools/test-credential": "^2.0.0",
|
|
81
|
-
"@azure-tools/test-recorder": "^4.0.0",
|
|
82
|
-
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
|
|
83
|
-
"@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb"
|
|
83
|
+
"vitest": "^3.0.3"
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
86
|
-
"
|
|
87
|
-
"extract-api": "dev-tool run vendored rimraf review && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
|
|
88
|
-
"pack": "npm pack 2>&1",
|
|
89
|
-
"lint": "echo skipped",
|
|
90
|
-
"lint:fix": "echo skipped",
|
|
91
|
-
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
92
|
-
"unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser",
|
|
93
|
-
"unit-test:node": "dev-tool run test:vitest",
|
|
94
|
-
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
95
|
-
"integration-test:browser": "echo skipped",
|
|
96
|
-
"integration-test:node": "echo skipped",
|
|
86
|
+
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
|
|
97
87
|
"build:samples": "tsc -p tsconfig.samples.json && dev-tool samples publish -f",
|
|
88
|
+
"build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test",
|
|
98
89
|
"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}\" \"samples-dev/*.ts\"",
|
|
90
|
+
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
99
91
|
"execute:samples": "dev-tool samples run samples-dev",
|
|
92
|
+
"extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api",
|
|
100
93
|
"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}\" \"samples-dev/*.ts\"",
|
|
101
94
|
"generate:client": "echo skipped",
|
|
102
|
-
"test
|
|
95
|
+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
96
|
+
"integration-test:browser": "echo skipped",
|
|
97
|
+
"integration-test:node": "dev-tool run test:vitest --esm",
|
|
98
|
+
"lint": "echo skipped",
|
|
99
|
+
"lint:fix": "echo skipped",
|
|
103
100
|
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
104
|
-
"
|
|
105
|
-
"build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
|
|
106
|
-
"test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node",
|
|
101
|
+
"pack": "npm pack 2>&1",
|
|
107
102
|
"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",
|
|
108
|
-
"
|
|
103
|
+
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
|
|
104
|
+
"test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node",
|
|
105
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
106
|
+
"unit-test:browser": "echo skipped",
|
|
107
|
+
"unit-test:node": "dev-tool run test:vitest",
|
|
108
|
+
"update-snippets": "dev-tool run update-snippets"
|
|
109
109
|
},
|
|
110
110
|
"//sampleConfiguration": {
|
|
111
111
|
"productName": "@azure/arm-connectedcache",
|
|
@@ -156,5 +156,7 @@
|
|
|
156
156
|
},
|
|
157
157
|
"main": "./dist/commonjs/index.js",
|
|
158
158
|
"types": "./dist/commonjs/index.d.ts",
|
|
159
|
-
"module": "./dist/esm/index.js"
|
|
159
|
+
"module": "./dist/esm/index.js",
|
|
160
|
+
"browser": "./dist/browser/index.js",
|
|
161
|
+
"react-native": "./dist/react-native/index.js"
|
|
160
162
|
}
|