@nxtedition/nxt-undici 6.2.35 → 6.2.36

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 = 14 * 24 * 3600
7
+ const DEFAULT_MAX_ENTRY_TTL = 24 * 3600
8
8
  const NOOP = () => {}
9
9
 
10
10
  class CacheHandler extends DecoratorHandler {
@@ -169,7 +169,7 @@ export class SqliteCacheStore {
169
169
  body,
170
170
  value.start,
171
171
  value.end,
172
- value.deleteAt,
172
+ value.deleteAt ?? Date.now() + 3600e3,
173
173
  value.statusCode,
174
174
  value.statusMessage,
175
175
  value.headers ? JSON.stringify(value.headers) : null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/nxt-undici",
3
- "version": "6.2.35",
3
+ "version": "6.2.36",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "main": "lib/index.js",