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

node-mocks-http

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-mocks-http - npm Package Versions

1
57

1.2.1

Diff

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.

xiaoquqi
published 1.0.1 •

Changelog

Source

v 1.0.1

  • Adds support for response redirect and render
howardabrams
published 1.0.0 •

howardabrams
published 0.0.9 •

Changelog

Source

v 0.0.9

  • Adds support for response cookies
xiaoquqi
published 0.0.8 •

Changelog

Source

v 0.0.8

  • Adds support for request headers
  • Fix wrong function name of set cookies
xiaoquqi
published 0.0.7 •

Changelog

Source

v 0.0.7

  • Adds support for request cookies
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