From 030d20530b3e2586e5bcef320df8b03851554e58 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 7 Jan 2025 08:06:21 +1100 Subject: [PATCH] refactor: migrate fully to import maps --- blob.ts | 9 +++------ crypto.ts | 6 +++--- deno.json | 5 ++++- keys.ts | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/blob.ts b/blob.ts index 9aece95..7fd48ac 100644 --- a/blob.ts +++ b/blob.ts @@ -65,12 +65,9 @@ * @module */ -import { concat } from "jsr:@std/bytes@~1/concat"; -import { - decodeBase64Url, - encodeBase64Url, -} from "jsr:@std/encoding@~1/base64url"; -import { extension } from "jsr:@std/media-types@~1/extension"; +import { concat } from "@std/bytes/concat"; +import { decodeBase64Url, encodeBase64Url } from "@std/encoding/base64url"; +import { extension } from "@std/media-types/extension"; import { batchedAtomic } from "./batched_atomic.ts"; import { diff --git a/crypto.ts b/crypto.ts index de48fa3..6dbbc75 100644 --- a/crypto.ts +++ b/crypto.ts @@ -31,9 +31,9 @@ * @module */ -import { assert } from "jsr:@std/assert@~1/assert"; -import { decodeHex, encodeHex } from "jsr:@std/encoding@~1/hex"; -import { concat } from "jsr:@std/bytes@~1/concat"; +import { assert } from "@std/assert/assert"; +import { decodeHex, encodeHex } from "@std/encoding/hex"; +import { concat } from "@std/bytes/concat"; import { batchedAtomic } from "./batched_atomic.ts"; import { BLOB_KEY, type BlobJSON, type BlobMeta, toJSON } from "./blob.ts"; diff --git a/deno.json b/deno.json index dcb1c7d..7a47f94 100644 --- a/deno.json +++ b/deno.json @@ -29,6 +29,9 @@ "imports": { "@deno/kv-utils": "jsr:@deno/kv-utils@^0.1.3", "@std/assert": "jsr:@std/assert@~1", - "@std/bytes": "jsr:@std/bytes@~1" + "@std/bytes": "jsr:@std/bytes@~1", + "@std/crypto": "jsr:@std/crypto@~1", + "@std/encoding": "jsr:@std/encoding@~1", + "@std/media-types": "jsr:@std/media-types@~1" } } diff --git a/keys.ts b/keys.ts index 3241b41..58e9db8 100644 --- a/keys.ts +++ b/keys.ts @@ -144,7 +144,7 @@ * @module */ -import { timingSafeEqual } from "jsr:@std/crypto@~1/timing-safe-equal"; +import { timingSafeEqual } from "@std/crypto/timing-safe-equal"; import { BLOB_KEY, BLOB_META_KEY } from "./blob_util.ts";