@nxtedition/cache 1.0.11 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +3 -3
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { DatabaseSync, } from 'node:sqlite'
1
+ import { DatabaseSync, } from 'node:sqlite'
2
2
  import { MemoryCache, } from "./memory.js"
3
3
 
4
4
 
@@ -368,12 +368,12 @@ export class AsyncCache {
368
368
  })
369
369
 
370
370
  try {
371
- this.#setQuery?.run(key, data , ttl, stale)
371
+ this.#setQuery?.run(key, data , ttl, stale)
372
372
  } catch (err) {
373
373
  if ((err )?.errcode === 13 /* SQLITE_FULL */) {
374
374
  try {
375
375
  this.#evictQuery?.run(256)
376
- this.#setQuery?.run(key, data , ttl, stale)
376
+ this.#setQuery?.run(key, data , ttl, stale)
377
377
  } catch {
378
378
  process.emitWarning(err )
379
379
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/cache",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -28,5 +28,5 @@
28
28
  "rimraf": "^6.1.2",
29
29
  "typescript": "^5.9.3"
30
30
  },
31
- "gitHead": "80ace3245dc851f38a288b0c3b167ca0024f0469"
31
+ "gitHead": "b5eb4fccacdf7e6e9f18a8b3b41370ade290322b"
32
32
  }