Compare commits

..

3 Commits

Author SHA1 Message Date
semantic-release-bot 213d2744e0 chore(release): 0.1.0-develop.33 [skip ci]
# [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](73ea9ca5b0))
2023-07-29 23:33:49 +00:00
Derrick Hammer 74f2b7dba3
Merge remote-tracking branch 'origin/develop' into develop 2023-07-29 19:32:51 -04:00
Derrick Hammer 73ea9ca5b0
fix: make callModule a wrapper function that calls handleError 2023-07-29 19:32:45 -04:00
4 changed files with 16 additions and 4 deletions

View File

@ -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) # [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)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@lumeweb/libkernel", "name": "@lumeweb/libkernel",
"version": "0.1.0-develop.32", "version": "0.1.0-develop.33",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/libkernel", "name": "@lumeweb/libkernel",
"version": "0.1.0-develop.32", "version": "0.1.0-develop.33",
"dependencies": { "dependencies": {
"@lumeweb/libweb": "0.2.0-develop.27", "@lumeweb/libweb": "0.2.0-develop.27",
"emittery": "^1.0.1", "emittery": "^1.0.1",

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/libkernel", "name": "@lumeweb/libkernel",
"version": "0.1.0-develop.32", "version": "0.1.0-develop.33",
"main": "lib/index.js", "main": "lib/index.js",
"type": "module", "type": "module",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",

View File

@ -39,7 +39,12 @@ export abstract class Client extends Emittery {
public getBound(module: string): ModuleBagBound { public getBound(module: string): ModuleBagBound {
return { 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), connectModule: connectModule.bind(undefined, module),
} as ModuleBagBound; } as ModuleBagBound;
} }