Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit ada9279

Browse files
authored
feat: Switch from using md5 to sha1 (#170)
1 parent 163127e commit ada9279

File tree

3 files changed

+138
-20
lines changed

3 files changed

+138
-20
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function createTransformer(swcTransformOpts?: Options & {
6161
const options: TransformOptions = typeof rest[0] === 'string' ? rest[1] : rest[0]
6262

6363
return crypto
64-
.createHash('md5')
64+
.createHash('sha1')
6565
.update(baseCacheKey)
6666
.update('\0', 'utf8')
6767
.update(JSON.stringify({ supportsStaticESM: options.supportsStaticESM }))

package-lock.json

Lines changed: 136 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@swc/core": "*"
2727
},
2828
"dependencies": {
29-
"@jest/create-cache-key-function": "^27.4.2",
29+
"@jest/create-cache-key-function": "^29.7.0",
3030
"jsonc-parser": "^3.2.0"
3131
},
3232
"devDependencies": {

0 commit comments

Comments
 (0)