fix(lib/discord): correct AppStartPerformance filter
This commit is contained in:
parent
a899199d43
commit
c1a7ddbd44
1 changed files with 12 additions and 2 deletions
|
|
@ -1,17 +1,27 @@
|
|||
import { lookupModule } from '@revenge-mod/modules/finders'
|
||||
import {
|
||||
withDependencies,
|
||||
withName,
|
||||
withProps,
|
||||
} from '@revenge-mod/modules/finders/filters'
|
||||
import type { Metro } from '@revenge-mod/modules/types'
|
||||
import type { DiscordModules } from './types'
|
||||
|
||||
const { relative } = withDependencies
|
||||
const [, _asyncToGeneratorModuleId] = lookupModule(
|
||||
withName('_asyncToGenerator'),
|
||||
)
|
||||
const [, _classCallCheckModuleId] = lookupModule(withName('_classCallCheck'))
|
||||
const [, _createClassModuleId] = lookupModule(withName('_createClass'))
|
||||
|
||||
// ../discord_common/js/packages/app-start-performance/AppStartPerformance.tsx
|
||||
export const [AppStartPerformance] = lookupModule(
|
||||
withProps<DiscordModules.AppStartPerformance>('markAndLog').and(
|
||||
withDependencies([relative(-1), null, null, null]),
|
||||
withDependencies([
|
||||
_asyncToGeneratorModuleId,
|
||||
_classCallCheckModuleId,
|
||||
_createClassModuleId,
|
||||
2,
|
||||
]),
|
||||
),
|
||||
) as [DiscordModules.AppStartPerformance, Metro.ModuleID]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue