New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

superagent-verbose-errors

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superagent-verbose-errors

include response body in superagent errors for failed requests

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
964
99.59%
Maintainers
1
Weekly downloads
 
Created
Source

superagent-verbose-errors

Build Status Coverage Status semantic-release Commitizen friendly

include response body in superagent errors for failed requests

Usage

npm install --save superagent superagent-use superagent-verbose-errors

To make any superagent request that fails append the response body to its error message:

const superagent = require('superagent-use')(require('superagent'))
superagent.use(require('superagent-verbose-errors'))

To only include the response body for certain errors:

const superagent = require('superagent-use')(require('superagent'))
superagent.use(require('superagent-verbose-errors')({
  filter: res => res.status === 400
}))

Keywords

superagent

FAQs

Package last updated on 22 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts