Skip to content

Commit

Permalink
refactor: make use of base32 package
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-ext committed Mar 26, 2024
1 parent 55a8e74 commit 702d8c8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/api/utils/cbor.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as cborg from 'cborg';

import { assert } from '~/utils/misc';
import * as base32 from '@mary/base32';

import * as base32 from './base32';
import { assert } from '~/utils/misc';

const decodeCidToBytes = (source: string) => {
// Make sure we're dealing with serialized base32 here.
Expand Down
3 changes: 2 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
"dependencies": {
"@floating-ui/dom": "^1.6.3",
"@floating-ui/utils": "^0.2.1",
"@mary/atproto-cid": "npm:@jsr/mary__atproto-cid@^0.1.3",
"@mary/atproto-cid": "npm:@jsr/mary__atproto-cid@^0.1.4",
"@mary/atproto-tid": "npm:@jsr/mary__atproto-tid@^0.1.1",
"@mary/base32": "npm:@jsr/mary__base32@^0.1.0",
"@mary/bluesky-client": "npm:@jsr/mary__bluesky-client@^0.5.7",
"@mary/exif-rm": "npm:@jsr/mary__exif-rm@^0.2.1",
"@pkg/emoji-db": "workspace:^",
Expand Down
16 changes: 12 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 702d8c8

Please sign in to comment.