Comparing version 0.1.5 to 0.1.6
19
index.js
@@ -128,5 +128,7 @@ /** | ||
// req flash placeholder | ||
req.flash = function(type, message){ | ||
// console.log(type, message); | ||
}; | ||
if (typeof req.flash === 'undefined') { | ||
req.flash = function(type, message){ | ||
// console.log(type, message); | ||
}; | ||
} | ||
@@ -136,5 +138,7 @@ // req session placeholder | ||
req.header = function() { | ||
return ''; | ||
}; | ||
if (typeof req.header === 'undefined') { | ||
req.header = function() { | ||
return ''; | ||
}; | ||
} | ||
@@ -183,2 +187,5 @@ // req.query | ||
}, | ||
end: function(props){ | ||
callback(null, props); | ||
}, | ||
render: function(view, props) { | ||
@@ -185,0 +192,0 @@ callback(null, 'render', view, props); |
{ | ||
"name": "whisperjs", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "HTTP Request functionality from within a node.js application using preset expresss routes and middleware", | ||
@@ -5,0 +5,0 @@ "keywords": ["framework", "web", "middleware", "whisper"], |
15018
322
5