Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grpc-shared

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grpc-shared - npm Package Compare versions

Comparing version 1.0.26 to 1.0.27

11

lib/shared/interceptors/grpc-errors.interceptor.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc