Compare commits
3 Commits
v0.1.0-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 213d2744e0 | |
Derrick Hammer | 74f2b7dba3 | |
Derrick Hammer | 73ea9ca5b0 |
|
@ -1,3 +1,10 @@
|
|||
# [0.1.0-develop.33](https://git.lumeweb.com/LumeWeb/libkernel/compare/v0.1.0-develop.32...v0.1.0-develop.33) (2023-07-29)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* make callModule a wrapper function that calls handleError ([73ea9ca](https://git.lumeweb.com/LumeWeb/libkernel/commit/73ea9ca5b08d9ef4a8b2f54ba4174a66e6e3ec2f))
|
||||
|
||||
# [0.1.0-develop.32](https://git.lumeweb.com/LumeWeb/libkernel/compare/v0.1.0-develop.31...v0.1.0-develop.32) (2023-07-29)
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/libkernel",
|
||||
"version": "0.1.0-develop.32",
|
||||
"version": "0.1.0-develop.33",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/libkernel",
|
||||
"version": "0.1.0-develop.32",
|
||||
"version": "0.1.0-develop.33",
|
||||
"dependencies": {
|
||||
"@lumeweb/libweb": "0.2.0-develop.27",
|
||||
"emittery": "^1.0.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/libkernel",
|
||||
"version": "0.1.0-develop.32",
|
||||
"version": "0.1.0-develop.33",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"types": "lib/index.d.ts",
|
||||
|
|
|
@ -39,7 +39,12 @@ export abstract class Client extends Emittery {
|
|||
|
||||
public getBound(module: string): ModuleBagBound {
|
||||
return {
|
||||
callModule: callModule.bind(undefined, module),
|
||||
callModule: async (...args: any) => {
|
||||
const ret = await this.callModule(module, ...args);
|
||||
this.handleError(ret);
|
||||
|
||||
return ret;
|
||||
},
|
||||
connectModule: connectModule.bind(undefined, module),
|
||||
} as ModuleBagBound;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue