@nxtedition/nxt-undici 5.2.0 → 5.2.1
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/interceptor/cache.js +1 -1
- package/package.json +1 -1
package/lib/interceptor/cache.js
CHANGED
|
@@ -136,7 +136,7 @@ export default () => (dispatch) => (opts, handler) => {
|
|
|
136
136
|
// Dump body...
|
|
137
137
|
opts.body?.on('error', () => {}).resume()
|
|
138
138
|
|
|
139
|
-
const store = opts.store ?? DEFAULT_STORE
|
|
139
|
+
const store = opts.cache.store ?? DEFAULT_STORE
|
|
140
140
|
const entry = store.get(opts)
|
|
141
141
|
if (!entry) {
|
|
142
142
|
return dispatch(opts, new CacheHandler(opts.headers, { store, handler }))
|