Compare commits

...

2 Commits

Author SHA1 Message Date
Derrick Hammer 00f4e4f3ad
*Update dist 2023-04-08 15:37:51 -04:00
Derrick Hammer 6870c1205c
*Switch back to eventemitter2 as it as async support 2023-04-08 15:36:11 -04:00
5 changed files with 8 additions and 8 deletions

2
dist/index.d.ts vendored
View File

@ -3,7 +3,7 @@ type connectModule = typeof import("libkmodule").connectModule;
type logErr = typeof import("libkmodule").logErr;
type log = typeof import("libkmodule").log;
import type { ErrTuple, DataFn } from "@siaweb/libweb";
import EventEmitter from "eventemitter3";
import EventEmitter from "eventemitter2";
type callModuleBound = (method: string, data?: any) => Promise<ErrTuple>;
type connectModuleBound = (method: string, data: any, receiveUpdate: DataFn) => [sendUpdate: DataFn, response: Promise<ErrTuple>];
declare let callModule: callModule;

2
dist/index.js vendored
View File

@ -1,4 +1,4 @@
import EventEmitter from "eventemitter3";
import EventEmitter from "eventemitter2";
let callModule;
let connectModule;
let log;

View File

@ -8,7 +8,7 @@
},
"dependencies": {
"@siaweb/libweb": "git+https://git.lumeweb.com/LumeWeb/libsiaweb.git",
"eventemitter3": "^5.0.0",
"eventemitter2": "^6.4.9",
"libkernel": "^0.1.48",
"libkmodule": "^0.2.53"
},

View File

@ -2,7 +2,7 @@ lockfileVersion: 5.4
specifiers:
'@siaweb/libweb': git+https://git.lumeweb.com/LumeWeb/libsiaweb.git
eventemitter3: ^5.0.0
eventemitter2: ^6.4.9
libkernel: ^0.1.48
libkmodule: ^0.2.53
prettier: ^2.8.3
@ -10,7 +10,7 @@ specifiers:
dependencies:
'@siaweb/libweb': git.lumeweb.com/LumeWeb/libsiaweb/5e6cdba3e7d9a4b94e21ddcd5f2b5138fb440ee8
eventemitter3: 5.0.0
eventemitter2: 6.4.9
libkernel: 0.1.48
libkmodule: 0.2.53
@ -24,8 +24,8 @@ packages:
resolution: {integrity: sha512-wFqPLVuGyfuEU1PsE7AMC+ANcoJiz7iruJPUrNZC0riDv1qMrZw+tx44HlBXLJ1H50JZiGtRPr9zLgkPFhf9OA==}
dev: false
/eventemitter3/5.0.0:
resolution: {integrity: sha512-riuVbElZZNXLeLEoprfNYoDSwTBRR44X3mnhdI1YcnENpWTCsTTVZ2zFuqQcpoyqPQIUXdiPEU0ECAq0KQRaHg==}
/eventemitter2/6.4.9:
resolution: {integrity: sha512-JEPTiaOt9f04oa6NOkc4aH+nVp5I3wEjpHbIPqfgCdD5v5bUzy7xQqwcVO2aDQgOWhI28da57HksMrzK9HlRxg==}
dev: false
/libkernel/0.1.48:

View File

@ -4,7 +4,7 @@ type logErr = typeof import("libkmodule").logErr;
type log = typeof import("libkmodule").log;
import type { ErrTuple, DataFn } from "@siaweb/libweb";
import EventEmitter from "eventemitter3";
import EventEmitter from "eventemitter2";
type callModuleBound = (method: string, data?: any) => Promise<ErrTuple>;
type connectModuleBound = (