Socket
Socket
Sign inDemoInstall

carcass-stripe

Package Overview
Dependencies
128
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.1.3

5

HISTORY.md

@@ -16,1 +16,6 @@

* Add middlewares
0.1.3 / 2014-08-27
==================
* Not fetch real stripe event in development

9

middlewares/fetchStripeEvent.js

@@ -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);

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc