diff --git a/lib/index.js b/lib/index.js index 7db8dcf..d0ff9df 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,7 +1,7 @@ 'use strict' const crypto = require('crypto') -const MiniPass = require('minipass') +const { Minipass } = require('minipass') const SPEC_ALGORITHMS = ['sha512', 'sha384', 'sha256'] const DEFAULT_ALGORITHMS = ['sha512'] @@ -15,7 +15,7 @@ const VCHAR_REGEX = /^[\x21-\x7E]+$/ const getOptString = options => options?.length ? `?${options.join('?')}` : '' -class IntegrityStream extends MiniPass { +class IntegrityStream extends Minipass { #emittedIntegrity #emittedSize #emittedVerified diff --git a/package.json b/package.json index b41400c..36a9e02 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "author": "GitHub Inc.", "license": "ISC", "dependencies": { - "minipass": "^4.0.0" + "minipass": "^5.0.0" }, "devDependencies": { "@npmcli/eslint-config": "^4.0.0",