@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.
@@ -9,8 +9,8 @@ import {
9
9
  } from "./chunk-IVPGYNQL.js";
10
10
  import {
11
11
  require_dist
12
- } from "./chunk-OXARBRZV.js";
13
- import "./chunk-26KCJU2L.js";
12
+ } from "./chunk-VCWIWY5Y.js";
13
+ import "./chunk-TXSHKS6T.js";
14
14
  import {
15
15
  __name,
16
16
  __toESM
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-3U7LKZRE.js");
99
- const { AzureRemoteCacheClient } = await import("./AzureRemoteCacheClient-ZZ27K4AF.js");
100
- const { ReporterDecorator } = await import("./ReporterDecorator-I4CR7TWD.js");
101
- const { getListOfBlobs } = await import("./getListOfBlobs-YTVBR3IU.js");
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
- { reporter: context.reporter, azureLogger: azureLogEventHandler }
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.5",
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.2"
33
+ "@ms-cloudpack/telemetry": "^0.5.3"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@azure/identity": "^4.0.0",