diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-04-29 13:27:12 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-04-29 13:27:12 +0900 |
| commit | fa371513a4374edc49803b6d60c41aff902041e7 (patch) | |
| tree | 60184fa14ca5403e2032a353499170fb7c06b5c6 /vhosts/blog/nuldoc-src/components | |
| parent | 0281e88dab3c4f156f8f3f1170cc6bde61710bde (diff) | |
| download | nsfisis.dev-fa371513a4374edc49803b6d60c41aff902041e7.tar.gz nsfisis.dev-fa371513a4374edc49803b6d60c41aff902041e7.tar.zst nsfisis.dev-fa371513a4374edc49803b6d60c41aff902041e7.zip | |
chore(blog/nuldoc): update deps
Diffstat (limited to 'vhosts/blog/nuldoc-src/components')
| -rw-r--r-- | vhosts/blog/nuldoc-src/components/utils.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vhosts/blog/nuldoc-src/components/utils.ts b/vhosts/blog/nuldoc-src/components/utils.ts index f0de71f1..5d57d033 100644 --- a/vhosts/blog/nuldoc-src/components/utils.ts +++ b/vhosts/blog/nuldoc-src/components/utils.ts @@ -1,4 +1,4 @@ -import { crypto, toHashString } from "std/crypto/mod.ts"; +import { Hash } from "checksum/mod.ts"; import { join } from "std/path/mod.ts"; import { Config } from "../config.ts"; import { el, Element } from "../dom.ts"; @@ -25,6 +25,6 @@ export async function staticScriptElement( async function calculateFileHash( filePath: string, ): Promise<string> { - const content = (await Deno.readFile(filePath)).buffer; - return toHashString(await crypto.subtle.digest("MD5", content), "hex"); + const content = await Deno.readFile(filePath); + return new Hash("md5").digest(content).hex(); } |
