From 43f7a3f18054da9f7eb250edf86d4296ec554f07 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Apr 2023 18:57:02 +0000 Subject: [PATCH 1/2] 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] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4d5963e..92669b6 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", From 519f2e2a6fc29b7d7f306173e596acf7471803fa Mon Sep 17 00:00:00 2001 From: nlf Date: Mon, 17 Apr 2023 11:23:27 -0700 Subject: [PATCH 2/2] chore: fix usage for minipass@5 --- lib/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index e142431..d7a05ca 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