Skip to content

Commit 730aabe

Browse files
susnuxskjnldsv
authored andcommitted
fix(deps): Update @nextcloud/event-bus to version 3.3.1
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 41aadc4 commit 730aabe

File tree

10 files changed

+147
-78
lines changed

10 files changed

+147
-78
lines changed

apps/files/src/actions/deleteAction.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import { action } from './deleteAction'
2323
import { expect } from '@jest/globals'
2424
import { File, Folder, Permission, View, FileAction } from '@nextcloud/files'
25-
import * as eventBus from '@nextcloud/event-bus'
25+
import eventBus from '@nextcloud/event-bus'
2626
import axios from '@nextcloud/axios'
2727

2828
import logger from '../logger'

apps/files/src/actions/favoriteAction.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import { action } from './favoriteAction'
2323
import { expect } from '@jest/globals'
2424
import { File, Permission, View, FileAction } from '@nextcloud/files'
25-
import * as eventBus from '@nextcloud/event-bus'
25+
import eventBus from '@nextcloud/event-bus'
2626
import * as favoriteAction from './favoriteAction'
2727
import axios from '@nextcloud/axios'
2828
import logger from '../logger'

apps/files/src/actions/renameAction.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import { action } from './renameAction'
2323
import { expect } from '@jest/globals'
2424
import { File, Permission, View, FileAction } from '@nextcloud/files'
25-
import * as eventBus from '@nextcloud/event-bus'
25+
import eventBus from '@nextcloud/event-bus'
2626

2727
const view = {
2828
id: 'files',

apps/files/src/eventbus.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import type { Node } from '@nextcloud/files'
2+
3+
declare module '@nextcloud/event-bus' {
4+
export interface NextcloudEvents {
5+
// mapping of 'event name' => 'event type'
6+
'files:favorites:removed': Node
7+
'files:favorites:added': Node
8+
}
9+
}
10+
11+
export {}

apps/files/src/views/favorites.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable import/no-named-as-default-member */
12
/**
23
* @copyright Copyright (c) 2023 John Molakvoæ <skjnldsv@protonmail.com>
34
*
@@ -22,7 +23,7 @@
2223
import { basename } from 'path'
2324
import { expect } from '@jest/globals'
2425
import { Folder, Navigation, getNavigation } from '@nextcloud/files'
25-
import * as eventBus from '@nextcloud/event-bus'
26+
import eventBus from '@nextcloud/event-bus'
2627
import * as initialState from '@nextcloud/initial-state'
2728

2829
import { action } from '../actions/favoriteAction'

apps/files_sharing/src/actions/acceptShareAction.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import { action } from './acceptShareAction'
2323
import { expect } from '@jest/globals'
2424
import { File, Permission, View, FileAction } from '@nextcloud/files'
25-
import * as eventBus from '@nextcloud/event-bus'
25+
import eventBus from '@nextcloud/event-bus'
2626
import axios from '@nextcloud/axios'
2727
import '../main'
2828

apps/files_sharing/src/actions/rejectShareAction.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import { action } from './rejectShareAction'
2323
import { expect } from '@jest/globals'
2424
import { File, Folder, Permission, View, FileAction } from '@nextcloud/files'
25-
import * as eventBus from '@nextcloud/event-bus'
25+
import eventBus from '@nextcloud/event-bus'
2626
import axios from '@nextcloud/axios'
2727
import '../main'
2828

apps/files_sharing/src/actions/restoreShareAction.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import { action } from './restoreShareAction'
2323
import { expect } from '@jest/globals'
2424
import { File, Permission, View, FileAction } from '@nextcloud/files'
25-
import * as eventBus from '@nextcloud/event-bus'
25+
import eventBus from '@nextcloud/event-bus'
2626
import axios from '@nextcloud/axios'
2727
import '../main'
2828

0 commit comments

Comments
 (0)