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

node-mocks-http

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

1.6.1

Diff

Changelog

Source

v 1.6.1

  • Fix for Issue #130 for method chaining for cookie() and clearCookie()
  • Fix for Issue #131 for adding finished to the response
howardabrams
published 1.5.6 •

howardabrams
published 1.5.5 •

howardabrams
published 1.5.4 •

Changelog

Source

v 1.5.4

  • Call write method from json method of responseMock [PR #98][98]
howardabrams
published 1.5.3 •

Changelog

Source

v 1.5.3

  • Add .format to the mockResponse object [PR #94][94]
  • Add .location to the mockResponse object [PR #96][96]
  • Add API method, createMocks to create both mocks with correct references
howardabrams
published 1.5.2 •

Changelog

Source

v 1.5.2

  • Add case insensitive response headers [#85][85]
  • Fix behavior of mockResponse.writeHead [#92][92]
  • Add support for statusMessage [#84][84]
  • Fix issue with req.param not returning when false [#82][82]
  • Other bug fixes
howardabrams
published 1.5.1 •

Changelog

Source

v 1.5.1

  • Add support for the .vary() response method
howardabrams
published 1.5.0 •

Changelog

Source

v 1.5.0

Documentation changes, a new feature, and better behaviors, including:

  • Added jsonp method that takes a status code and a payload, see [PR #79][79]
  • Now able to attach non-standard properties to the mock request object. [PR #74][74]
  • param now takes a default value, see [PR #76][76]
  • Emit end when redirecting, see [PR #77][77]
  • Documentation changes, see [PR #64][64], [PR #75][75], [PR #78][78]
howardabrams
published 1.4.4 •

Changelog

Source

v 1.4.4

Bug fix release, including the following:

  • Fixed for [#67][67]
  • Merge fix for [#68][68]
  • Merge fix for [#70][70]
  • Merge fix for [#73][73]
johnnyestilles
published 1.4.3 •

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