@nxtedition/nxt-undici 7.3.8 → 7.3.10

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.
@@ -4,7 +4,7 @@ import { SqliteCacheStore } from '../sqlite-cache-store.js'
4
4
 
5
5
  const DEFAULT_STORE = new SqliteCacheStore({ location: ':memory:' })
6
6
  const DEFAULT_MAX_ENTRY_SIZE = 128 * 1024
7
- const DEFAULT_MAX_ENTRY_TTL = 24 * 3600
7
+ const DEFAULT_MAX_ENTRY_TTL = 30 * 24 * 3600
8
8
  const NOOP = () => {}
9
9
 
10
10
  class CacheHandler extends DecoratorHandler {
@@ -123,7 +123,7 @@ export class SqliteCacheStore {
123
123
  AND start <= ?
124
124
  AND deleteAt > ?
125
125
  ORDER BY
126
- deleteAt ASC
126
+ cachedAt DESC
127
127
  `)
128
128
 
129
129
  this.#insertValueQuery = this.#db.prepare(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/nxt-undici",
3
- "version": "7.3.8",
3
+ "version": "7.3.10",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "main": "lib/index.js",