node-mocks-http
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -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 @@ */ |
@@ -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 @@ ------- |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
26558
648
109
1