From 5d77e41eaef13de525321be4da9bc0a58beb413e Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Sat, 13 Jan 2024 08:08:32 +1100 Subject: [PATCH] chore: migrate to jsr --- _test_util.ts | 14 ++++++-------- keys.ts | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/_test_util.ts b/_test_util.ts index 6a9f880..4e684bd 100644 --- a/_test_util.ts +++ b/_test_util.ts @@ -1,11 +1,9 @@ -import { assert } from "https://deno.land/std@0.203.0/assert/assert.ts"; -export { delay } from "https://deno.land/std@0.203.0/async/delay.ts"; -export { assert } from "https://deno.land/std@0.203.0/assert/assert.ts"; -export { assertEquals } from "https://deno.land/std@0.203.0/assert/assert_equals.ts"; -export { - assertNotEquals, -} from "https://deno.land/std@0.203.0/assert/assert_not_equals.ts"; -export { timingSafeEqual } from "https://deno.land/std@0.203.0/crypto/timing_safe_equal.ts"; +import { assert } from "jsr:@std/assert@0.210/assert"; +export { delay } from "jsr:@std/async@0.210/delay"; +export { assert } from "jsr:@std/assert@0.210/assert"; +export { assertEquals } from "jsr:@std/assert@0.210/assert_equals"; +export { assertNotEquals } from "jsr:@std/assert@0.210/assert_not_equals"; +export { timingSafeEqual } from "jsr:@std/crypto@0.210/timing_safe_equal"; let kv: Deno.Kv | undefined; let path: string | undefined; diff --git a/keys.ts b/keys.ts index 240f1d4..099dd56 100644 --- a/keys.ts +++ b/keys.ts @@ -27,7 +27,7 @@ * @module */ -import { timingSafeEqual } from "https://deno.land/std@0.203.0/crypto/timing_safe_equal.ts"; +import { timingSafeEqual } from "jsr:@std/crypto@0.210/timing_safe_equal"; function addIfUnique(set: Set, item: Uint8Array) { for (const i of set) {