disable package exports

This commit is contained in:
Samuel Newman
2025-04-28 12:54:40 +03:00
parent 16325fd43e
commit 649c89bda1
4 changed files with 23 additions and 11 deletions
+3 -2
View File
@@ -19,7 +19,8 @@ import * as dcbor from '@ipld/dag-cbor'
import {t} from '@lingui/macro'
import {type QueryClient} from '@tanstack/react-query'
import {sha256} from 'js-sha256'
import {CID, hasher} from 'multiformats'
import {CID} from 'multiformats/cid'
import * as Hasher from 'multiformats/hashes/hasher'
import {isNetworkError} from '#/lib/strings/errors'
import {shortenLinks, stripInvalidMentions} from '#/lib/strings/rich-text-manip'
@@ -409,7 +410,7 @@ async function resolveRecord(
// The built-in hashing functions from multiformats (`multiformats/hashes/sha2`)
// are meant for Node.js, this is the cross-platform equivalent.
const mf_sha256 = hasher.from({
const mf_sha256 = Hasher.from({
name: 'sha2-256',
code: 0x12,
encode: input => {