@ms-cloudpack/remote-cache 0.7.7 → 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.
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
|
}
|
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.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,7 +28,7 @@
|
|
|
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
|
},
|
|
@@ -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
|