Skip to content

Commit

Permalink
refactor: migrate fully to import maps
Browse files Browse the repository at this point in the history
kitsonk committed Jan 6, 2025
1 parent b3699cf commit 030d205
Showing 4 changed files with 11 additions and 11 deletions.
9 changes: 3 additions & 6 deletions blob.ts
Original file line number Diff line number Diff line change
@@ -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 {
6 changes: 3 additions & 3 deletions crypto.ts
Original file line number Diff line number Diff line change
@@ -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";
5 changes: 4 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
2 changes: 1 addition & 1 deletion keys.ts
Original file line number Diff line number Diff line change
@@ -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";

0 comments on commit 030d205

Please sign in to comment.