diff --git a/bytes.ts b/bytes.ts index 685c2db..8915377 100644 --- a/bytes.ts +++ b/bytes.ts @@ -3,7 +3,7 @@ import { decodeHex, encodeBase64, encodeHex, -} from "@std/encoding"; +} from "jsr:@std/encoding@^1.0.6"; const encoder = new TextEncoder(); const decoder = new TextDecoder(); @@ -39,7 +39,7 @@ export function to_base64(b: BinaryLike): string { return encodeBase64(to_utf8(b)); } -export { equals as buf_eq, concat as buf_concat } from "@std/bytes"; +export { equals as buf_eq, concat as buf_concat } from "jsr:@std/bytes@^1.0.4"; export function buf_concat_fast(a: Uint8Array, b: Uint8Array) { const m = a.length; diff --git a/deno.json b/deno.json index d378fb7..6101a4a 100644 --- a/deno.json +++ b/deno.json @@ -1,9 +1,5 @@ { "name": "@luaneko/lstd", - "version": "0.1.0", - "exports": "./mod.ts", - "imports": { - "@std/bytes": "jsr:@std/bytes@^1.0.4", - "@std/encoding": "jsr:@std/encoding@^1.0.6" - } + "version": "0.1.2", + "exports": "./mod.ts" } diff --git a/deno.lock b/deno.lock deleted file mode 100644 index f156b53..0000000 --- a/deno.lock +++ /dev/null @@ -1,21 +0,0 @@ -{ - "version": "4", - "specifiers": { - "jsr:@std/bytes@^1.0.4": "1.0.4", - "jsr:@std/encoding@^1.0.6": "1.0.6" - }, - "jsr": { - "@std/bytes@1.0.4": { - "integrity": "11a0debe522707c95c7b7ef89b478c13fb1583a7cfb9a85674cd2cc2e3a28abc" - }, - "@std/encoding@1.0.6": { - "integrity": "ca87122c196e8831737d9547acf001766618e78cd8c33920776c7f5885546069" - } - }, - "workspace": { - "dependencies": [ - "jsr:@std/bytes@^1.0.4", - "jsr:@std/encoding@^1.0.6" - ] - } -}