npm run package
This commit is contained in:
+117
-60
@@ -31941,7 +31941,7 @@ class RequestError extends Error {
|
||||
// pkg/dist-src/index.js
|
||||
|
||||
// pkg/dist-src/version.js
|
||||
var VERSION$6 = "0.0.0-development";
|
||||
var VERSION$6 = "10.0.3";
|
||||
|
||||
// pkg/dist-src/defaults.js
|
||||
var defaults_default = {
|
||||
@@ -32292,12 +32292,27 @@ var createTokenAuth = function createTokenAuth2(token) {
|
||||
});
|
||||
};
|
||||
|
||||
const VERSION$4 = "6.1.4";
|
||||
const VERSION$4 = "7.0.3";
|
||||
|
||||
const noop = () => {
|
||||
};
|
||||
const consoleWarn = console.warn.bind(console);
|
||||
const consoleError = console.error.bind(console);
|
||||
function createLogger(logger = {}) {
|
||||
if (typeof logger.debug !== "function") {
|
||||
logger.debug = noop;
|
||||
}
|
||||
if (typeof logger.info !== "function") {
|
||||
logger.info = noop;
|
||||
}
|
||||
if (typeof logger.warn !== "function") {
|
||||
logger.warn = consoleWarn;
|
||||
}
|
||||
if (typeof logger.error !== "function") {
|
||||
logger.error = consoleError;
|
||||
}
|
||||
return logger;
|
||||
}
|
||||
const userAgentTrail = `octokit-core.js/${VERSION$4} ${getUserAgent()}`;
|
||||
let Octokit$1 = class Octokit {
|
||||
static VERSION = VERSION$4;
|
||||
@@ -32365,15 +32380,7 @@ let Octokit$1 = class Octokit {
|
||||
}
|
||||
this.request = request.defaults(requestDefaults);
|
||||
this.graphql = withCustomRequest(this.request).defaults(requestDefaults);
|
||||
this.log = Object.assign(
|
||||
{
|
||||
debug: noop,
|
||||
info: noop,
|
||||
warn: consoleWarn,
|
||||
error: consoleError
|
||||
},
|
||||
options.log
|
||||
);
|
||||
this.log = createLogger(options.log);
|
||||
this.hook = hook;
|
||||
if (!options.authStrategy) {
|
||||
if (!options.auth) {
|
||||
@@ -32420,7 +32427,7 @@ let Octokit$1 = class Octokit {
|
||||
auth;
|
||||
};
|
||||
|
||||
const VERSION$3 = "5.3.1";
|
||||
const VERSION$3 = "6.0.0";
|
||||
|
||||
function requestLog(octokit) {
|
||||
octokit.hook.wrap("request", (request, options) => {
|
||||
@@ -32456,14 +32463,16 @@ function normalizePaginatedListResponse(response) {
|
||||
data: []
|
||||
};
|
||||
}
|
||||
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
|
||||
const responseNeedsNormalization = ("total_count" in response.data || "total_commits" in response.data) && !("url" 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;
|
||||
@@ -32474,6 +32483,7 @@ function normalizePaginatedListResponse(response) {
|
||||
response.data.repository_selection = repositorySelection;
|
||||
}
|
||||
response.data.total_count = totalCount;
|
||||
response.data.total_commits = totalCommits;
|
||||
return response;
|
||||
}
|
||||
|
||||
@@ -32494,6 +32504,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 params = parsedUrl.searchParams;
|
||||
const page = parseInt(params.get("page") || "1", 10);
|
||||
const per_page = parseInt(params.get("per_page") || "250", 10);
|
||||
if (page * per_page < normalizedResponse.data.total_commits) {
|
||||
params.set("page", String(page + 1));
|
||||
url = parsedUrl.toString();
|
||||
}
|
||||
}
|
||||
return { value: normalizedResponse };
|
||||
} catch (error) {
|
||||
if (error.status !== 409) throw error;
|
||||
@@ -32558,7 +32578,7 @@ function paginateRest(octokit) {
|
||||
}
|
||||
paginateRest.VERSION = VERSION$2;
|
||||
|
||||
const VERSION$1 = "13.3.1";
|
||||
const VERSION$1 = "16.0.0";
|
||||
|
||||
const Endpoints = {
|
||||
actions: {
|
||||
@@ -32586,6 +32606,7 @@ const Endpoints = {
|
||||
createEnvironmentVariable: [
|
||||
"POST /repos/{owner}/{repo}/environments/{environment_name}/variables"
|
||||
],
|
||||
createHostedRunnerForOrg: ["POST /orgs/{org}/actions/hosted-runners"],
|
||||
createOrUpdateEnvironmentSecret: [
|
||||
"PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
||||
],
|
||||
@@ -32623,6 +32644,9 @@ const Endpoints = {
|
||||
deleteEnvironmentVariable: [
|
||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
||||
],
|
||||
deleteHostedRunnerForOrg: [
|
||||
"DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"
|
||||
],
|
||||
deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
|
||||
deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
|
||||
deleteRepoSecret: [
|
||||
@@ -32711,6 +32735,24 @@ const Endpoints = {
|
||||
getGithubActionsPermissionsRepository: [
|
||||
"GET /repos/{owner}/{repo}/actions/permissions"
|
||||
],
|
||||
getHostedRunnerForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"
|
||||
],
|
||||
getHostedRunnersGithubOwnedImagesForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/images/github-owned"
|
||||
],
|
||||
getHostedRunnersLimitsForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/limits"
|
||||
],
|
||||
getHostedRunnersMachineSpecsForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/machine-sizes"
|
||||
],
|
||||
getHostedRunnersPartnerImagesForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/images/partner"
|
||||
],
|
||||
getHostedRunnersPlatformsForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/platforms"
|
||||
],
|
||||
getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
|
||||
getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
|
||||
getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
|
||||
@@ -32754,6 +32796,10 @@ const Endpoints = {
|
||||
listEnvironmentVariables: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables"
|
||||
],
|
||||
listGithubHostedRunnersInGroupForOrg: [
|
||||
"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners"
|
||||
],
|
||||
listHostedRunnersForOrg: ["GET /orgs/{org}/actions/hosted-runners"],
|
||||
listJobsForWorkflowRun: [
|
||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
|
||||
],
|
||||
@@ -32872,6 +32918,9 @@ const Endpoints = {
|
||||
updateEnvironmentVariable: [
|
||||
"PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
||||
],
|
||||
updateHostedRunnerForOrg: [
|
||||
"PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"
|
||||
],
|
||||
updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
|
||||
updateRepoVariable: [
|
||||
"PATCH /repos/{owner}/{repo}/actions/variables/{name}"
|
||||
@@ -33002,6 +33051,9 @@ const Endpoints = {
|
||||
getGithubBillingUsageReportOrg: [
|
||||
"GET /organizations/{org}/settings/billing/usage"
|
||||
],
|
||||
getGithubBillingUsageReportUser: [
|
||||
"GET /users/{username}/settings/billing/usage"
|
||||
],
|
||||
getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
|
||||
getGithubPackagesBillingUser: [
|
||||
"GET /users/{username}/settings/billing/packages"
|
||||
@@ -33013,6 +33065,13 @@ const Endpoints = {
|
||||
"GET /users/{username}/settings/billing/shared-storage"
|
||||
]
|
||||
},
|
||||
campaigns: {
|
||||
createCampaign: ["POST /orgs/{org}/campaigns"],
|
||||
deleteCampaign: ["DELETE /orgs/{org}/campaigns/{campaign_number}"],
|
||||
getCampaignSummary: ["GET /orgs/{org}/campaigns/{campaign_number}"],
|
||||
listOrgCampaigns: ["GET /orgs/{org}/campaigns"],
|
||||
updateCampaign: ["PATCH /orgs/{org}/campaigns/{campaign_number}"]
|
||||
},
|
||||
checks: {
|
||||
create: ["POST /repos/{owner}/{repo}/check-runs"],
|
||||
createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
|
||||
@@ -33291,10 +33350,9 @@ const Endpoints = {
|
||||
getCopilotSeatDetailsForUser: [
|
||||
"GET /orgs/{org}/members/{username}/copilot"
|
||||
],
|
||||
listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"],
|
||||
usageMetricsForOrg: ["GET /orgs/{org}/copilot/usage"],
|
||||
usageMetricsForTeam: ["GET /orgs/{org}/team/{team_slug}/copilot/usage"]
|
||||
listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"]
|
||||
},
|
||||
credentials: { revoke: ["POST /credentials/revoke"] },
|
||||
dependabot: {
|
||||
addSelectedRepoToOrgSecret: [
|
||||
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
||||
@@ -33389,6 +33447,26 @@ const Endpoints = {
|
||||
getAllTemplates: ["GET /gitignore/templates"],
|
||||
getTemplate: ["GET /gitignore/templates/{name}"]
|
||||
},
|
||||
hostedCompute: {
|
||||
createNetworkConfigurationForOrg: [
|
||||
"POST /orgs/{org}/settings/network-configurations"
|
||||
],
|
||||
deleteNetworkConfigurationFromOrg: [
|
||||
"DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}"
|
||||
],
|
||||
getNetworkConfigurationForOrg: [
|
||||
"GET /orgs/{org}/settings/network-configurations/{network_configuration_id}"
|
||||
],
|
||||
getNetworkSettingsForOrg: [
|
||||
"GET /orgs/{org}/settings/network-settings/{network_settings_id}"
|
||||
],
|
||||
listNetworkConfigurationsForOrg: [
|
||||
"GET /orgs/{org}/settings/network-configurations"
|
||||
],
|
||||
updateNetworkConfigurationForOrg: [
|
||||
"PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}"
|
||||
]
|
||||
},
|
||||
interactions: {
|
||||
getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
|
||||
getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
|
||||
@@ -33580,6 +33658,7 @@ const Endpoints = {
|
||||
"PUT /orgs/{org}/outside_collaborators/{username}"
|
||||
],
|
||||
createInvitation: ["POST /orgs/{org}/invitations"],
|
||||
createIssueType: ["POST /orgs/{org}/issue-types"],
|
||||
createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"],
|
||||
createOrUpdateCustomPropertiesValuesForRepos: [
|
||||
"PATCH /orgs/{org}/properties/values"
|
||||
@@ -33589,6 +33668,7 @@ const Endpoints = {
|
||||
],
|
||||
createWebhook: ["POST /orgs/{org}/hooks"],
|
||||
delete: ["DELETE /orgs/{org}"],
|
||||
deleteIssueType: ["DELETE /orgs/{org}/issue-types/{issue_type_id}"],
|
||||
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
|
||||
enableOrDisableSecurityProductOnAllOrgRepos: [
|
||||
"POST /orgs/{org}/{security_product}/{enablement}",
|
||||
@@ -33605,6 +33685,10 @@ const Endpoints = {
|
||||
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
||||
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
||||
getOrgRole: ["GET /orgs/{org}/organization-roles/{role_id}"],
|
||||
getOrgRulesetHistory: ["GET /orgs/{org}/rulesets/{ruleset_id}/history"],
|
||||
getOrgRulesetVersion: [
|
||||
"GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}"
|
||||
],
|
||||
getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
|
||||
getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
|
||||
getWebhookDelivery: [
|
||||
@@ -33619,6 +33703,7 @@ const Endpoints = {
|
||||
listForAuthenticatedUser: ["GET /user/orgs"],
|
||||
listForUser: ["GET /users/{username}/orgs"],
|
||||
listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
|
||||
listIssueTypes: ["GET /orgs/{org}/issue-types"],
|
||||
listMembers: ["GET /orgs/{org}/members"],
|
||||
listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
|
||||
listOrgRoleTeams: ["GET /orgs/{org}/organization-roles/{role_id}/teams"],
|
||||
@@ -33693,6 +33778,7 @@ const Endpoints = {
|
||||
],
|
||||
unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
|
||||
update: ["PATCH /orgs/{org}"],
|
||||
updateIssueType: ["PUT /orgs/{org}/issue-types/{issue_type_id}"],
|
||||
updateMembershipForAuthenticatedUser: [
|
||||
"PATCH /user/memberships/orgs/{org}"
|
||||
],
|
||||
@@ -33805,37 +33891,6 @@ const Endpoints = {
|
||||
"PATCH /orgs/{org}/private-registries/{secret_name}"
|
||||
]
|
||||
},
|
||||
projects: {
|
||||
addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
|
||||
createCard: ["POST /projects/columns/{column_id}/cards"],
|
||||
createColumn: ["POST /projects/{project_id}/columns"],
|
||||
createForAuthenticatedUser: ["POST /user/projects"],
|
||||
createForOrg: ["POST /orgs/{org}/projects"],
|
||||
createForRepo: ["POST /repos/{owner}/{repo}/projects"],
|
||||
delete: ["DELETE /projects/{project_id}"],
|
||||
deleteCard: ["DELETE /projects/columns/cards/{card_id}"],
|
||||
deleteColumn: ["DELETE /projects/columns/{column_id}"],
|
||||
get: ["GET /projects/{project_id}"],
|
||||
getCard: ["GET /projects/columns/cards/{card_id}"],
|
||||
getColumn: ["GET /projects/columns/{column_id}"],
|
||||
getPermissionForUser: [
|
||||
"GET /projects/{project_id}/collaborators/{username}/permission"
|
||||
],
|
||||
listCards: ["GET /projects/columns/{column_id}/cards"],
|
||||
listCollaborators: ["GET /projects/{project_id}/collaborators"],
|
||||
listColumns: ["GET /projects/{project_id}/columns"],
|
||||
listForOrg: ["GET /orgs/{org}/projects"],
|
||||
listForRepo: ["GET /repos/{owner}/{repo}/projects"],
|
||||
listForUser: ["GET /users/{username}/projects"],
|
||||
moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
|
||||
moveColumn: ["POST /projects/columns/{column_id}/moves"],
|
||||
removeCollaborator: [
|
||||
"DELETE /projects/{project_id}/collaborators/{username}"
|
||||
],
|
||||
update: ["PATCH /projects/{project_id}"],
|
||||
updateCard: ["PATCH /projects/columns/cards/{card_id}"],
|
||||
updateColumn: ["PATCH /projects/columns/{column_id}"]
|
||||
},
|
||||
pulls: {
|
||||
checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
||||
create: ["POST /repos/{owner}/{repo}/pulls"],
|
||||
@@ -34207,6 +34262,12 @@ const Endpoints = {
|
||||
],
|
||||
getRepoRuleSuites: ["GET /repos/{owner}/{repo}/rulesets/rule-suites"],
|
||||
getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
||||
getRepoRulesetHistory: [
|
||||
"GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history"
|
||||
],
|
||||
getRepoRulesetVersion: [
|
||||
"GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}"
|
||||
],
|
||||
getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
|
||||
getStatusChecksProtection: [
|
||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
||||
@@ -34380,7 +34441,13 @@ const Endpoints = {
|
||||
search: {
|
||||
code: ["GET /search/code"],
|
||||
commits: ["GET /search/commits"],
|
||||
issuesAndPullRequests: ["GET /search/issues"],
|
||||
issuesAndPullRequests: [
|
||||
"GET /search/issues",
|
||||
{},
|
||||
{
|
||||
deprecated: "octokit.rest.search.issuesAndPullRequests() is deprecated, see https://docs.github.com/rest/search/search#search-issues-and-pull-requests"
|
||||
}
|
||||
],
|
||||
labels: ["GET /search/labels"],
|
||||
repos: ["GET /search/repositories"],
|
||||
topics: ["GET /search/topics"],
|
||||
@@ -34434,15 +34501,9 @@ const Endpoints = {
|
||||
addOrUpdateMembershipForUserInOrg: [
|
||||
"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
||||
],
|
||||
addOrUpdateProjectPermissionsInOrg: [
|
||||
"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
||||
],
|
||||
addOrUpdateRepoPermissionsInOrg: [
|
||||
"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
||||
],
|
||||
checkPermissionsForProjectInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
||||
],
|
||||
checkPermissionsForRepoInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
||||
],
|
||||
@@ -34479,14 +34540,10 @@ const Endpoints = {
|
||||
listPendingInvitationsInOrg: [
|
||||
"GET /orgs/{org}/teams/{team_slug}/invitations"
|
||||
],
|
||||
listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
|
||||
listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
|
||||
removeMembershipForUserInOrg: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
||||
],
|
||||
removeProjectInOrg: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
||||
],
|
||||
removeRepoInOrg: [
|
||||
"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
||||
],
|
||||
@@ -34758,7 +34815,7 @@ function legacyRestEndpointMethods(octokit) {
|
||||
}
|
||||
legacyRestEndpointMethods.VERSION = VERSION$1;
|
||||
|
||||
const VERSION = "21.1.1";
|
||||
const VERSION = "22.0.0";
|
||||
|
||||
const Octokit = Octokit$1.plugin(requestLog, legacyRestEndpointMethods, paginateRest).defaults(
|
||||
{
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user