@ms-cloudpack/remote-cache 0.7.6 → 0.7.8

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
@@ -58,9 +58,10 @@ var _RetryDecorator = class _RetryDecorator {
58
58
  this.retryManager = options.retryManager;
59
59
  }
60
60
  printRetryContext(operationName, options, retryContext) {
61
- if (retryContext) {
61
+ var _a;
62
+ if (retryContext.retryAttempt > 0) {
62
63
  console.warn(
63
- `Retrying ${operationName} ${options.friendlyName} ... [${retryContext.retryAttempt}/${retryContext.maxRetries}]`
64
+ `Retrying ${operationName} ${options.friendlyName} ... [${retryContext.retryAttempt}/${(_a = retryContext.policy) == null ? void 0 : _a.maxRetries}]`
64
65
  );
65
66
  }
66
67
  }
@@ -95,10 +96,10 @@ async function createRemoteCacheClient(params) {
95
96
  const azureLogEventHandler = registerAzureLogger();
96
97
  const { context, options } = params;
97
98
  const { container, loginMethod, storageAccount, cachePath, tenantId } = options;
98
- const { getCredential } = await import("./getCredential-MVHPI27L.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");
99
+ const { getCredential } = await import("./getCredential-HXDULEOH.js");
100
+ const { AzureRemoteCacheClient } = await import("./AzureRemoteCacheClient-LMRNY2C6.js");
101
+ const { ReporterDecorator } = await import("./ReporterDecorator-JLGERQ2U.js");
102
+ const { getListOfBlobs } = await import("./getListOfBlobs-TYZM4XYI.js");
102
103
  const credential = await getCredential(
103
104
  { loginMethod, cachePath, tenantId },
104
105
  { ...context, azureLogger: azureLogEventHandler }
@@ -1,3 +1,3 @@
1
- import type { RetryPolicy } from '../types/RetryPolicy.js';
1
+ import type { RetryPolicy } from '@ms-cloudpack/retry';
2
2
  export declare const blockListIsInvalidRetryPolicy: RetryPolicy;
3
3
  //# sourceMappingURL=blockListIsInvalidRetryPolicy.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/remote-cache",
3
- "version": "0.7.6",
3
+ "version": "0.7.8",
4
4
  "description": "Manages syncing the local Cloudpack cached assets to/from a remote storage service.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -28,9 +28,9 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "@azure/msal-node-extensions": "^1.0.10",
31
- "@ms-cloudpack/retry": "^0.1.1",
31
+ "@ms-cloudpack/retry": "^0.1.2",
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",