@@ -32409,6 +32409,11 @@ var require_sqlite_cache_store = __commonJS({
3240932409 }
3241032410 this.#db = new DatabaseSync((opts == null ? void 0 : opts.location) ?? ":memory:");
3241132411 this.#db.exec(`
32412+ PRAGMA journal_mode = WAL;
32413+ PRAGMA synchronous = NORMAL;
32414+ PRAGMA temp_store = memory;
32415+ PRAGMA optimize;
32416+
3241232417 CREATE TABLE IF NOT EXISTS cacheInterceptorV${VERSION13} (
3241332418 -- Data specific to us
3241432419 id INTEGER PRIMARY KEY AUTOINCREMENT,
@@ -32428,9 +32433,8 @@ var require_sqlite_cache_store = __commonJS({
3242832433 staleAt INTEGER NOT NULL
3242932434 );
3243032435
32431- CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION13}_url ON cacheInterceptorV${VERSION13}(url);
32432- CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION13}_method ON cacheInterceptorV${VERSION13}(method);
32433- CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION13}_deleteAt ON cacheInterceptorV${VERSION13}(deleteAt);
32436+ CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION13}_getValuesQuery ON cacheInterceptorV${VERSION13}(url, method, deleteAt);
32437+ CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION13}_deleteByUrlQuery ON cacheInterceptorV${VERSION13}(deleteAt);
3243432438 `);
3243532439 this.#getValuesQuery = this.#db.prepare(`
3243632440 SELECT
@@ -32592,7 +32596,7 @@ var require_sqlite_cache_store = __commonJS({
3259232596 }
3259332597 #prune() {
3259432598 var _a;
32595- if (this.size <= this.#maxCount) {
32599+ if (Number.isFinite(this.#maxCount) && this.size <= this.#maxCount) {
3259632600 return 0;
3259732601 }
3259832602 {
@@ -39597,14 +39601,14 @@ var require_dist_node5 = __commonJS({
3959739601 var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
3959839602 var dist_src_exports = {};
3959939603 __export(dist_src_exports, {
39600- RequestError: () => RequestError2
39604+ RequestError: () => RequestError3
3960139605 });
3960239606 module.exports = __toCommonJS(dist_src_exports);
3960339607 var import_deprecation = require_dist_node4();
3960439608 var import_once = __toESM2(require_once());
3960539609 var logOnceCode = (0, import_once.default)((deprecation) => console.warn(deprecation));
3960639610 var logOnceHeaders = (0, import_once.default)((deprecation) => console.warn(deprecation));
39607- var RequestError2 = class extends Error {
39611+ var RequestError3 = class extends Error {
3960839612 constructor(message, statusCode, options) {
3960939613 super(message);
3961039614 if (Error.captureStackTrace) {
@@ -43768,7 +43772,7 @@ var createTokenAuth = function createTokenAuth2(token) {
4376843772};
4376943773
4377043774//
43771- var VERSION4 = "6.1.4 ";
43775+ var VERSION4 = "6.1.5 ";
4377243776
4377343777//
4377443778var noop = () => {
@@ -46501,6 +46505,36 @@ var Octokit2 = Octokit.plugin(requestLog, legacyRestEndpointMethods, paginateRes
4650146505//
4650246506var import_core2 = __toESM(require_core());
4650346507
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+
4650446538//
4650546539function requestToOAuthBaseUrl(request2) {
4650646540 const endpointDefaults = request2.endpoint.DEFAULTS;
@@ -46516,7 +46550,7 @@ async function oauthRequest(request2, route, parameters) {
4651646550 };
4651746551 const response = await request2(route, withOAuthParameters);
4651846552 if ("error" in response.data) {
46519- const error2 = new RequestError (
46553+ const error2 = new RequestError2 (
4652046554 `${response.data.error_description} (${response.data.error}, ${response.data.error_uri})`,
4652146555 400,
4652246556 {
0 commit comments