build: lock file maintenance (#62202)

See associated pull request for more information.

PR Close #62202
This commit is contained in:
Angular Robot
2025-06-24 07:45:01 +00:00
committed by Jessica Janiuk
parent 1cff7cf5e3
commit 7d2e942653
10 changed files with 1417 additions and 3258 deletions
+16 -3
View File
@@ -26529,7 +26529,7 @@ var RequestError = class extends Error {
};
//
var VERSION2 = "0.0.0-development";
var VERSION2 = "10.0.3";
var defaults_default = {
headers: {
"user-agent": `octokit-request.js/${VERSION2} ${getUserAgent()}`
@@ -27066,7 +27066,7 @@ var RequestError2 = class extends Error {
};
//
var VERSION4 = "0.0.0-development";
var VERSION4 = "10.0.3";
var defaults_default2 = {
headers: {
"user-agent": `octokit-request.js/${VERSION4} ${getUserAgent2()}`
@@ -27545,15 +27545,17 @@ function normalizePaginatedListResponse(response) {
data: []
};
}
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data) || "total_commits" in response.data;
if (!responseNeedsNormalization)
return response;
const incompleteResults = response.data.incomplete_results;
const repositorySelection = response.data.repository_selection;
const totalCount = response.data.total_count;
const totalCommits = response.data.total_commits;
delete response.data.incomplete_results;
delete response.data.repository_selection;
delete response.data.total_count;
delete response.data.total_commits;
const namespaceKey = Object.keys(response.data)[0];
const data = response.data[namespaceKey];
response.data = data;
@@ -27564,6 +27566,7 @@ function normalizePaginatedListResponse(response) {
response.data.repository_selection = repositorySelection;
}
response.data.total_count = totalCount;
response.data.total_commits = totalCommits;
return response;
}
function iterator(octokit, route, parameters) {
@@ -27583,6 +27586,16 @@ function iterator(octokit, route, parameters) {
url = ((normalizedResponse.headers.link || "").match(
/<([^<>]+)>;\s*rel="next"/
) || [])[1];
if (!url && "total_commits" in normalizedResponse.data) {
const parsedUrl = new URL(normalizedResponse.url);
const params2 = parsedUrl.searchParams;
const page = parseInt(params2.get("page") || "1", 10);
const per_page = parseInt(params2.get("per_page") || "250", 10);
if (page * per_page < normalizedResponse.data.total_commits) {
params2.set("page", String(page + 1));
url = parsedUrl.toString();
}
}
return { value: normalizedResponse };
} catch (error) {
if (error.status !== 409)