File tree Expand file tree Collapse file tree 12 files changed +99
-55
lines changed
commit-message-based-labels Expand file tree Collapse file tree 12 files changed +99
-55
lines changed Original file line number Diff line number Diff line change @@ -32413,6 +32413,11 @@ var require_sqlite_cache_store = __commonJS({
3241332413 }
3241432414 this.#db = new DatabaseSync((opts == null ? void 0 : opts.location) ?? ":memory:");
3241532415 this.#db.exec(`
32416+ PRAGMA journal_mode = WAL;
32417+ PRAGMA synchronous = NORMAL;
32418+ PRAGMA temp_store = memory;
32419+ PRAGMA optimize;
32420+
3241632421 CREATE TABLE IF NOT EXISTS cacheInterceptorV${VERSION13} (
3241732422 -- Data specific to us
3241832423 id INTEGER PRIMARY KEY AUTOINCREMENT,
@@ -32432,9 +32437,8 @@ var require_sqlite_cache_store = __commonJS({
3243232437 staleAt INTEGER NOT NULL
3243332438 );
3243432439
32435- CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION13}_url ON cacheInterceptorV${VERSION13}(url);
32436- CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION13}_method ON cacheInterceptorV${VERSION13}(method);
32437- CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION13}_deleteAt ON cacheInterceptorV${VERSION13}(deleteAt);
32440+ CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION13}_getValuesQuery ON cacheInterceptorV${VERSION13}(url, method, deleteAt);
32441+ CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION13}_deleteByUrlQuery ON cacheInterceptorV${VERSION13}(deleteAt);
3243832442 `);
3243932443 this.#getValuesQuery = this.#db.prepare(`
3244032444 SELECT
@@ -32596,7 +32600,7 @@ var require_sqlite_cache_store = __commonJS({
3259632600 }
3259732601 #prune() {
3259832602 var _a;
32599- if (this.size <= this.#maxCount) {
32603+ if (Number.isFinite(this.#maxCount) && this.size <= this.#maxCount) {
3260032604 return 0;
3260132605 }
3260232606 {
Original file line number Diff line number Diff line change @@ -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 {
Original file line number Diff line number Diff line change @@ -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 {
Original file line number Diff line number Diff line change @@ -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 {
Original file line number Diff line number Diff line change @@ -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 _a2;
32595- if (this.size <= this.#maxCount) {
32599+ if (Number.isFinite(this.#maxCount) && this.size <= this.#maxCount) {
3259632600 return 0;
3259732601 }
3259832602 {
Original file line number Diff line number Diff line change @@ -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${VERSION9} (
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${VERSION9}_url ON cacheInterceptorV${VERSION9}(url);
32432- CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION9}_method ON cacheInterceptorV${VERSION9}(method);
32433- CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION9}_deleteAt ON cacheInterceptorV${VERSION9}(deleteAt);
32436+ CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION9}_getValuesQuery ON cacheInterceptorV${VERSION9}(url, method, deleteAt);
32437+ CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION9}_deleteByUrlQuery ON cacheInterceptorV${VERSION9}(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 {
Original file line number Diff line number Diff line change @@ -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 {
Original file line number Diff line number Diff line change @@ -32413,6 +32413,11 @@ var require_sqlite_cache_store = __commonJS({
3241332413 }
3241432414 this.#db = new DatabaseSync((opts == null ? void 0 : opts.location) ?? ":memory:");
3241532415 this.#db.exec(`
32416+ PRAGMA journal_mode = WAL;
32417+ PRAGMA synchronous = NORMAL;
32418+ PRAGMA temp_store = memory;
32419+ PRAGMA optimize;
32420+
3241632421 CREATE TABLE IF NOT EXISTS cacheInterceptorV${VERSION9} (
3241732422 -- Data specific to us
3241832423 id INTEGER PRIMARY KEY AUTOINCREMENT,
@@ -32432,9 +32437,8 @@ var require_sqlite_cache_store = __commonJS({
3243232437 staleAt INTEGER NOT NULL
3243332438 );
3243432439
32435- CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION9}_url ON cacheInterceptorV${VERSION9}(url);
32436- CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION9}_method ON cacheInterceptorV${VERSION9}(method);
32437- CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION9}_deleteAt ON cacheInterceptorV${VERSION9}(deleteAt);
32440+ CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION9}_getValuesQuery ON cacheInterceptorV${VERSION9}(url, method, deleteAt);
32441+ CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${VERSION9}_deleteByUrlQuery ON cacheInterceptorV${VERSION9}(deleteAt);
3243832442 `);
3243932443 this.#getValuesQuery = this.#db.prepare(`
3244032444 SELECT
@@ -32596,7 +32600,7 @@ var require_sqlite_cache_store = __commonJS({
3259632600 }
3259732601 #prune() {
3259832602 var _a;
32599- if (this.size <= this.#maxCount) {
32603+ if (Number.isFinite(this.#maxCount) && this.size <= this.#maxCount) {
3260032604 return 0;
3260132605 }
3260232606 {
Original file line number Diff line number Diff line change @@ -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 {
Original file line number Diff line number Diff line change @@ -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 {
You can’t perform that action at this time.
0 commit comments