carcass-stripe
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -16,1 +16,6 @@ | ||
* Add middlewares | ||
0.1.3 / 2014-08-27 | ||
================== | ||
* Not fetch real stripe event in development |
@@ -5,4 +5,11 @@ var debug; | ||
module.exports = function(stripe) { | ||
module.exports = function(stripe, options) { | ||
if (options == null) { | ||
options = {}; | ||
} | ||
return function(req, res, next) { | ||
if (options.dev) { | ||
req.stripeEvent = req.body || {}; | ||
return next(); | ||
} | ||
if (req.body.object !== 'event') { | ||
@@ -9,0 +16,0 @@ return res.send(400); |
{ | ||
"name": "carcass-stripe", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "(Node.js) A simple wrap of stripe APIs, in Carcass style.", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
36685
807
0