Socket
Socket
Sign inDemoInstall

node-mocks-http

Package Overview
Dependencies
27
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous12346Next

1.2.6

Diff

howardabrams
published 1.2.5 •

howardabrams
published 1.2.4 •

howardabrams
published 1.2.3 •

howardabrams
published 1.2.2 •

howardabrams
published 1.2.1 •

alanjames1987
published 1.2.0 •

Changelog

Source

v 1.2.0

  • Adds a .header and .get method to the request.
alanjames1987
published 1.1.0 •

Changelog

Source

v 1.1.0

  • Adds a .header, .set, and .get method to the response.
howardabrams
published 1.0.4 •

Changelog

Source

v 1.0.4

  • Adds the MIT license
howardabrams
published 1.0.3 •

Changelog

Source

v 1.0.3

  • Merged changes by invernizzie: to address #11

  • Merged changes by ericchaves:

    I extended your library a little but so it could also handle some structured responses. By doing so res.send now evaluate the data passed and search for either a statusCode or httpCode to be used, and also for a body to send as _data.

    It still working as expected (at least tests passed) for regular HTTP responses.

    Although I did it with node-restify in mind, it should work well for all other libs.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc