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

mock-express-request

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mock-express-request - npm Package Compare versions

Comparing version 0.2.0 to 0.2.2

8

index.js

@@ -69,4 +69,8 @@ 'use strict';

MockRequest.call(this, options);
this.cookies = {};
// Cookies may be passed in directly.
// If not, we provide an empty stub.
if (!this.cookies) {
this.cookies = {};
}
}

@@ -73,0 +77,0 @@ util.inherits(MockExpressRequest, MockRequest);

{
"name": "mock-express-request",
"version": "0.2.0",
"version": "0.2.2",
"description": "Nodejs library to mock express http request",

@@ -22,3 +22,3 @@ "keywords": [

"scripts": {
"test": "grunt test"
"test": "grunt test && nsp check"
},

@@ -46,20 +46,21 @@ "repository": {

"devDependencies": {
"chai": "^3.5.0",
"grunt": "^0.4.5",
"grunt-cli": "^1.1.0",
"grunt-contrib-jshint": "^1.0.0",
"chai": "^4.1.2",
"grunt": "^1.0.1",
"grunt-cli": "^1.2.0",
"grunt-contrib-jshint": "^1.1.0",
"grunt-contrib-watch": "^1.0.0",
"grunt-mocha-test": "^0.12.7",
"jshint-stylish": "^2.1.0",
"mocha": "^2.4.5"
"grunt-mocha-test": "^0.13.3",
"jshint-stylish": "^2.2.1",
"mocha": "^4.0.1",
"nsp": "^3.1.0"
},
"dependencies": {
"accepts": "^1.3.2",
"fresh": "^0.3.0",
"lodash": "^4.17.0",
"accepts": "^1.3.4",
"fresh": "^0.5.2",
"lodash": "^4.17.4",
"mock-req": "^0.2.0",
"parseurl": "^1.3.1",
"range-parser": "^1.0.3",
"type-is": "^1.6.12"
"parseurl": "^1.3.2",
"range-parser": "^1.2.0",
"type-is": "^1.6.15"
}
}

@@ -27,2 +27,3 @@ # mock-express-request

url: '/stuff?q=thing',
cookies: { token: "MYTOKEN" },
headers: {

@@ -72,2 +73,2 @@ 'Accept': 'text/plain'

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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