diff --git a/lib/cache/entry.js b/lib/cache/entry.js index 12e2fb2..4514109 100644 --- a/lib/cache/entry.js +++ b/lib/cache/entry.js @@ -1,5 +1,5 @@ const { Request, Response } = require('minipass-fetch') -const Minipass = require('minipass') +const { Minipass } = require('minipass') const MinipassFlush = require('minipass-flush') const cacache = require('cacache') const url = require('url') diff --git a/lib/remote.js b/lib/remote.js index 068c73a..bdbcc79 100644 --- a/lib/remote.js +++ b/lib/remote.js @@ -1,4 +1,4 @@ -const Minipass = require('minipass') +const { Minipass } = require('minipass') const fetch = require('minipass-fetch') const promiseRetry = require('promise-retry') const ssri = require('ssri') diff --git a/package.json b/package.json index c3d704f..1015f0f 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "https-proxy-agent": "^5.0.0", "is-lambda": "^1.0.1", "lru-cache": "^7.7.1", - "minipass": "^4.0.0", + "minipass": "^5.0.0", "minipass-fetch": "^3.0.0", "minipass-flush": "^1.0.5", "minipass-pipeline": "^1.2.4", diff --git a/test/fetch.js b/test/fetch.js index 1f677ff..51b25e2 100644 --- a/test/fetch.js +++ b/test/fetch.js @@ -1,6 +1,6 @@ 'use strict' -const Minipass = require('minipass') +const { Minipass } = require('minipass') const t = require('tap') const nock = require('nock') const fetch = require('../lib/index.js')