|
|
@ -3278,10 +3278,9 @@ function reserveCache(key, paths, options) {
|
|
|
|
version,
|
|
|
|
version,
|
|
|
|
cacheSize: options === null || options === void 0 ? void 0 : options.cacheSize
|
|
|
|
cacheSize: options === null || options === void 0 ? void 0 : options.cacheSize
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const response = yield requestUtils_1.retryHttpClientResponse('reserveCache', () => __awaiter(this, void 0, void 0, function* () {
|
|
|
|
const response = yield requestUtils_1.retryTypedResponse('reserveCache', () => __awaiter(this, void 0, void 0, function* () {
|
|
|
|
return httpClient.post(getCacheApiUrl('caches'), JSON.stringify(reserveCacheRequest));
|
|
|
|
return httpClient.postJson(getCacheApiUrl('caches'), reserveCacheRequest);
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
console.log("\n\nResponse\n\n");
|
|
|
|
|
|
|
|
console.log(response);
|
|
|
|
console.log(response);
|
|
|
|
return response;
|
|
|
|
return response;
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -51566,7 +51565,9 @@ function retryTypedResponse(name, method, maxAttempts = constants_1.DefaultRetry
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
statusCode: error.statusCode,
|
|
|
|
statusCode: error.statusCode,
|
|
|
|
result: null,
|
|
|
|
result: null,
|
|
|
|
headers: {}
|
|
|
|
headers: {},
|
|
|
|
|
|
|
|
message: error.message,
|
|
|
|
|
|
|
|
typeKey: error.result
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|