Compare commits

...

2 Commits

Author SHA1 Message Date
Derrick Hammer abb26748ab
*Update dist 2023-02-01 12:28:30 -05:00
Derrick Hammer c177c1dd73
*Have _callModule wrapper return the entire tuple 2023-02-01 12:27:03 -05:00
3 changed files with 5 additions and 3 deletions

2
dist/index.d.ts.map vendored
View File

@ -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;AACjD,KAAK,GAAG,GAAG,cAAc,YAAY,EAAE,GAAG,CAAC;AAE3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,aAAa,IAAI,YAAY,EAAE,MAAM,eAAe,CAAC;AAE9D,KAAK,eAAe,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AACzE,KAAK,kBAAkB,GAAG,CACxB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,GAAG,EACT,aAAa,EAAE,MAAM,KAClB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AAEvD,QAAA,IAAI,UAAU,EAAE,UAAU,CAAC;AAC3B,QAAA,IAAI,aAAa,EAAE,aAAa,CAAC;AACjC,QAAA,IAAI,GAAG,EAAE,GAAG,CAAC;AACb,QAAA,IAAI,MAAM,EAAE,MAAM,CAAC;AAEnB,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;IAC7B,GAAG,EAAE,GAAG,CAAC;IACT,MAAM,EAAE,MAAM,CAAC;CAChB;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B,CAAC,GAAG,EAAE,QAAQ,GAAG,GAAG;cAIjC,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;CAK3E;AAED,wBAAsB,IAAI,CACxB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,SAAS,GAAG,cAAc,CAAC,CA+BrC;AAED,KAAK,iBAAiB,CAAC,CAAC,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAEtD,eAAO,MAAM,OAAO,kEAEV,MAAM,eAEY,GAAG,MAiB9B,CAAC"}

3
dist/index.js vendored
View File

@ -19,7 +19,8 @@ export class Client extends EventEmitter {
const moduleBag = await this.loadBound(module); const moduleBag = await this.loadBound(module);
this._callModule = async (...args) => { this._callModule = async (...args) => {
const ret = await moduleBag.callModule(...args); const ret = await moduleBag.callModule(...args);
return this.handleErrorOrReturn(ret); this.handleError(ret);
return ret;
}; };
this._connectModule = moduleBag.connectModule; this._connectModule = moduleBag.connectModule;
} }

View File

@ -51,7 +51,8 @@ export abstract class Client extends EventEmitter {
const moduleBag = await this.loadBound(module); const moduleBag = await this.loadBound(module);
this._callModule = async (...args) => { this._callModule = async (...args) => {
const ret = await moduleBag.callModule(...args); const ret = await moduleBag.callModule(...args);
return this.handleErrorOrReturn(ret); this.handleError(ret);
return ret;
}; };
this._connectModule = moduleBag.connectModule; this._connectModule = moduleBag.connectModule;
} }