Skip to content

Commit 6b41943

Browse files
committed
chore: upgrade masto.js to v7.8.0 (#3454)
1 parent f7c21f0 commit 6b41943

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

app/components/list/ListEntry.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ async function removeList() {
7171
if (confirmDelete.choice === 'confirm') {
7272
await nextTick()
7373
try {
74+
// @ts-expect-error this method should not take any argument, but it expects 1-2 arguments since masto.js v7.7.0 (potential issue)
7475
await client.v1.lists.$select(list.value.id).remove()
7576
emit('listRemoved', list.value.id)
7677
}

app/composables/masto/status.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export function useStatusActions(props: StatusActionsProps) {
6161

6262
const toggleReblog = () => toggleStatusAction(
6363
'reblogged',
64+
// @ts-expect-error this method should not take any argument, but it expects 1-2 arguments since masto.js v7.7.0 (potential issue)
6465
() => client.value.v1.statuses.$select(status.value.id)[status.value.reblogged ? 'unreblog' : 'reblog']().then((res) => {
6566
if (status.value.reblogged)
6667
// returns the original status

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"js-yaml": "^4.1.0",
9595
"lru-cache": "^11.0.0",
9696
"magic-string": "^0.30.19",
97-
"masto": "^7.6.0",
97+
"masto": "^7.8.0",
9898
"mocked-exports": "^0.1.1",
9999
"node-emoji": "^2.1.3",
100100
"nuxt": "^4.1.2",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)