From 152e2bce4362d9a2376fcc90329e184e2bb7631a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Apr 2023 11:27:05 -0700 Subject: [PATCH] deps: bump minipass from 4.2.7 to 5.0.0 (#78) * deps: bump minipass from 4.2.7 to 5.0.0 Bumps [minipass](https://github.com/isaacs/minipass) from 4.2.7 to 5.0.0. - [Release notes](https://github.com/isaacs/minipass/releases) - [Changelog](https://github.com/isaacs/minipass/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/minipass/compare/v4.2.7...v5.0.0) --- updated-dependencies: - dependency-name: minipass dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * chore: fix usage for minipass@5 --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: nlf --- lib/index.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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",