fix multiformats package version
This commit is contained in:
+3
-2
@@ -157,7 +157,7 @@
|
|||||||
"lodash.isequal": "^4.5.0",
|
"lodash.isequal": "^4.5.0",
|
||||||
"lodash.shuffle": "^4.2.0",
|
"lodash.shuffle": "^4.2.0",
|
||||||
"lodash.throttle": "^4.1.1",
|
"lodash.throttle": "^4.1.1",
|
||||||
"multiformats": "^13.1.0",
|
"multiformats": "9.9.0",
|
||||||
"nanoid": "^5.0.5",
|
"nanoid": "^5.0.5",
|
||||||
"normalize-url": "^8.0.0",
|
"normalize-url": "^8.0.0",
|
||||||
"patch-package": "^6.5.1",
|
"patch-package": "^6.5.1",
|
||||||
@@ -272,7 +272,8 @@
|
|||||||
"@types/react": "^18",
|
"@types/react": "^18",
|
||||||
"**/expo-constants": "17.0.3",
|
"**/expo-constants": "17.0.3",
|
||||||
"**/expo-device": "7.0.1",
|
"**/expo-device": "7.0.1",
|
||||||
"**/zod": "3.23.8"
|
"**/zod": "3.23.8",
|
||||||
|
"**/multiformats": "9.9.0"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"preset": "jest-expo/ios",
|
"preset": "jest-expo/ios",
|
||||||
|
|||||||
+17
-18
@@ -1,26 +1,25 @@
|
|||||||
import {
|
import {
|
||||||
$Typed,
|
type $Typed,
|
||||||
AppBskyEmbedExternal,
|
type AppBskyEmbedExternal,
|
||||||
AppBskyEmbedImages,
|
type AppBskyEmbedImages,
|
||||||
AppBskyEmbedRecord,
|
type AppBskyEmbedRecord,
|
||||||
AppBskyEmbedRecordWithMedia,
|
type AppBskyEmbedRecordWithMedia,
|
||||||
AppBskyEmbedVideo,
|
type AppBskyEmbedVideo,
|
||||||
AppBskyFeedPost,
|
type AppBskyFeedPost,
|
||||||
AtUri,
|
AtUri,
|
||||||
BlobRef,
|
BlobRef,
|
||||||
BskyAgent,
|
type BskyAgent,
|
||||||
ComAtprotoLabelDefs,
|
type ComAtprotoLabelDefs,
|
||||||
ComAtprotoRepoApplyWrites,
|
type ComAtprotoRepoApplyWrites,
|
||||||
ComAtprotoRepoStrongRef,
|
type ComAtprotoRepoStrongRef,
|
||||||
RichText,
|
RichText,
|
||||||
} from '@atproto/api'
|
} from '@atproto/api'
|
||||||
import {TID} from '@atproto/common-web'
|
import {TID} from '@atproto/common-web'
|
||||||
import * as dcbor from '@ipld/dag-cbor'
|
import * as dcbor from '@ipld/dag-cbor'
|
||||||
import {t} from '@lingui/macro'
|
import {t} from '@lingui/macro'
|
||||||
import {QueryClient} from '@tanstack/react-query'
|
import {type QueryClient} from '@tanstack/react-query'
|
||||||
import {sha256} from 'js-sha256'
|
import {sha256} from 'js-sha256'
|
||||||
import {CID} from 'multiformats/cid'
|
import {CID, hasher} from 'multiformats'
|
||||||
import * as Hasher from 'multiformats/hashes/hasher'
|
|
||||||
|
|
||||||
import {isNetworkError} from '#/lib/strings/errors'
|
import {isNetworkError} from '#/lib/strings/errors'
|
||||||
import {shortenLinks, stripInvalidMentions} from '#/lib/strings/rich-text-manip'
|
import {shortenLinks, stripInvalidMentions} from '#/lib/strings/rich-text-manip'
|
||||||
@@ -35,9 +34,9 @@ import {
|
|||||||
threadgateAllowUISettingToAllowRecordValue,
|
threadgateAllowUISettingToAllowRecordValue,
|
||||||
} from '#/state/queries/threadgate'
|
} from '#/state/queries/threadgate'
|
||||||
import {
|
import {
|
||||||
EmbedDraft,
|
type EmbedDraft,
|
||||||
PostDraft,
|
type PostDraft,
|
||||||
ThreadDraft,
|
type ThreadDraft,
|
||||||
} from '#/view/com/composer/state/composer'
|
} from '#/view/com/composer/state/composer'
|
||||||
import {createGIFDescription} from '../gif-alt-text'
|
import {createGIFDescription} from '../gif-alt-text'
|
||||||
import {uploadBlob} from './upload-blob'
|
import {uploadBlob} from './upload-blob'
|
||||||
@@ -410,7 +409,7 @@ async function resolveRecord(
|
|||||||
|
|
||||||
// The built-in hashing functions from multiformats (`multiformats/hashes/sha2`)
|
// The built-in hashing functions from multiformats (`multiformats/hashes/sha2`)
|
||||||
// are meant for Node.js, this is the cross-platform equivalent.
|
// are meant for Node.js, this is the cross-platform equivalent.
|
||||||
const mf_sha256 = Hasher.from({
|
const mf_sha256 = hasher.from({
|
||||||
name: 'sha2-256',
|
name: 'sha2-256',
|
||||||
code: 0x12,
|
code: 0x12,
|
||||||
encode: input => {
|
encode: input => {
|
||||||
|
|||||||
+2
-1
@@ -10,7 +10,8 @@
|
|||||||
"platform/*": ["./src/platform/*"],
|
"platform/*": ["./src/platform/*"],
|
||||||
"state/*": ["./src/state/*"],
|
"state/*": ["./src/state/*"],
|
||||||
"view/*": ["./src/view/*"],
|
"view/*": ["./src/view/*"],
|
||||||
"crypto": ["./src/platform/crypto.ts"]
|
"crypto": ["./src/platform/crypto.ts"],
|
||||||
|
"multiformats": ["node_modules/multiformats/types/src/index.d.ts"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"exclude": ["bskyweb", "bskyembed", "web-build"]
|
"exclude": ["bskyweb", "bskyembed", "web-build"]
|
||||||
|
|||||||
@@ -15124,12 +15124,7 @@ multicast-dns@^7.2.5:
|
|||||||
dns-packet "^5.2.2"
|
dns-packet "^5.2.2"
|
||||||
thunky "^1.0.2"
|
thunky "^1.0.2"
|
||||||
|
|
||||||
multiformats@^13.1.0:
|
multiformats@9.9.0, multiformats@^13.1.0, multiformats@^9.4.2, multiformats@^9.5.4, multiformats@^9.6.4, multiformats@^9.9.0:
|
||||||
version "13.3.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/multiformats/-/multiformats-13.3.0.tgz#1f5188bc7c4fe08ff829ae1c18dc33409042fb71"
|
|
||||||
integrity sha512-CBiqvsufgmpo01VT5ze94O+uc+Pbf6f/sThlvWss0sBZmAOu6GQn5usrYV2sf2mr17FWYc0rO8c/CNe2T90QAA==
|
|
||||||
|
|
||||||
multiformats@^9.4.2, multiformats@^9.5.4, multiformats@^9.6.4, multiformats@^9.9.0:
|
|
||||||
version "9.9.0"
|
version "9.9.0"
|
||||||
resolved "https://registry.yarnpkg.com/multiformats/-/multiformats-9.9.0.tgz#c68354e7d21037a8f1f8833c8ccd68618e8f1d37"
|
resolved "https://registry.yarnpkg.com/multiformats/-/multiformats-9.9.0.tgz#c68354e7d21037a8f1f8833c8ccd68618e8f1d37"
|
||||||
integrity sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg==
|
integrity sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg==
|
||||||
|
|||||||
Reference in New Issue
Block a user