@@ -33638,6 +33638,11 @@ var require_sqlite_cache_store = __commonJS({
33638
33638
}
33639
33639
this.#db = new DatabaseSync(opts?.location ?? ":memory:");
33640
33640
this.#db.exec(`
33641
+ PRAGMA journal_mode = WAL;
33642
+ PRAGMA synchronous = NORMAL;
33643
+ PRAGMA temp_store = memory;
33644
+ PRAGMA optimize;
33645
+
33641
33646
CREATE TABLE IF NOT EXISTS cacheInterceptorV${VERSION7} (
33642
33647
-- Data specific to us
33643
33648
id INTEGER PRIMARY KEY AUTOINCREMENT,
@@ -33657,9 +33662,8 @@ var require_sqlite_cache_store = __commonJS({
33657
33662
staleAt INTEGER NOT NULL
33658
33663
);
33659
33664
33660
- CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION7}_url ON cacheInterceptorV${VERSION7}(url);
33661
- CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION7}_method ON cacheInterceptorV${VERSION7}(method);
33662
- CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION7}_deleteAt ON cacheInterceptorV${VERSION7}(deleteAt);
33665
+ CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION7}_getValuesQuery ON cacheInterceptorV${VERSION7}(url, method, deleteAt);
33666
+ CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION7}_deleteByUrlQuery ON cacheInterceptorV${VERSION7}(deleteAt);
33663
33667
`);
33664
33668
this.#getValuesQuery = this.#db.prepare(`
33665
33669
SELECT
@@ -33836,7 +33840,7 @@ var require_sqlite_cache_store = __commonJS({
33836
33840
this.#deleteByUrlQuery.run(this.#makeValueUrl(key));
33837
33841
}
33838
33842
#prune() {
33839
- if (this.size <= this.#maxCount) {
33843
+ if (Number.isFinite(this.#maxCount) && this.size <= this.#maxCount) {
33840
33844
return 0;
33841
33845
}
33842
33846
{
@@ -41375,7 +41379,7 @@ async function waitForAccessToken(request2, clientId, clientType, verification)
41375
41379
return waitForAccessToken(request2, clientId, clientType, verification);
41376
41380
}
41377
41381
if (errorType === "slow_down") {
41378
- await wait(verification.interval + 5 );
41382
+ await wait(verification.interval + 7 );
41379
41383
return waitForAccessToken(request2, clientId, clientType, verification);
41380
41384
}
41381
41385
throw error;
@@ -42345,7 +42349,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
42345
42349
return sendRequestWithRetries(state, request2, options, createdAt, retries);
42346
42350
}
42347
42351
}
42348
- var VERSION6 = "7.2.0 ";
42352
+ var VERSION6 = "7.2.1 ";
42349
42353
function createAppAuth(options) {
42350
42354
if (!options.appId) {
42351
42355
throw new Error("[@octokit/auth-app] appId option is required");
@@ -42694,14 +42698,10 @@ var main_default = main(
42694
42698
/*! Bundled license information:
42695
42699
42696
42700
undici/lib/fetch/body.js:
42697
- (*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
42698
-
42699
- undici/lib/websocket/frame.js:
42700
- (*! ws. MIT License. Einar Otto Stangvik <
[email protected] > *)
42701
-
42702
42701
undici/lib/web/fetch/body.js:
42703
42702
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
42704
42703
42704
+ undici/lib/websocket/frame.js:
42705
42705
undici/lib/web/websocket/frame.js:
42706
42706
(*! ws. MIT License. Einar Otto Stangvik <
[email protected] > *)
42707
42707
0 commit comments