npm package diff
Package: @actions/cache
Versions: 4.0.2 - 4.0.3
File: package/lib/internal/shared/cacheTwirpClient.js
Index: package/lib/internal/shared/cacheTwirpClient.js
===================================================================
--- package/lib/internal/shared/cacheTwirpClient.js
+++ package/lib/internal/shared/cacheTwirpClient.js
@@ -17,8 +17,9 @@
const cacheUtils_1 = require("../cacheUtils");
const auth_1 = require("@actions/http-client/lib/auth");
const http_client_1 = require("@actions/http-client");
const cache_twirp_client_1 = require("../../generated/results/api/v1/cache.twirp-client");
+const util_1 = require("./util");
/**
* This class is a wrapper around the CacheServiceClientJSON class generated by Twirp.
*
* It adds retry logic to the request method, which is not present in the generated client.
@@ -76,8 +77,9 @@
rawBody = yield response.readBody();
(0, core_1.debug)(`[Response] - ${response.message.statusCode}`);
(0, core_1.debug)(`Headers: ${JSON.stringify(response.message.headers, null, 2)}`);
const body = JSON.parse(rawBody);
+ (0, util_1.maskSecretUrls)(body);
(0, core_1.debug)(`Body: ${JSON.stringify(body, null, 2)}`);
if (this.isSuccessStatusCode(statusCode)) {
return { response, body };
}