diff --git a/package.json b/package.json index f25fd7d..ee2f6db 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "abortcontroller-polyfill": "~1.7.3", "form-data": "^4.0.0", "iconv-lite": "^0.7.2", - "nock": "^13.2.4", + "nock": "^15.0.6", "parted": "^0.1.1", "string-to-arraybuffer": "^1.0.2", "tap": "^16.0.0" diff --git a/test/decompress-async.js b/test/decompress-async.js index 381d278..740e354 100644 --- a/test/decompress-async.js +++ b/test/decompress-async.js @@ -2,7 +2,7 @@ const t = require('tap') const fetch = require('../lib/index.js') const realZlib = require('zlib') -const nock = require('nock') +const { default: nock } = require('nock') // We additionally test decompression here using nock as it seems to recreate a // hard to diagnose condition: https://github.com/npm/minipass-fetch/issues/166 diff --git a/test/index.js b/test/index.js index fb253c6..67bba86 100644 --- a/test/index.js +++ b/test/index.js @@ -26,7 +26,7 @@ const http = require('http') // use of url.parse here is intentional and for coverage purposes // eslint-disable-next-line node/no-deprecated-api const { parse: parseURL, URLSearchParams } = require('url') -const nock = require('nock') +const { default: nock } = require('nock') const vm = require('vm') const {