flutterwave-events
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -7,3 +7,4 @@ const { EventEmitter } = require('events'); | ||
useEventKey: true, | ||
defaultEventKey: 'FLW_EVENT' | ||
defaultEventKey: 'FLW_EVENT', | ||
emitWildCardEvents: true, | ||
}; | ||
@@ -33,2 +34,5 @@ | ||
self.emit(eventKey, req.body); | ||
if (self._options.emitWildCardEvents) { | ||
self.emit('*', req.body); | ||
} | ||
return res.sendStatus(200); | ||
@@ -35,0 +39,0 @@ } |
{ | ||
"name": "flutterwave-events", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A tiny module to help you handle flutterwave api events automatically", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10390
187