@webqit/webflo 0.11.42 → 0.11.44-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -183,7 +183,7 @@ export async function webhook(httpEvent, router, next) {
|
|
|
183
183
|
cx.logger.log('---------------------------');
|
|
184
184
|
cx.logger.log('');
|
|
185
185
|
}
|
|
186
|
-
var exitCode = await router.route('deploy',
|
|
186
|
+
var exitCode = await router.route('deploy', httpEvent, payload, _payload => {
|
|
187
187
|
return deploy.call(cx, deployParams);
|
|
188
188
|
});
|
|
189
189
|
if (cx.logger) {
|
|
@@ -202,12 +202,13 @@ export async function webhook(httpEvent, router, next) {
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
resolve(
|
|
205
|
-
new
|
|
205
|
+
new httpEvent.Response(null, { status: exitCode === 0 ? 200 : 500 })
|
|
206
206
|
);
|
|
207
207
|
});
|
|
208
|
+
|
|
208
209
|
webhookEventHandler.receive({
|
|
209
210
|
id: httpEvent.request.headers.get('x-github-delivery'),
|
|
210
|
-
name: httpEvent.request.headers.get('x-github-
|
|
211
|
+
name: httpEvent.request.headers.get('x-github-event'),
|
|
211
212
|
payload: payload /* JSON object */,
|
|
212
213
|
});
|
|
213
214
|
});
|