diff --git a/deno.json b/deno.json index 470e3ca..77ee439 100644 --- a/deno.json +++ b/deno.json @@ -1,4 +1,7 @@ { + "name": "@denosaurs/plug", + "version": "1.0.3", + "exports": "./mod.ts", "lock": false, "importMap": "./import_map.json" } diff --git a/deps.ts b/deps.ts index 5febe28..9b8064c 100644 --- a/deps.ts +++ b/deps.ts @@ -7,7 +7,7 @@ export { normalize, resolve, toFileUrl, -} from "https://deno.land/std@0.203.0/path/mod.ts"; -export { ensureDir } from "https://deno.land/std@0.203.0/fs/mod.ts"; -export { encode as hex } from "https://deno.land/std@0.203.0/encoding/hex.ts"; -export { green } from "https://deno.land/std@0.203.0/fmt/colors.ts"; +} from "jsr:@std/path@0.213.1"; +export { ensureDir } from "jsr:@std/fs@0.213.1"; +export { encodeHex as hex } from "jsr:@std/encoding@0.213.1/hex"; +export { green } from "jsr:@std/fmt@0.213.1/colors"; diff --git a/download.ts b/download.ts index 8eb49be..4bb1338 100644 --- a/download.ts +++ b/download.ts @@ -45,6 +45,7 @@ export const defaultExtensions: OsRecord = { aix: "so", solaris: "so", illumos: "so", + android: "so", }; export const defaultPrefixes: OsRecord = { @@ -56,6 +57,7 @@ export const defaultPrefixes: OsRecord = { solaris: "lib", illumos: "lib", windows: "", + android: "lib", }; function getCrossOption(record?: NestedCrossRecord): T | undefined { diff --git a/test_deps.ts b/test_deps.ts index 4e6dc3e..2fa4a31 100644 --- a/test_deps.ts +++ b/test_deps.ts @@ -1,2 +1,2 @@ -export * from "https://deno.land/std@0.203.0/assert/mod.ts"; -export * from "https://deno.land/std@0.203.0/path/mod.ts"; +export * from "https://deno.land/std@0.214.0/assert/mod.ts"; +export * from "https://deno.land/std@0.214.0/path/mod.ts"; diff --git a/util.ts b/util.ts index aa333ef..43a4ce5 100644 --- a/util.ts +++ b/util.ts @@ -46,11 +46,9 @@ export function stringToURL(url: string): URL { } export async function hash(value: string): Promise { - return decoder.decode( - hex( - new Uint8Array( - await crypto.subtle.digest("SHA-256", encoder.encode(value)), - ), + return hex( + new Uint8Array( + await crypto.subtle.digest("SHA-256", encoder.encode(value)), ), ); }