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

node-mocks-http

Package Overview
Dependencies
Maintainers
2
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

124567

1.7.5

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

howardabrams
published 1.6.6 •

Changelog

Source

v 1.6.6

  • Upgrade Fresh dependency to 0.5.2 due to a [Security advisory][166-SA]. PR #147
  • Add the baseUrl property to the request object. PR #150
howardabrams
published 1.6.5 •

Changelog

Source

v 1.6.5

  • Query type definition now more flexible PR #146