Compare commits
No commits in common. "0bc5807c6afdcc95ed960a6ba2c304388fa67f28" and "952630c546ff5a0ab72703d5cffbaf5a6e229392" have entirely different histories.
0bc5807c6a
...
952630c546
|
@ -3,7 +3,6 @@ type connectModule = typeof import("libkmodule").connectModule;
|
||||||
type logErr = typeof import("libkmodule").logErr;
|
type logErr = typeof import("libkmodule").logErr;
|
||||||
type log = typeof import("libkmodule").log;
|
type log = typeof import("libkmodule").log;
|
||||||
import type { ErrTuple, DataFn } from "@siaweb/libweb";
|
import type { ErrTuple, DataFn } from "@siaweb/libweb";
|
||||||
import { EventEmitter2 as EventEmitter } from "eventemitter2";
|
|
||||||
type callModuleBound = (method: string, data?: any) => Promise<ErrTuple>;
|
type callModuleBound = (method: string, data?: any) => Promise<ErrTuple>;
|
||||||
type connectModuleBound = (method: string, data: any, receiveUpdate: DataFn) => [sendUpdate: DataFn, response: Promise<ErrTuple>];
|
type connectModuleBound = (method: string, data: any, receiveUpdate: DataFn) => [sendUpdate: DataFn, response: Promise<ErrTuple>];
|
||||||
declare let callModule: callModule;
|
declare let callModule: callModule;
|
||||||
|
@ -20,7 +19,7 @@ export interface ModuleBagBound extends ModuleBag {
|
||||||
callModule: callModuleBound;
|
callModule: callModuleBound;
|
||||||
connectModule: connectModuleBound;
|
connectModule: connectModuleBound;
|
||||||
}
|
}
|
||||||
export declare abstract class Client extends EventEmitter {
|
export declare abstract class Client {
|
||||||
private _callModule?;
|
private _callModule?;
|
||||||
get callModule(): callModuleBound;
|
get callModule(): callModuleBound;
|
||||||
private _connectModule?;
|
private _connectModule?;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG,cAAc,YAAY,EAAE,UAAU,CAAC;AACzD,KAAK,aAAa,GAAG,cAAc,YAAY,EAAE,aAAa,CAAC;AAC/D,KAAK,MAAM,GAAG,cAAc,YAAY,EAAE,MAAM,CAAC;A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||||
let connectModule;
|
let connectModule;
|
||||||
let log;
|
let log;
|
||||||
let logErr;
|
let logErr;
|
||||||
export class Client extends EventEmitter {
|
export class Client {
|
||||||
_callModule;
|
_callModule;
|
||||||
get callModule() {
|
get callModule() {
|
||||||
return this._callModule;
|
return this._callModule;
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@siaweb/libweb": "git+https://git.lumeweb.com/LumeWeb/libsiaweb.git",
|
"@siaweb/libweb": "git+https://git.lumeweb.com/LumeWeb/libsiaweb.git",
|
||||||
"eventemitter2": "^6.4.9",
|
|
||||||
"libkernel": "^0.1.48",
|
"libkernel": "^0.1.48",
|
||||||
"libkmodule": "^0.2.53"
|
"libkmodule": "^0.2.53"
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,7 +2,6 @@ lockfileVersion: 5.4
|
||||||
|
|
||||||
specifiers:
|
specifiers:
|
||||||
'@siaweb/libweb': git+https://git.lumeweb.com/LumeWeb/libsiaweb.git
|
'@siaweb/libweb': git+https://git.lumeweb.com/LumeWeb/libsiaweb.git
|
||||||
eventemitter2: ^6.4.9
|
|
||||||
libkernel: ^0.1.48
|
libkernel: ^0.1.48
|
||||||
libkmodule: ^0.2.53
|
libkmodule: ^0.2.53
|
||||||
prettier: ^2.8.3
|
prettier: ^2.8.3
|
||||||
|
@ -10,7 +9,6 @@ specifiers:
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
'@siaweb/libweb': git.lumeweb.com/LumeWeb/libsiaweb/5e6cdba3e7d9a4b94e21ddcd5f2b5138fb440ee8
|
'@siaweb/libweb': git.lumeweb.com/LumeWeb/libsiaweb/5e6cdba3e7d9a4b94e21ddcd5f2b5138fb440ee8
|
||||||
eventemitter2: 6.4.9
|
|
||||||
libkernel: 0.1.48
|
libkernel: 0.1.48
|
||||||
libkmodule: 0.2.53
|
libkmodule: 0.2.53
|
||||||
|
|
||||||
|
@ -24,10 +22,6 @@ packages:
|
||||||
resolution: {integrity: sha512-wFqPLVuGyfuEU1PsE7AMC+ANcoJiz7iruJPUrNZC0riDv1qMrZw+tx44HlBXLJ1H50JZiGtRPr9zLgkPFhf9OA==}
|
resolution: {integrity: sha512-wFqPLVuGyfuEU1PsE7AMC+ANcoJiz7iruJPUrNZC0riDv1qMrZw+tx44HlBXLJ1H50JZiGtRPr9zLgkPFhf9OA==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/eventemitter2/6.4.9:
|
|
||||||
resolution: {integrity: sha512-JEPTiaOt9f04oa6NOkc4aH+nVp5I3wEjpHbIPqfgCdD5v5bUzy7xQqwcVO2aDQgOWhI28da57HksMrzK9HlRxg==}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/libkernel/0.1.48:
|
/libkernel/0.1.48:
|
||||||
resolution: {integrity: sha512-h86j/D+5gnpw/h8DTQE1C9hWFRmQnw5ZU9L3fYTZIPqPEIIU40z+tnDp66Zbb6mcfYCr8+SGkhcCy3XsyHOvyQ==}
|
resolution: {integrity: sha512-h86j/D+5gnpw/h8DTQE1C9hWFRmQnw5ZU9L3fYTZIPqPEIIU40z+tnDp66Zbb6mcfYCr8+SGkhcCy3XsyHOvyQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
|
@ -4,7 +4,6 @@ type logErr = typeof import("libkmodule").logErr;
|
||||||
type log = typeof import("libkmodule").log;
|
type log = typeof import("libkmodule").log;
|
||||||
|
|
||||||
import type { ErrTuple, DataFn } from "@siaweb/libweb";
|
import type { ErrTuple, DataFn } from "@siaweb/libweb";
|
||||||
import { EventEmitter2 as EventEmitter } from "eventemitter2";
|
|
||||||
|
|
||||||
type callModuleBound = (method: string, data?: any) => Promise<ErrTuple>;
|
type callModuleBound = (method: string, data?: any) => Promise<ErrTuple>;
|
||||||
type connectModuleBound = (
|
type connectModuleBound = (
|
||||||
|
@ -30,7 +29,7 @@ export interface ModuleBagBound extends ModuleBag {
|
||||||
connectModule: connectModuleBound;
|
connectModule: connectModuleBound;
|
||||||
}
|
}
|
||||||
|
|
||||||
export abstract class Client extends EventEmitter {
|
export abstract class Client {
|
||||||
private _callModule?: callModuleBound;
|
private _callModule?: callModuleBound;
|
||||||
|
|
||||||
get callModule(): callModuleBound {
|
get callModule(): callModuleBound {
|
||||||
|
|
Reference in New Issue