Specify dependencies directly in code

This commit is contained in:
luaneko 2025-01-07 03:53:58 +11:00
parent f4875756d9
commit a68958f752
Signed by: luaneko
GPG Key ID: 406809B8763FF07A
3 changed files with 4 additions and 29 deletions

View File

@ -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;

View File

@ -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"
}

21
deno.lock generated
View File

@ -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"
]
}
}