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

13
7

1.11.0

Diff

Changelog

Source

v 1.11.0

  • Fix request.ip and add request.ips [Issue #244][244].
  • Add response.attachment() from express [Issue #246][246].
  • Add request.getHeader() alias for request.header() [Issue #241][241].
eugef
published 1.10.1 •

Changelog

Source

v 1.10.1

  • Fix support for req.hostname [Issue #231][231].
eugef
published 1.10.0 •

Changelog

Source

v 1.10.0

  • Add support for req.hostname [Issue #224][224].
  • Allow to chain writeHead() [Issue #229][229].
eugef
published 1.9.0 •

Changelog

Source

v 1.9.0

  • Implement response.getHeaderNames() and response.hasHeader() [Issue #222][222].
  • Remove calls to deprecated Buffer constructors [Issue #221][221].
  • Run tests for Node 10, 12 and 14. Drop support for Node 6 and 8 [Issue #218][218].
  • Implement response.getHeaders() [Issue #217][217].
  • Add req.subdomains [Issue #213][213].
  • Add socket option to mockRequest [Issue #209][209].
  • Fix index.d.ts [Issue #205][205].
  • Added support for response.writableEnded and response.writableFinished [Issue #205][203].
eugef
published 1.8.1 •

Changelog

Source

v 1.8.1

  • Enable res.render() callback argument [Issue #197][197].
eugef
published 1.8.0 •

Changelog

Source

v 1.8.0

  • Added types for IncomingHeaders [Issue #192][192].
  • Enabled method chaining [Issue #191][191].
  • Added accepts language [Issue #188][188].
howardabrams
published 1.7.6 •

Changelog

Source

v 1.7.6

  • Fix for [Issue #182][182].
howardabrams
published 1.7.5 •

Changelog

Source

v 1.7.5

  • Updated the dependency tree with newer versions of eslint.
howardabrams
published 1.7.4 •

Changelog

Source

v 1.7.4

  • Added _getJSONData function with data sent to the user as JSON. [#181][181]
howardabrams
published 1.7.3 •

Changelog

Source

v 1.7.3

  • Added .range() on a mocked request mimicking the same function on Express' request. [#175][175]
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