fix(core): update

This commit is contained in:
Philipp Kunz 2023-12-06 03:05:05 +01:00
parent 487ab07f0e
commit 61e463b66f
4 changed files with 6 additions and 5 deletions

View File

@ -1,9 +1,9 @@
const { contextBridge, ipcRenderer } = require('electron')
const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('electronApi', {
sendMessage: async (channelNameArg, payloadArg) => {
ipcRenderer.send(channelNameArg, payloadArg);
},
receiveMessage: (channelNameArg, func) => {
ipcRenderer.on(channelNameArg, (event, ...args) => func(...args));
}
},
});

View File

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

View File

@ -1,7 +1,8 @@
import * as plugins from './plugins.js';
export const packageDir = plugins.path.join(
plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url)
plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
'../',
);
export const assetsDir = plugins.path.join(packageDir, 'assets');

View File

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