grpc-shared
Advanced tools
Comparing version 1.0.26 to 1.0.27
@@ -26,13 +26,8 @@ "use strict"; | ||
if (!err.metadata) { | ||
console.log("without metadata"); | ||
metadata = generatedMetadata; | ||
code = constants_1.Status.UNKNOWN; | ||
} | ||
console.log("generatedMetadata", generatedMetadata, service, message); | ||
if (err.metadata) { | ||
return (0, rxjs_1.throwError)(() => { | ||
return new microservices_1.RpcException({ code, metadata }); | ||
}); | ||
} | ||
return (0, rxjs_1.throwError)(() => err); | ||
return (0, rxjs_1.throwError)(() => { | ||
return new microservices_1.RpcException({ code, metadata }); | ||
}); | ||
})); | ||
@@ -39,0 +34,0 @@ } |
{ | ||
"name": "grpc-shared", | ||
"version": "1.0.26", | ||
"version": "1.0.27", | ||
"description": "shared logic between services", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16372
352