🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

node-mocks-http

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-mocks-http - npm Package Versions

123457

1.2.4

Diff
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.

xiaoquqi
published 1.0.1 •

Changelog

Source

v 1.0.1

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