From fa371513a4374edc49803b6d60c41aff902041e7 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 29 Apr 2024 13:27:12 +0900 Subject: chore(blog/nuldoc): update deps --- vhosts/blog/nuldoc-src/components/utils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vhosts/blog/nuldoc-src/components/utils.ts') 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 { - 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(); } -- cgit v1.2.3-70-g09d2