@brocan/bouncer-github
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "@brocan/bouncer-github", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "GitHub plugin for the Bouncer gateway.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -8,3 +8,3 @@ # Bouncer GitHub Plugin | ||
* [hapi-pino](https://github.com/pinojs/hapi-pino/tree/v2.x.x) | ||
* [hapi-hemera](https://github.com/hemerajs/hapi-hemera) | ||
* [bouncer-messaging](../server/src/messaging/index.js) | ||
@@ -11,0 +11,0 @@ ## Communication |
@@ -9,16 +9,15 @@ const Joi = require('joi'); | ||
handler(request, reply) { | ||
reply.act({ | ||
topic: 'build', | ||
role: 'transform', | ||
origin: 'github', | ||
payload: request.payload | ||
}); | ||
request.logger.debug('Received GitHub build request', request.payload); | ||
reply.act({ | ||
reply.messaging.act({ | ||
topic: 'build', | ||
role: 'transform', | ||
origin: 'github', | ||
payload: request.payload | ||
payload: request.payload, | ||
pubsub$: true | ||
}, (err) => { | ||
if (err) { | ||
request.logger.warn(err); | ||
} | ||
}); | ||
@@ -51,6 +50,6 @@ | ||
GitHub.register.attributes = { | ||
pkg: require('../package.json'), | ||
dependencies: [ 'hapi-pino', 'hapi-hemera' ] | ||
name: 'github', | ||
dependencies: [ 'hapi-pino', 'bouncer-messaging' ] | ||
}; | ||
module.exports = GitHub; |
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
3364
45