Skip to content

Commit 4868983

Browse files
angular-robotjosephperrott
authored andcommitted
build: update octokit dependencies (#2726)
PR Close #2726
1 parent 12a9103 commit 4868983

File tree

11 files changed

+217
-632
lines changed

11 files changed

+217
-632
lines changed

.github/local-actions/branch-manager/main.js

Lines changed: 90 additions & 222 deletions
Large diffs are not rendered by default.

.github/local-actions/labels-sync/main.js

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -39601,14 +39601,14 @@ var require_dist_node5 = __commonJS({
3960139601
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
3960239602
var dist_src_exports = {};
3960339603
__export(dist_src_exports, {
39604-
RequestError: () => RequestError3
39604+
RequestError: () => RequestError2
3960539605
});
3960639606
module.exports = __toCommonJS(dist_src_exports);
3960739607
var import_deprecation = require_dist_node4();
3960839608
var import_once = __toESM2(require_once());
3960939609
var logOnceCode = (0, import_once.default)((deprecation) => console.warn(deprecation));
3961039610
var logOnceHeaders = (0, import_once.default)((deprecation) => console.warn(deprecation));
39611-
var RequestError3 = class extends Error {
39611+
var RequestError2 = class extends Error {
3961239612
constructor(message, statusCode, options) {
3961339613
super(message);
3961439614
if (Error.captureStackTrace) {
@@ -46768,36 +46768,6 @@ var allLabels = {
4676846768
//
4676946769
var import_core2 = __toESM(require_core());
4677046770

46771-
//
46772-
var RequestError2 = class extends Error {
46773-
name;
46774-
status;
46775-
request;
46776-
response;
46777-
constructor(message, statusCode, options) {
46778-
super(message);
46779-
this.name = "HttpError";
46780-
this.status = Number.parseInt(statusCode);
46781-
if (Number.isNaN(this.status)) {
46782-
this.status = 0;
46783-
}
46784-
if ("response" in options) {
46785-
this.response = options.response;
46786-
}
46787-
const requestCopy = Object.assign({}, options.request);
46788-
if (options.request.headers.authorization) {
46789-
requestCopy.headers = Object.assign({}, options.request.headers, {
46790-
authorization: options.request.headers.authorization.replace(
46791-
/(?<! ) .*$/,
46792-
" [REDACTED]"
46793-
)
46794-
});
46795-
}
46796-
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
46797-
this.request = requestCopy;
46798-
}
46799-
};
46800-
4680146771
//
4680246772
function requestToOAuthBaseUrl(request2) {
4680346773
const endpointDefaults = request2.endpoint.DEFAULTS;
@@ -46813,7 +46783,7 @@ async function oauthRequest(request2, route, parameters) {
4681346783
};
4681446784
const response = await request2(route, withOAuthParameters);
4681546785
if ("error" in response.data) {
46816-
const error = new RequestError2(
46786+
const error = new RequestError(
4681746787
`${response.data.error_description} (${response.data.error}, ${response.data.error_uri})`,
4681846788
400,
4681946789
{
@@ -48053,7 +48023,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
4805348023
return sendRequestWithRetries(state, request2, options, createdAt, retries);
4805448024
}
4805548025
}
48056-
var VERSION12 = "7.2.0";
48026+
var VERSION12 = "7.2.1";
4805748027
function createAppAuth(options) {
4805848028
if (!options.appId) {
4805948029
throw new Error("[@octokit/auth-app] appId option is required");

.github/local-actions/lock-closed/main.js

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -39601,14 +39601,14 @@ var require_dist_node5 = __commonJS({
3960139601
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
3960239602
var dist_src_exports = {};
3960339603
__export(dist_src_exports, {
39604-
RequestError: () => RequestError3
39604+
RequestError: () => RequestError2
3960539605
});
3960639606
module.exports = __toCommonJS(dist_src_exports);
3960739607
var import_deprecation = require_dist_node4();
3960839608
var import_once = __toESM2(require_once());
3960939609
var logOnceCode = (0, import_once.default)((deprecation) => console.warn(deprecation));
3961039610
var logOnceHeaders = (0, import_once.default)((deprecation) => console.warn(deprecation));
39611-
var RequestError3 = class extends Error {
39611+
var RequestError2 = class extends Error {
3961239612
constructor(message, statusCode, options) {
3961339613
super(message);
3961439614
if (Error.captureStackTrace) {
@@ -46505,36 +46505,6 @@ var Octokit2 = Octokit.plugin(requestLog, legacyRestEndpointMethods, paginateRes
4650546505
//
4650646506
var import_core2 = __toESM(require_core());
4650746507

46508-
//
46509-
var RequestError2 = class extends Error {
46510-
name;
46511-
status;
46512-
request;
46513-
response;
46514-
constructor(message, statusCode, options) {
46515-
super(message);
46516-
this.name = "HttpError";
46517-
this.status = Number.parseInt(statusCode);
46518-
if (Number.isNaN(this.status)) {
46519-
this.status = 0;
46520-
}
46521-
if ("response" in options) {
46522-
this.response = options.response;
46523-
}
46524-
const requestCopy = Object.assign({}, options.request);
46525-
if (options.request.headers.authorization) {
46526-
requestCopy.headers = Object.assign({}, options.request.headers, {
46527-
authorization: options.request.headers.authorization.replace(
46528-
/(?<! ) .*$/,
46529-
" [REDACTED]"
46530-
)
46531-
});
46532-
}
46533-
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
46534-
this.request = requestCopy;
46535-
}
46536-
};
46537-
4653846508
//
4653946509
function requestToOAuthBaseUrl(request2) {
4654046510
const endpointDefaults = request2.endpoint.DEFAULTS;
@@ -46550,7 +46520,7 @@ async function oauthRequest(request2, route, parameters) {
4655046520
};
4655146521
const response = await request2(route, withOAuthParameters);
4655246522
if ("error" in response.data) {
46553-
const error2 = new RequestError2(
46523+
const error2 = new RequestError(
4655446524
`${response.data.error_description} (${response.data.error}, ${response.data.error_uri})`,
4655546525
400,
4655646526
{
@@ -47790,7 +47760,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
4779047760
return sendRequestWithRetries(state, request2, options, createdAt, retries);
4779147761
}
4779247762
}
47793-
var VERSION12 = "7.2.0";
47763+
var VERSION12 = "7.2.1";
4779447764
function createAppAuth(options) {
4779547765
if (!options.appId) {
4779647766
throw new Error("[@octokit/auth-app] appId option is required");

github-actions/branch-manager/main.js

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -39601,14 +39601,14 @@ var require_dist_node5 = __commonJS({
3960139601
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
3960239602
var dist_src_exports = {};
3960339603
__export(dist_src_exports, {
39604-
RequestError: () => RequestError3
39604+
RequestError: () => RequestError2
3960539605
});
3960639606
module.exports = __toCommonJS(dist_src_exports);
3960739607
var import_deprecation = require_dist_node4();
3960839608
var import_once = __toESM2(require_once());
3960939609
var logOnceCode = (0, import_once.default)((deprecation) => console.warn(deprecation));
3961039610
var logOnceHeaders = (0, import_once.default)((deprecation) => console.warn(deprecation));
39611-
var RequestError3 = class extends Error {
39611+
var RequestError2 = class extends Error {
3961239612
constructor(message, statusCode, options) {
3961339613
super(message);
3961439614
if (Error.captureStackTrace) {
@@ -46768,36 +46768,6 @@ var allLabels = {
4676846768
//
4676946769
var import_core2 = __toESM(require_core());
4677046770

46771-
//
46772-
var RequestError2 = class extends Error {
46773-
name;
46774-
status;
46775-
request;
46776-
response;
46777-
constructor(message, statusCode, options) {
46778-
super(message);
46779-
this.name = "HttpError";
46780-
this.status = Number.parseInt(statusCode);
46781-
if (Number.isNaN(this.status)) {
46782-
this.status = 0;
46783-
}
46784-
if ("response" in options) {
46785-
this.response = options.response;
46786-
}
46787-
const requestCopy = Object.assign({}, options.request);
46788-
if (options.request.headers.authorization) {
46789-
requestCopy.headers = Object.assign({}, options.request.headers, {
46790-
authorization: options.request.headers.authorization.replace(
46791-
/(?<! ) .*$/,
46792-
" [REDACTED]"
46793-
)
46794-
});
46795-
}
46796-
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
46797-
this.request = requestCopy;
46798-
}
46799-
};
46800-
4680146771
//
4680246772
function requestToOAuthBaseUrl(request2) {
4680346773
const endpointDefaults = request2.endpoint.DEFAULTS;
@@ -46813,7 +46783,7 @@ async function oauthRequest(request2, route, parameters) {
4681346783
};
4681446784
const response = await request2(route, withOAuthParameters);
4681546785
if ("error" in response.data) {
46816-
const error = new RequestError2(
46786+
const error = new RequestError(
4681746787
`${response.data.error_description} (${response.data.error}, ${response.data.error_uri})`,
4681846788
400,
4681946789
{
@@ -48053,7 +48023,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
4805348023
return sendRequestWithRetries(state, request2, options, createdAt, retries);
4805448024
}
4805548025
}
48056-
var VERSION12 = "7.2.0";
48026+
var VERSION12 = "7.2.1";
4805748027
function createAppAuth(options) {
4805848028
if (!options.appId) {
4805948029
throw new Error("[@octokit/auth-app] appId option is required");

github-actions/commit-message-based-labels/main.js

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -39601,14 +39601,14 @@ var require_dist_node5 = __commonJS({
3960139601
var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
3960239602
var dist_src_exports = {};
3960339603
__export(dist_src_exports, {
39604-
RequestError: () => RequestError3
39604+
RequestError: () => RequestError2
3960539605
});
3960639606
module.exports = __toCommonJS(dist_src_exports);
3960739607
var import_deprecation = require_dist_node4();
3960839608
var import_once = __toESM2(require_once());
3960939609
var logOnceCode = (0, import_once.default)((deprecation) => console.warn(deprecation));
3961039610
var logOnceHeaders = (0, import_once.default)((deprecation) => console.warn(deprecation));
39611-
var RequestError3 = class extends Error {
39611+
var RequestError2 = class extends Error {
3961239612
constructor(message, statusCode, options) {
3961339613
super(message);
3961439614
if (Error.captureStackTrace) {
@@ -47233,36 +47233,6 @@ var allLabels = {
4723347233
//
4723447234
var import_core2 = __toESM(require_core());
4723547235

47236-
//
47237-
var RequestError2 = class extends Error {
47238-
name;
47239-
status;
47240-
request;
47241-
response;
47242-
constructor(message, statusCode, options) {
47243-
super(message);
47244-
this.name = "HttpError";
47245-
this.status = Number.parseInt(statusCode);
47246-
if (Number.isNaN(this.status)) {
47247-
this.status = 0;
47248-
}
47249-
if ("response" in options) {
47250-
this.response = options.response;
47251-
}
47252-
const requestCopy = Object.assign({}, options.request);
47253-
if (options.request.headers.authorization) {
47254-
requestCopy.headers = Object.assign({}, options.request.headers, {
47255-
authorization: options.request.headers.authorization.replace(
47256-
/(?<! ) .*$/,
47257-
" [REDACTED]"
47258-
)
47259-
});
47260-
}
47261-
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
47262-
this.request = requestCopy;
47263-
}
47264-
};
47265-
4726647236
//
4726747237
function requestToOAuthBaseUrl(request2) {
4726847238
const endpointDefaults = request2.endpoint.DEFAULTS;
@@ -47278,7 +47248,7 @@ async function oauthRequest(request2, route, parameters) {
4727847248
};
4727947249
const response = await request2(route, withOAuthParameters);
4728047250
if ("error" in response.data) {
47281-
const error2 = new RequestError2(
47251+
const error2 = new RequestError(
4728247252
`${response.data.error_description} (${response.data.error}, ${response.data.error_uri})`,
4728347253
400,
4728447254
{
@@ -48518,7 +48488,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
4851848488
return sendRequestWithRetries(state, request2, options, createdAt, retries);
4851948489
}
4852048490
}
48521-
var VERSION12 = "7.2.0";
48491+
var VERSION12 = "7.2.1";
4852248492
function createAppAuth(options) {
4852348493
if (!options.appId) {
4852448494
throw new Error("[@octokit/auth-app] appId option is required");

0 commit comments

Comments
 (0)