Skip to content

Commit

Permalink
feat: Switch from using md5 to sha1 (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
szubster authored Jan 18, 2024
1 parent 163127e commit ada9279
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 20 deletions.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function createTransformer(swcTransformOpts?: Options & {
const options: TransformOptions = typeof rest[0] === 'string' ? rest[1] : rest[0]

return crypto
.createHash('md5')
.createHash('sha1')
.update(baseCacheKey)
.update('\0', 'utf8')
.update(JSON.stringify({ supportsStaticESM: options.supportsStaticESM }))
Expand Down
154 changes: 136 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@swc/core": "*"
},
"dependencies": {
"@jest/create-cache-key-function": "^27.4.2",
"@jest/create-cache-key-function": "^29.7.0",
"jsonc-parser": "^3.2.0"
},
"devDependencies": {
Expand Down

0 comments on commit ada9279

Please sign in to comment.