update
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import * as plugins from './smartipc.plugins';
|
||||
import * as plugins from './smartipc.plugins.js';
|
||||
import { EventEmitter } from 'events';
|
||||
|
||||
export interface ISmartIpcConstructorOptions {
|
||||
@@ -49,11 +49,13 @@ export class SmartIpc {
|
||||
await done.promise;
|
||||
break;
|
||||
default:
|
||||
throw new Error('type of ipc is not valid. Must be "server" or "client"');
|
||||
throw new Error(
|
||||
'type of ipc is not valid. Must be "server" or "client"',
|
||||
);
|
||||
}
|
||||
|
||||
for (const handler of this.handlers) {
|
||||
ipcEventEmitter.on(handler.keyword, dataArg => {
|
||||
ipcEventEmitter.on(handler.keyword, (dataArg) => {
|
||||
handler.handlerFunc(dataArg);
|
||||
});
|
||||
}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// pushrocks scope
|
||||
import * as smartdelay from '@pushrocks/smartdelay';
|
||||
import * as smartpromise from '@pushrocks/smartpromise';
|
||||
import * as smartrx from '@pushrocks/smartrx';
|
||||
import * as smartdelay from '@push.rocks/smartdelay';
|
||||
import * as smartpromise from '@push.rocks/smartpromise';
|
||||
import * as smartrx from '@push.rocks/smartrx';
|
||||
|
||||
export { smartdelay, smartpromise, smartrx };
|
||||
|
||||
|
Reference in New Issue
Block a user