@nclabs/nestjs-rpc-module
Advanced tools
Comparing version 0.1.24 to 0.1.25
@@ -40,3 +40,2 @@ "use strict"; | ||
return this.client.send(`${rpcPrt}${service}`, payload).pipe((0, rxjs_1.catchError)((err) => { | ||
const { source = {} } = err || {}; | ||
const error = new nclabs_exeption_1.NclabsException({ | ||
@@ -47,6 +46,3 @@ code: err.code || err.error?.code || 500, | ||
error: err.error || {}, | ||
source: { | ||
operation: context.switchToRpc().getContext().getArgs()[0], | ||
source, | ||
}, | ||
source: err.source || {}, | ||
}); | ||
@@ -53,0 +49,0 @@ return (0, nclabs_rxjs_error_handler_1.NclabsRxjsErrorHandler)(error); |
{ | ||
"name": "@nclabs/nestjs-rpc-module", | ||
"version": "0.1.24", | ||
"version": "0.1.25", | ||
"description": "Utilitário NestJS para configuração de rotas e cache em microsserviços. Utilizado especificamente para projetos nclabs", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
432221
3469