Skip to content

Releases: BedrockStreaming/superagent-mock

Fix toLowerCase error on real requests

09 Nov 15:39
Compare
Choose a tag to compare

Support of superagent v2 and strict match of requests

07 Nov 16:23
Compare
Choose a tag to compare
  • Better support of superagent v2
  • Support strict match of requests with query parameters

Remove a warning when using with superagent v2

06 Sep 15:29
Compare
Choose a tag to compare
  • Add a check for deprecated method setStatusProperties in superagent v2
  • Small code improvements

Add logging and improve 'end' method

04 Aug 13:35
Compare
Choose a tag to compare
  • Add logging functionalities
  • 'end' callback is now called once, even in error case
  • 'end' method returns now the request object

Add support of 'abort' method

04 Jan 10:02
Compare
Choose a tag to compare

It is now possible to call abort on the request.

Add support for chained calls to 'set' method

18 Nov 08:45
Compare
Choose a tag to compare

It is now possible to set() headers one by one and chain the set() calls.

Disable mock

29 Oct 09:53
Compare
Choose a tag to compare

Add a method to unset mock and fix call to real 'set' method.

Differentiate callbacks depending on request method

09 Sep 09:11
Compare
Choose a tag to compare

Add explicit support for request methods (GET, POST, DELETE ...).

Use superagent response error

09 Sep 08:45
Compare
Choose a tag to compare

Apply "sugar" behavior on error responses.

Support headers setting

17 Aug 08:27
Compare
Choose a tag to compare

Get access to the headers set through superagent.