superagent-intercept icon indicating copy to clipboard operation
superagent-intercept copied to clipboard

Add functions that will be called during end() e.g. for handling error conditions without having the same code all over the place.

Results 2 superagent-intercept issues
Sort by recently updated
recently updated
newest added

When i want to throw erros in the function, it shows "Uncaught Error" ``` const intercept = require('superagent-intercept')((err, res) => { if (err) { throw new Error(err) } if (res)...

Is it possible to ensure that err and res arguments are always object references so we can manipulate them? In some cases (ie. request timeout) res can be undefined. As...