Socket
Socket
Sign inDemoInstall

node-mocks-http

Package Overview
Dependencies
0
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.6 to 0.0.7

13

lib/mockRequest.js

@@ -39,2 +39,3 @@ /**

session: (options.session) ? options.session : {},
cookies: (options.cookies) ? options.cookies : {},
body : (options.body ) ? options.body : {},

@@ -71,5 +72,15 @@ query : (options.query ) ? options.query : {},

/**
* Sets a variable that is stored in the cookies.
*
* @param variable The variable to store in the cookies
* @param value The value associated with the variable
*/
_setSessionVariable: function( variable, value ) {
this.cookies[variable] = value;
},
/**
* Sets a variable that is stored in the files.
*
* @param variable The variable to store in the session
* @param variable The variable to store in the files
* @param value The value associated with the variable

@@ -76,0 +87,0 @@ */

2

package.json

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

"description": "Mock 'http' objects for testing Express routing functions",
"version": "0.0.6",
"version": "0.0.7",
"homepage": "http://www.github.com/howardabrams/node-mocks-http",

@@ -8,0 +8,0 @@ "keywords": [

@@ -72,2 +72,7 @@ node-mocks-http

v 0.0.7
-------
* Add support for request cookies
v 0.0.6

@@ -74,0 +79,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