Skip to content

Commit 9513618

Browse files
committed
Change default to md5
1 parent 1066732 commit 9513618

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/getHashDijest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const getHashDigest = (
5858
digestType: string,
5959
maxLength = 9999
6060
): string => {
61-
const hash = createHash(hashType || 'md4');
61+
const hash = createHash(hashType || 'md5');
6262

6363
hash.update(buffer);
6464

test/globalFixtures/options.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ test('Use the filepath only as hash seeder', async () => {
5959
});
6060

6161
expect(output).toBe(
62-
'<style module>:global(.red-027d15) { color: red; } :global(.bold-027d15) { color: bold; }</style><span class="red-027d15 bold-027d15">Red</span>'
62+
'<style module>:global(.red-727f4c) { color: red; } :global(.bold-727f4c) { color: bold; }</style><span class="red-727f4c bold-727f4c">Red</span>'
6363
);
6464
});
6565

0 commit comments

Comments
 (0)