From ef084d43ba29ebf3c3c0ea0939a5c58adad0bba2 Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Thu, 4 Nov 2021 18:21:57 +0300 Subject: [PATCH 1/2] fix: crash with md4 hash (#198) --- lib/getHashDigest.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/getHashDigest.js b/lib/getHashDigest.js index 505d6a3..6259503 100644 --- a/lib/getHashDigest.js +++ b/lib/getHashDigest.js @@ -67,6 +67,10 @@ function getHashDigest(buffer, algorithm, digestType, maxLength) { } else if (algorithm === "md4") { if (createMd4 === undefined) { createMd4 = require("./hash/md4"); + + if (BatchedHash === undefined) { + BatchedHash = require("./hash/BatchedHash"); + } } hash = new BatchedHash(createMd4()); From f7dbfe105094027e2a7fe5e8babb016ecab16239 Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Thu, 4 Nov 2021 18:22:52 +0300 Subject: [PATCH 2/2] chore(release): 3.1.3 --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b643eb..46c0783 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [3.1.3](https://github.com/webpack/loader-utils/compare/v3.1.2...v3.1.3) (2021-11-04) + + +### Bug Fixes + +* crash with md4 hash ([#198](https://github.com/webpack/loader-utils/issues/198)) ([ef084d4](https://github.com/webpack/loader-utils/commit/ef084d43ba29ebf3c3c0ea0939a5c58adad0bba2)) + ### [3.1.2](https://github.com/webpack/loader-utils/compare/v3.1.1...v3.1.2) (2021-11-04) diff --git a/package.json b/package.json index 67aed31..fd47cd4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loader-utils", - "version": "3.1.2", + "version": "3.1.3", "author": "Tobias Koppers @sokra", "description": "utils for webpack loaders", "dependencies": {