diff --git a/dist/main.cjs b/dist/main.cjs index c0c6a0e..501be52 100644 --- a/dist/main.cjs +++ b/dist/main.cjs @@ -33638,6 +33638,11 @@ var require_sqlite_cache_store = __commonJS({ } this.#db = new DatabaseSync(opts?.location ?? ":memory:"); this.#db.exec(` + PRAGMA journal_mode = WAL; + PRAGMA synchronous = NORMAL; + PRAGMA temp_store = memory; + PRAGMA optimize; + CREATE TABLE IF NOT EXISTS cacheInterceptorV${VERSION7} ( -- Data specific to us id INTEGER PRIMARY KEY AUTOINCREMENT, @@ -33657,9 +33662,8 @@ var require_sqlite_cache_store = __commonJS({ staleAt INTEGER NOT NULL ); - CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION7}_url ON cacheInterceptorV${VERSION7}(url); - CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION7}_method ON cacheInterceptorV${VERSION7}(method); - CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION7}_deleteAt ON cacheInterceptorV${VERSION7}(deleteAt); + CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION7}_getValuesQuery ON cacheInterceptorV${VERSION7}(url, method, deleteAt); + CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION7}_deleteByUrlQuery ON cacheInterceptorV${VERSION7}(deleteAt); `); this.#getValuesQuery = this.#db.prepare(` SELECT @@ -33836,7 +33840,7 @@ var require_sqlite_cache_store = __commonJS({ this.#deleteByUrlQuery.run(this.#makeValueUrl(key)); } #prune() { - if (this.size <= this.#maxCount) { + if (Number.isFinite(this.#maxCount) && this.size <= this.#maxCount) { return 0; } { @@ -41375,7 +41379,7 @@ async function waitForAccessToken(request2, clientId, clientType, verification) return waitForAccessToken(request2, clientId, clientType, verification); } if (errorType === "slow_down") { - await wait(verification.interval + 5); + await wait(verification.interval + 7); return waitForAccessToken(request2, clientId, clientType, verification); } throw error; @@ -42345,7 +42349,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri return sendRequestWithRetries(state, request2, options, createdAt, retries); } } -var VERSION6 = "7.2.0"; +var VERSION6 = "7.2.1"; function createAppAuth(options) { if (!options.appId) { throw new Error("[@octokit/auth-app] appId option is required"); @@ -42694,14 +42698,10 @@ var main_default = main( /*! Bundled license information: undici/lib/fetch/body.js: - (*! formdata-polyfill. MIT License. Jimmy Wärting *) - -undici/lib/websocket/frame.js: - (*! ws. MIT License. Einar Otto Stangvik *) - undici/lib/web/fetch/body.js: (*! formdata-polyfill. MIT License. Jimmy Wärting *) +undici/lib/websocket/frame.js: undici/lib/web/websocket/frame.js: (*! ws. MIT License. Einar Otto Stangvik *) diff --git a/dist/post.cjs b/dist/post.cjs index 40fbec6..665540a 100644 --- a/dist/post.cjs +++ b/dist/post.cjs @@ -33404,6 +33404,11 @@ var require_sqlite_cache_store = __commonJS({ } this.#db = new DatabaseSync(opts?.location ?? ":memory:"); this.#db.exec(` + PRAGMA journal_mode = WAL; + PRAGMA synchronous = NORMAL; + PRAGMA temp_store = memory; + PRAGMA optimize; + CREATE TABLE IF NOT EXISTS cacheInterceptorV${VERSION3} ( -- Data specific to us id INTEGER PRIMARY KEY AUTOINCREMENT, @@ -33423,9 +33428,8 @@ var require_sqlite_cache_store = __commonJS({ staleAt INTEGER NOT NULL ); - CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION3}_url ON cacheInterceptorV${VERSION3}(url); - CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION3}_method ON cacheInterceptorV${VERSION3}(method); - CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION3}_deleteAt ON cacheInterceptorV${VERSION3}(deleteAt); + CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION3}_getValuesQuery ON cacheInterceptorV${VERSION3}(url, method, deleteAt); + CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION3}_deleteByUrlQuery ON cacheInterceptorV${VERSION3}(deleteAt); `); this.#getValuesQuery = this.#db.prepare(` SELECT @@ -33602,7 +33606,7 @@ var require_sqlite_cache_store = __commonJS({ this.#deleteByUrlQuery.run(this.#makeValueUrl(key)); } #prune() { - if (this.size <= this.#maxCount) { + if (Number.isFinite(this.#maxCount) && this.size <= this.#maxCount) { return 0; } { @@ -40917,14 +40921,10 @@ post(import_core2.default, request_default).catch((error) => { /*! Bundled license information: undici/lib/fetch/body.js: - (*! formdata-polyfill. MIT License. Jimmy Wärting *) - -undici/lib/websocket/frame.js: - (*! ws. MIT License. Einar Otto Stangvik *) - undici/lib/web/fetch/body.js: (*! formdata-polyfill. MIT License. Jimmy Wärting *) +undici/lib/websocket/frame.js: undici/lib/web/websocket/frame.js: (*! ws. MIT License. Einar Otto Stangvik *) */ diff --git a/package-lock.json b/package-lock.json index f7ef2a0..d514b39 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "create-github-app-token", - "version": "2.0.4", + "version": "2.0.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "create-github-app-token", - "version": "2.0.4", + "version": "2.0.5", "license": "MIT", "dependencies": { "@actions/core": "^1.11.1", diff --git a/package.json b/package.json index 2f9072a..80b5359 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "create-github-app-token", "private": true, "type": "module", - "version": "2.0.4", + "version": "2.0.5", "description": "GitHub Action for creating a GitHub App Installation Access Token", "scripts": { "build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --target=node20.0.0 --packages=bundle",