From 910eb4c7e80071990ae7b3acc2dbd1c1efa07129 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 92f18f4..2d519c5 100644 --- a/_test_util.ts +++ b/_test_util.ts @@ -1,11 +1,9 @@ -import { assert } from "https://deno.land/std@0.217.0/assert/assert.ts"; -export { delay } from "https://deno.land/std@0.217.0/async/delay.ts"; -export { assert } from "https://deno.land/std@0.217.0/assert/assert.ts"; -export { assertEquals } from "https://deno.land/std@0.217.0/assert/assert_equals.ts"; -export { - assertNotEquals, -} from "https://deno.land/std@0.217.0/assert/assert_not_equals.ts"; -export { timingSafeEqual } from "https://deno.land/std@0.217.0/crypto/timing_safe_equal.ts"; +import { assert } from "jsr:@std/assert@0.216/assert"; +export { delay } from "jsr:@std/async@0.216/delay"; +export { assert } from "jsr:@std/assert@0.216/assert"; +export { assertEquals } from "jsr:@std/assert@0.216/assert_equals"; +export { assertNotEquals } from "jsr:@std/assert@0.216/assert_not_equals"; +export { timingSafeEqual } from "jsr:@std/crypto@0.216/timing_safe_equal"; let kv: Deno.Kv | undefined; let path: string | undefined; diff --git a/keys.ts b/keys.ts index 540d117..02b319a 100644 --- a/keys.ts +++ b/keys.ts @@ -27,7 +27,7 @@ * @module */ -import { timingSafeEqual } from "https://deno.land/std@0.217.0/crypto/timing_safe_equal.ts"; +import { timingSafeEqual } from "jsr:@std/crypto@0.216/timing_safe_equal"; function addIfUnique(set: Set, item: Uint8Array) { for (const i of set) {