@ms-cloudpack/remote-cache 0.7.5 → 0.7.7
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/dist/{AzureRemoteCacheClient-ZZ27K4AF.js → AzureRemoteCacheClient-LMRNY2C6.js} +89 -84
- package/dist/{ReporterDecorator-I4CR7TWD.js → ReporterDecorator-JLGERQ2U.js} +2 -2
- package/dist/chunk-TXSHKS6T.js +6686 -0
- package/dist/chunk-VCWIWY5Y.js +26798 -0
- package/dist/{getCredential-3U7LKZRE.js → getCredential-HXDULEOH.js} +10861 -17417
- package/dist/{getListOfBlobs-YTVBR3IU.js → getListOfBlobs-TYZM4XYI.js} +2 -2
- package/dist/index.js +5 -5
- package/lib/authentication/getCredential.d.ts +2 -0
- package/package.json +2 -2
- package/dist/chunk-26KCJU2L.js +0 -914
- package/dist/chunk-OXARBRZV.js +0 -50105
package/dist/index.js
CHANGED
|
@@ -95,13 +95,13 @@ async function createRemoteCacheClient(params) {
|
|
|
95
95
|
const azureLogEventHandler = registerAzureLogger();
|
|
96
96
|
const { context, options } = params;
|
|
97
97
|
const { container, loginMethod, storageAccount, cachePath, tenantId } = options;
|
|
98
|
-
const { getCredential } = await import("./getCredential-
|
|
99
|
-
const { AzureRemoteCacheClient } = await import("./AzureRemoteCacheClient-
|
|
100
|
-
const { ReporterDecorator } = await import("./ReporterDecorator-
|
|
101
|
-
const { getListOfBlobs } = await import("./getListOfBlobs-
|
|
98
|
+
const { getCredential } = await import("./getCredential-HXDULEOH.js");
|
|
99
|
+
const { AzureRemoteCacheClient } = await import("./AzureRemoteCacheClient-LMRNY2C6.js");
|
|
100
|
+
const { ReporterDecorator } = await import("./ReporterDecorator-JLGERQ2U.js");
|
|
101
|
+
const { getListOfBlobs } = await import("./getListOfBlobs-TYZM4XYI.js");
|
|
102
102
|
const credential = await getCredential(
|
|
103
103
|
{ loginMethod, cachePath, tenantId },
|
|
104
|
-
{
|
|
104
|
+
{ ...context, azureLogger: azureLogEventHandler }
|
|
105
105
|
);
|
|
106
106
|
const remoteCacheClientOptions = {
|
|
107
107
|
storageAccount,
|
|
@@ -3,6 +3,7 @@ import { type TokenCredential } from '@azure/identity';
|
|
|
3
3
|
import type { LoginMethod } from '../types/LoginMethod.js';
|
|
4
4
|
import type { TaskReporter } from '@ms-cloudpack/task-reporter';
|
|
5
5
|
import type EventEmitter from 'events';
|
|
6
|
+
import type { TelemetryClient } from '@ms-cloudpack/telemetry';
|
|
6
7
|
/**
|
|
7
8
|
* Gets a credential for the given login method.
|
|
8
9
|
* If the login method is 'azure-cli', it will return an AzureCliCredential.
|
|
@@ -16,5 +17,6 @@ export declare function getCredential(options: {
|
|
|
16
17
|
}, context: {
|
|
17
18
|
reporter: TaskReporter;
|
|
18
19
|
azureLogger: EventEmitter;
|
|
20
|
+
telemetryClient: TelemetryClient;
|
|
19
21
|
}): Promise<TokenCredential>;
|
|
20
22
|
//# sourceMappingURL=getCredential.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/remote-cache",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7",
|
|
4
4
|
"description": "Manages syncing the local Cloudpack cached assets to/from a remote storage service.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@azure/msal-node-extensions": "^1.0.10",
|
|
31
31
|
"@ms-cloudpack/retry": "^0.1.1",
|
|
32
32
|
"@ms-cloudpack/task-reporter": "^0.14.1",
|
|
33
|
-
"@ms-cloudpack/telemetry": "^0.5.
|
|
33
|
+
"@ms-cloudpack/telemetry": "^0.5.3"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@azure/identity": "^4.0.0",
|