diff options
Diffstat (limited to 'deps/undici/src/index.js')
-rw-r--r-- | deps/undici/src/index.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/deps/undici/src/index.js b/deps/undici/src/index.js index 02ac246fa4..7e8831ceee 100644 --- a/deps/undici/src/index.js +++ b/deps/undici/src/index.js @@ -121,6 +121,13 @@ if (util.nodeMajor > 16 || (util.nodeMajor === 16 && util.nodeMinor >= 8)) { module.exports.setGlobalOrigin = setGlobalOrigin module.exports.getGlobalOrigin = getGlobalOrigin + + const { CacheStorage } = require('./lib/cache/cachestorage') + const { kConstruct } = require('./lib/cache/symbols') + + // Cache & CacheStorage are tightly coupled with fetch. Even if it may run + // in an older version of Node, it doesn't have any use without fetch. + module.exports.caches = new CacheStorage(kConstruct) } if (util.nodeMajor >= 16) { |