This commit is contained in:
Eric Bailey
2025-02-26 10:36:50 -06:00
parent 172e565e23
commit 4a754981a1
3 changed files with 15 additions and 4 deletions
+1 -1
View File
@@ -57,7 +57,7 @@
"icons:optimize": "svgo -f ./assets/icons"
},
"dependencies": {
"@atproto/api": "^0.14.0",
"@atproto/api": "^0.14.7",
"@bitdrift/react-native": "^0.6.8",
"@braintree/sanitize-url": "^6.0.2",
"@discord/bottom-sheet": "bluesky-social/react-native-bottom-sheet",
@@ -105,7 +105,6 @@ function Inner(props: ReportDialogProps) {
if (!allLabelers) return []
return allLabelers
.filter(l => {
// @ts-expect-error TODO
const subjectTypes: string[] | undefined = l.subjectTypes
if (subjectTypes === undefined) return true
if (props.subject.type === 'account') {
@@ -117,7 +116,6 @@ function Inner(props: ReportDialogProps) {
}
})
.filter(l => {
// @ts-expect-error TODO
const collections: string[] | undefined = l.subjectCollections
if (collections === undefined) return true
// all chat collections accepted, since only Bluesky handles chats
@@ -126,7 +124,6 @@ function Inner(props: ReportDialogProps) {
})
.filter(l => {
if (!state.selectedOption) return true
// @ts-expect-error TODO
const reasonTypes: string[] | undefined = l.reasonTypes
if (reasonTypes === undefined) return true
return reasonTypes.includes(state.selectedOption.reason)
+14
View File
@@ -80,6 +80,20 @@
tlds "^1.234.0"
zod "^3.23.8"
"@atproto/api@^0.14.7":
version "0.14.7"
resolved "https://registry.yarnpkg.com/@atproto/api/-/api-0.14.7.tgz#3ffa02d6b3baf9e265dab170367ffade08023567"
integrity sha512-YG2kvAtsgtajLlLrorYuHcxGgepG0c/RUB2/iJyBnwKjGqDLG8joOETf38JSNiGzs6NJbNKa9NHG6BQKourxBA==
dependencies:
"@atproto/common-web" "^0.4.0"
"@atproto/lexicon" "^0.4.7"
"@atproto/syntax" "^0.3.3"
"@atproto/xrpc" "^0.6.9"
await-lock "^2.2.2"
multiformats "^9.9.0"
tlds "^1.234.0"
zod "^3.23.8"
"@atproto/aws@^0.2.15":
version "0.2.15"
resolved "https://registry.yarnpkg.com/@atproto/aws/-/aws-0.2.15.tgz#edc534a420b4da37e2f049d471bf40df93447a25"