node-mocks-http
Advanced tools
Comparing version 1.7.1 to 1.7.2
@@ -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 @@ ------- |
@@ -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" |
69781
11
1675