fix(core): update

This commit is contained in:
Philipp Kunz 2023-12-06 19:04:14 +01:00
parent 8ab5b6f4b7
commit 816cd102a2
3 changed files with 5 additions and 4 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@api.global/typedelectron',
version: '1.0.8',
version: '1.0.9',
description: 'a package made for ipc communication in electron'
}

View File

@ -10,8 +10,9 @@ export class TypedElectronBackend {
public typedrouter = new plugins.typedrequest.TypedRouter();
constructor() {
plugins.electron.ipcMain.on('typedrequest', (eventArg, payloadArg) => {
this.typedrouter.routeAndAddResponse({ ...payloadArg }); // TODO: check how to pass on eventArg
plugins.electron.ipcMain.on('typedrequest', async (eventArg, payloadArg) => {
const updatedPayload = await this.typedrouter.routeAndAddResponse({ ...payloadArg }); // TODO: check how to pass on eventArg
eventArg.sender.send('typedrequest', updatedPayload);
});
}

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@api.global/typedelectron',
version: '1.0.8',
version: '1.0.9',
description: 'a package made for ipc communication in electron'
}