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

backtrace-service

Package Overview
Dependencies
Maintainers
6
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backtrace-service - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

13

lib/service/backtraceService.js

@@ -162,6 +162,13 @@ "use strict";

const logger = logger_1.Logger.getLogger();
// Backtrace service ApiError (pending in CR) contains type statusCode that allows us
// if we reach this part of code, the error middlewa needs to assume
// the teams validation weren't handled on the route side - for example:
// when exception were throwed by the 3rd party library when someone sends
// invalid JSON object. In this situation we should return an error and mark
// request as validated
identityManager?.bypassProjectAccessCheck(res);
// Backtrace service ApiError contains type statusCode that allows us
// to determine what type of response we should return
// in addition to that I recognize sometimes we retrieve status code from response.status
// property. This is a popular pattern for axios communication - check comments and hooks.
// in addition to that the error middleware can read a status code from response.status
// property. This is a popular pattern for axios communication - check other services
// to learn more how errors throwed by axios are beings handled by them.
if (err.statusCode || (err.response && err.response.status)) {

@@ -168,0 +175,0 @@ const status = err.statusCode || err.response.status;

{
"name": "backtrace-service",
"version": "3.1.0",
"version": "3.1.1",
"description": "Common tools for Backtrace Node services",

@@ -5,0 +5,0 @@ "author": "Backtrace",

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