@nxtedition/nxt-undici 6.0.4 → 6.0.5

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.
package/lib/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import undici from '@nxtedition/undici'
2
2
  import { parseHeaders } from './utils.js'
3
3
  import { request as _request } from './request.js'
4
- import { cacheStores } from 'undici'
5
4
 
6
5
  const dispatcherCache = new WeakMap()
7
6
 
@@ -20,7 +19,7 @@ export const interceptors = {
20
19
  }
21
20
 
22
21
  export const cache = {
23
- SqliteCacheStore: cacheStores.SqliteCacheStore,
22
+ SqliteCacheStore: undici.cacheStores.SqliteCacheStore,
24
23
  }
25
24
 
26
25
  export { parseHeaders } from './utils.js'
@@ -1,7 +1,7 @@
1
- import { cacheStores } from 'undici'
1
+ import undici from '@nxtedition/undici'
2
2
  import { DecoratorHandler, parseCacheControl } from '../utils.js'
3
3
 
4
- const DEFAULT_STORE = new cacheStores.SqliteCacheStore({ location: ':memory:' })
4
+ const DEFAULT_STORE = new undici.cacheStores.SqliteCacheStore({ location: ':memory:' })
5
5
  const MAX_ENTRY_SIZE = 128 * 1024
6
6
 
7
7
  class CacheHandler extends DecoratorHandler {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/nxt-undici",
3
- "version": "6.0.4",
3
+ "version": "6.0.5",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "main": "lib/index.js",
@@ -9,10 +9,9 @@
9
9
  "lib/*"
10
10
  ],
11
11
  "dependencies": {
12
- "@nxtedition/undici": "^10.0.2",
12
+ "@nxtedition/undici": "^10.1.2",
13
13
  "cache-control-parser": "^2.0.6",
14
- "http-errors": "^2.0.0",
15
- "undici": "^7.3.0"
14
+ "http-errors": "^2.0.0"
16
15
  },
17
16
  "devDependencies": {
18
17
  "@types/node": "^22.10.7",