Specify dependencies directly in code
This commit is contained in:
parent
f4875756d9
commit
a68958f752
4
bytes.ts
4
bytes.ts
@ -3,7 +3,7 @@ import {
|
|||||||
decodeHex,
|
decodeHex,
|
||||||
encodeBase64,
|
encodeBase64,
|
||||||
encodeHex,
|
encodeHex,
|
||||||
} from "@std/encoding";
|
} from "jsr:@std/encoding@^1.0.6";
|
||||||
|
|
||||||
const encoder = new TextEncoder();
|
const encoder = new TextEncoder();
|
||||||
const decoder = new TextDecoder();
|
const decoder = new TextDecoder();
|
||||||
@ -39,7 +39,7 @@ export function to_base64(b: BinaryLike): string {
|
|||||||
return encodeBase64(to_utf8(b));
|
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) {
|
export function buf_concat_fast(a: Uint8Array, b: Uint8Array) {
|
||||||
const m = a.length;
|
const m = a.length;
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@luaneko/lstd",
|
"name": "@luaneko/lstd",
|
||||||
"version": "0.1.0",
|
"version": "0.1.2",
|
||||||
"exports": "./mod.ts",
|
"exports": "./mod.ts"
|
||||||
"imports": {
|
|
||||||
"@std/bytes": "jsr:@std/bytes@^1.0.4",
|
|
||||||
"@std/encoding": "jsr:@std/encoding@^1.0.6"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
21
deno.lock
generated
21
deno.lock
generated
@ -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"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user