@ms-cloudpack/remote-cache 0.7.7 → 0.7.9
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/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
|
-
|
|
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,7 +96,7 @@ 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-
|
|
99
|
+
const { getCredential } = await import("./getCredential-QZKOLRT5.js");
|
|
99
100
|
const { AzureRemoteCacheClient } = await import("./AzureRemoteCacheClient-LMRNY2C6.js");
|
|
100
101
|
const { ReporterDecorator } = await import("./ReporterDecorator-JLGERQ2U.js");
|
|
101
102
|
const { getListOfBlobs } = await import("./getListOfBlobs-TYZM4XYI.js");
|
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.9",
|
|
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,12 +28,12 @@
|
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@azure/msal-node-extensions": "^1.0.10",
|
|
31
|
-
"@ms-cloudpack/retry": "^0.1.
|
|
31
|
+
"@ms-cloudpack/retry": "^0.1.2",
|
|
32
32
|
"@ms-cloudpack/task-reporter": "^0.14.1",
|
|
33
33
|
"@ms-cloudpack/telemetry": "^0.5.3"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@azure/identity": "^4.
|
|
36
|
+
"@azure/identity": "^4.2.1",
|
|
37
37
|
"@azure/identity-cache-persistence": "^1.1.0",
|
|
38
38
|
"@azure/logger": "^1.0.0",
|
|
39
39
|
"@azure/storage-blob": "^12.17.0",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type RetryPolicy = {
|
|
2
|
-
/**
|
|
3
|
-
* The maximum number of retries.
|
|
4
|
-
*/
|
|
5
|
-
maxRetries: number;
|
|
6
|
-
/**
|
|
7
|
-
* Given the error, return true if the operation should be handled by this policy.
|
|
8
|
-
*/
|
|
9
|
-
handle: (error: unknown) => boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Given the retry attempt, return the number of milliseconds to wait before retrying.
|
|
12
|
-
*/
|
|
13
|
-
wait: (retryAttempt: number) => number;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=RetryPolicy.d.ts.map
|