Socket
Socket
Sign inDemoInstall

node-mocks-http

Package Overview
Dependencies
14
Maintainers
5
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.7.1 to 1.7.2

8

HISTORY.md

@@ -0,1 +1,9 @@

v 1.7.2
-------
- Revert Turn mock request into a stream [#174][174]
- Fix security issues reported by npm audit
[174]: https://github.com/howardabrams/node-mocks-http/pull/174
v 1.7.1

@@ -2,0 +10,0 @@ -------

3

lib/mockRequest.js

@@ -37,3 +37,2 @@ 'use strict';

var EventEmitter = require('events').EventEmitter;
var Readable = require('stream').Readable;
var utils = require('./utils');

@@ -56,3 +55,3 @@

// create mockRequest
var mockRequest = new Readable();
var mockRequest = Object.create(EventEmitter.prototype);
EventEmitter.call(mockRequest);

@@ -59,0 +58,0 @@

@@ -5,3 +5,3 @@ {

"description": "Mock 'http' objects for testing Express routing functions",
"version": "1.7.1",
"version": "1.7.2",
"homepage": "https://github.com/howardabrams/node-mocks-http",

@@ -59,10 +59,9 @@ "bugs": {

"chai": "^3.5.0",
"eslint": "^3.13.1",
"gulp": "^3.9.1",
"gulp-eslint": "^3.0.1",
"eslint": "^5.6.1",
"gulp": "^4.0.0",
"gulp-eslint": "^5.0.0",
"gulp-istanbul": "^1.1.1",
"gulp-mocha": "^3.0.1",
"gulp-mocha": "^6.0.0",
"istanbul": "^0.4.5",
"mocha": "^3.2.0",
"run-sequence": "~1.2.2",
"mocha": "^5.2.0",
"sinon": "^1.17.7",

@@ -69,0 +68,0 @@ "sinon-chai": "^2.8.0"

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