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
Previous13456Next

1.8.0

Diff

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]
eugef
published 1.7.2 •

Changelog

Source

v 1.7.2

  • Revert Turn mock request into a stream [#174][174]
  • Fix security issues reported by npm audit
eugef
published 1.7.1 •

Changelog

Source

v 1.7.1

  • Turn mock request into a stream [#169][169]
  • Added missing typings for "locals" & create a helper method to get locals [#170][170]
  • Make header names case-insensitive in response [#172][172]
  • Throw an error object instead of a string [#173][173]
eugef
published 1.7.0 •

Changelog

Source

v 1.7.0

  • Add support for Buffer payload [#154][154]
  • Send request body/payload to trigger relevant events [#164][164]
howardabrams
published 1.5.8 •

howardabrams
published 1.6.7 •

Changelog

Source

v 1.6.7

  • Set an expiration date to a cookie when deleting it [#155][155]
  • No finish event, end event called when it shouldn't be. [#112][112]
  • Add support for [append][] on MockResponse [#143][143]
  • Add [locals][] object to response [#135][135]

Special shoutout to Eugene Fidelin for joining the team and helping out so much.

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