New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nclabs/nestjs-rpc-module

Package Overview
Dependencies
Maintainers
0
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nclabs/nestjs-rpc-module - npm Package Compare versions

Comparing version 0.1.29 to 0.1.30

12

lib/nclabs-error.interceptor.js

@@ -37,10 +37,2 @@ "use strict";

};
console.log('axiosError', axiosError);
console.log(' ');
console.log('nclabsError', nclabsError);
console.log(' ');
console.log('rpcError', rpcError);
console.log(' ');
console.log('emptyError', emptyError);
console.log(' ');
const error = axiosError || nclabsError || rpcError || emptyError || err;

@@ -66,3 +58,5 @@ const { source = {} } = err || {};

const contentType = error.response.headers['content-type'];
const message = contentType.includes('text/html') ? this._htmlToText(error.response.data) : error.message;
const message = contentType.includes('text/html')
? this._htmlToText(error.response.data)
: error.response?.data?.message || error.message;
return {

@@ -69,0 +63,0 @@ code: error?.response?.status || 400,

{
"name": "@nclabs/nestjs-rpc-module",
"version": "0.1.29",
"version": "0.1.30",
"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

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