bump venmic

This commit is contained in:
Vendicated 2024-01-06 03:18:30 +01:00
parent 18925ad583
commit dfa9d248d3
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
3 changed files with 9 additions and 14 deletions

View file

@ -27,7 +27,7 @@
"arrpc": "github:OpenAsar/arrpc#98879cae0565e6fce34e4cb6f544bf42c6a7e7c8" "arrpc": "github:OpenAsar/arrpc#98879cae0565e6fce34e4cb6f544bf42c6a7e7c8"
}, },
"optionalDependencies": { "optionalDependencies": {
"@vencord/venmic": "^2.1.3" "@vencord/venmic": "^3.2.0"
}, },
"devDependencies": { "devDependencies": {
"@fal-works/esbuild-plugin-global-externals": "^2.1.2", "@fal-works/esbuild-plugin-global-externals": "^2.1.2",

8
pnpm-lock.yaml generated
View file

@ -11,8 +11,8 @@ dependencies:
optionalDependencies: optionalDependencies:
'@vencord/venmic': '@vencord/venmic':
specifier: ^2.1.3 specifier: ^3.2.0
version: 2.1.4 version: 3.2.0
devDependencies: devDependencies:
'@fal-works/esbuild-plugin-global-externals': '@fal-works/esbuild-plugin-global-externals':
@ -793,8 +793,8 @@ packages:
type-fest: 3.13.1 type-fest: 3.13.1
dev: true dev: true
/@vencord/venmic@2.1.4: /@vencord/venmic@3.2.0:
resolution: {integrity: sha512-Or//CHB9QtMcUXoDagkq0IF/7R8r7IABCaLIPtG8HCKSuOOFgBJ54PItnPXCliNKXWpwsUxj5z1WlZ4/VdwZHg==} resolution: {integrity: sha512-z+Lgmr6IgjkPEIfFZ3ZwVV4aP/OFjnB6k6Ll5YpBPuDZOyqCbKTNLADApbZa/WxMfm7YpZ22g46X4FfizuprEQ==}
engines: {node: '>=14.15'} engines: {node: '>=14.15'}
os: [linux] os: [linux]
requiresBuild: true requiresBuild: true

View file

@ -55,22 +55,17 @@ ipcMain.handle(
IpcEvents.VIRT_MIC_START, IpcEvents.VIRT_MIC_START,
(_, targets: string[]) => (_, targets: string[]) =>
obtainVenmic()?.link({ obtainVenmic()?.link({
props: targets.map(target => ({ key: "application.name", value: target })), include: targets.map(target => ({ key: "application.name", value: target })),
mode: "include" exclude: [{ key: "application.process.id", value: getRendererAudioServicePid() }]
}) })
); );
ipcMain.handle( ipcMain.handle(
IpcEvents.VIRT_MIC_START_SYSTEM, IpcEvents.VIRT_MIC_START_SYSTEM,
() => () =>
// @ts-expect-error venmic types are wrong. include is actually optional but typed as required in vemic
obtainVenmic()?.link({ obtainVenmic()?.link({
props: [ exclude: [{ key: "application.process.id", value: getRendererAudioServicePid() }]
{
key: "application.process.id",
value: getRendererAudioServicePid()
}
],
mode: "exclude"
}) })
); );