@@ -17590,12 +17590,12 @@ var require_lib = __commonJS({
17590
17590
throw new Error("Client has already been disposed.");
17591
17591
}
17592
17592
const parsedUrl = new URL(requestUrl);
17593
- let info4 = this._prepareRequest(verb, parsedUrl, headers);
17593
+ let info3 = this._prepareRequest(verb, parsedUrl, headers);
17594
17594
const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb) ? this._maxRetries + 1 : 1;
17595
17595
let numTries = 0;
17596
17596
let response;
17597
17597
do {
17598
- response = yield this.requestRaw(info4 , data);
17598
+ response = yield this.requestRaw(info3 , data);
17599
17599
if (response && response.message && response.message.statusCode === HttpCodes.Unauthorized) {
17600
17600
let authenticationHandler;
17601
17601
for (const handler of this.handlers) {
@@ -17605,7 +17605,7 @@ var require_lib = __commonJS({
17605
17605
}
17606
17606
}
17607
17607
if (authenticationHandler) {
17608
- return authenticationHandler.handleAuthentication(this, info4 , data);
17608
+ return authenticationHandler.handleAuthentication(this, info3 , data);
17609
17609
} else {
17610
17610
return response;
17611
17611
}
@@ -17628,8 +17628,8 @@ var require_lib = __commonJS({
17628
17628
}
17629
17629
}
17630
17630
}
17631
- info4 = this._prepareRequest(verb, parsedRedirectUrl, headers);
17632
- response = yield this.requestRaw(info4 , data);
17631
+ info3 = this._prepareRequest(verb, parsedRedirectUrl, headers);
17632
+ response = yield this.requestRaw(info3 , data);
17633
17633
redirectsRemaining--;
17634
17634
}
17635
17635
if (!response.message.statusCode || !HttpResponseRetryCodes.includes(response.message.statusCode)) {
@@ -17658,7 +17658,7 @@ var require_lib = __commonJS({
17658
17658
* @param info
17659
17659
* @param data
17660
17660
*/
17661
- requestRaw(info4 , data) {
17661
+ requestRaw(info3 , data) {
17662
17662
return __awaiter(this, void 0, void 0, function* () {
17663
17663
return new Promise((resolve, reject) => {
17664
17664
function callbackForResult(err, res) {
@@ -17670,7 +17670,7 @@ var require_lib = __commonJS({
17670
17670
resolve(res);
17671
17671
}
17672
17672
}
17673
- this.requestRawWithCallback(info4 , data, callbackForResult);
17673
+ this.requestRawWithCallback(info3 , data, callbackForResult);
17674
17674
});
17675
17675
});
17676
17676
}
@@ -17680,12 +17680,12 @@ var require_lib = __commonJS({
17680
17680
* @param data
17681
17681
* @param onResult
17682
17682
*/
17683
- requestRawWithCallback(info4 , data, onResult) {
17683
+ requestRawWithCallback(info3 , data, onResult) {
17684
17684
if (typeof data === "string") {
17685
- if (!info4 .options.headers) {
17686
- info4 .options.headers = {};
17685
+ if (!info3 .options.headers) {
17686
+ info3 .options.headers = {};
17687
17687
}
17688
- info4 .options.headers["Content-Length"] = Buffer.byteLength(data, "utf8");
17688
+ info3 .options.headers["Content-Length"] = Buffer.byteLength(data, "utf8");
17689
17689
}
17690
17690
let callbackCalled = false;
17691
17691
function handleResult(err, res) {
@@ -17694,7 +17694,7 @@ var require_lib = __commonJS({
17694
17694
onResult(err, res);
17695
17695
}
17696
17696
}
17697
- const req = info4 .httpModule.request(info4 .options, (msg) => {
17697
+ const req = info3 .httpModule.request(info3 .options, (msg) => {
17698
17698
const res = new HttpClientResponse(msg);
17699
17699
handleResult(void 0, res);
17700
17700
});
@@ -17706,7 +17706,7 @@ var require_lib = __commonJS({
17706
17706
if (socket) {
17707
17707
socket.end();
17708
17708
}
17709
- handleResult(new Error(`Request timeout: ${info4 .options.path}`));
17709
+ handleResult(new Error(`Request timeout: ${info3 .options.path}`));
17710
17710
});
17711
17711
req.on("error", function(err) {
17712
17712
handleResult(err);
@@ -17742,27 +17742,27 @@ var require_lib = __commonJS({
17742
17742
return this._getProxyAgentDispatcher(parsedUrl, proxyUrl);
17743
17743
}
17744
17744
_prepareRequest(method, requestUrl, headers) {
17745
- const info4 = {};
17746
- info4 .parsedUrl = requestUrl;
17747
- const usingSsl = info4 .parsedUrl.protocol === "https:";
17748
- info4 .httpModule = usingSsl ? https : http;
17745
+ const info3 = {};
17746
+ info3 .parsedUrl = requestUrl;
17747
+ const usingSsl = info3 .parsedUrl.protocol === "https:";
17748
+ info3 .httpModule = usingSsl ? https : http;
17749
17749
const defaultPort = usingSsl ? 443 : 80;
17750
- info4 .options = {};
17751
- info4 .options.host = info4 .parsedUrl.hostname;
17752
- info4 .options.port = info4 .parsedUrl.port ? parseInt(info4 .parsedUrl.port) : defaultPort;
17753
- info4 .options.path = (info4 .parsedUrl.pathname || "") + (info4 .parsedUrl.search || "");
17754
- info4 .options.method = method;
17755
- info4 .options.headers = this._mergeHeaders(headers);
17750
+ info3 .options = {};
17751
+ info3 .options.host = info3 .parsedUrl.hostname;
17752
+ info3 .options.port = info3 .parsedUrl.port ? parseInt(info3 .parsedUrl.port) : defaultPort;
17753
+ info3 .options.path = (info3 .parsedUrl.pathname || "") + (info3 .parsedUrl.search || "");
17754
+ info3 .options.method = method;
17755
+ info3 .options.headers = this._mergeHeaders(headers);
17756
17756
if (this.userAgent != null) {
17757
- info4 .options.headers["user-agent"] = this.userAgent;
17757
+ info3 .options.headers["user-agent"] = this.userAgent;
17758
17758
}
17759
- info4 .options.agent = this._getAgent(info4 .parsedUrl);
17759
+ info3 .options.agent = this._getAgent(info3 .parsedUrl);
17760
17760
if (this.handlers) {
17761
17761
for (const handler of this.handlers) {
17762
- handler.prepareRequest(info4 .options);
17762
+ handler.prepareRequest(info3 .options);
17763
17763
}
17764
17764
}
17765
- return info4 ;
17765
+ return info3 ;
17766
17766
}
17767
17767
_mergeHeaders(headers) {
17768
17768
if (this.requestOptions && this.requestOptions.headers) {
@@ -19752,10 +19752,10 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
19752
19752
(0, command_1.issueCommand)("notice", (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
19753
19753
}
19754
19754
exports.notice = notice;
19755
- function info4 (message) {
19755
+ function info3 (message) {
19756
19756
process.stdout.write(message + os.EOL);
19757
19757
}
19758
- exports.info = info4 ;
19758
+ exports.info = info3 ;
19759
19759
function startGroup(name) {
19760
19760
(0, command_1.issue)("group", name);
19761
19761
}
@@ -24139,8 +24139,7 @@ function getFileFromRef(ref, filePath, cwd2) {
24139
24139
stdio: "pipe"
24140
24140
});
24141
24141
return content;
24142
- } catch (err) {
24143
- core.info(`Could not get ${filePath} from ${ref}: ${err}`);
24142
+ } catch {
24144
24143
return null;
24145
24144
}
24146
24145
}
@@ -24228,6 +24227,8 @@ async function run() {
24228
24227
core3.getInput("size-threshold") || "100000",
24229
24228
10
24230
24229
);
24230
+ core3.info(`Dependency threshold set to ${dependencyThreshold}`);
24231
+ core3.info(`Size threshold set to ${formatBytes(sizeThreshold)}`);
24231
24232
const messages = [];
24232
24233
const currentDepCount = Array.from(currentDeps.values()).reduce(
24233
24234
(sum, versions) => sum + versions.size,
@@ -24238,6 +24239,9 @@ async function run() {
24238
24239
0
24239
24240
);
24240
24241
const depIncrease = currentDepCount - baseDepCount;
24242
+ core3.info(`Base dependency count: ${baseDepCount}`);
24243
+ core3.info(`Current dependency count: ${currentDepCount}`);
24244
+ core3.info(`Dependency count increase: ${depIncrease}`);
24241
24245
if (depIncrease >= dependencyThreshold) {
24242
24246
messages.push(
24243
24247
`\u26A0\uFE0F **Dependency Count Warning**: This PR adds ${depIncrease} new dependencies (${baseDepCount} \u2192 ${currentDepCount}), which exceeds the threshold of ${dependencyThreshold}.`
@@ -24256,6 +24260,7 @@ async function run() {
24256
24260
}
24257
24261
}
24258
24262
}
24263
+ core3.info(`Found ${newVersions.length} new package versions`);
24259
24264
if (newVersions.length > 0) {
24260
24265
const sizeWarnings = [];
24261
24266
for (const dep of newVersions) {
0 commit comments