@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
@@ -12,7 +12,7 @@
12
12
  "vanila-javascript"
13
13
  ],
14
14
  "homepage": "https://webqit.io/tooling/webflo",
15
- "version": "0.11.42",
15
+ "version": "0.11.44-0",
16
16
  "license": "MIT",
17
17
  "repository": {
18
18
  "type": "git",
@@ -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', navigationEvent, payload, _payload => {
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 navigationEvent.Response(null, { status: exitCode === 0 ? 200 : 500 })
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-httpEvent'),
211
+ name: httpEvent.request.headers.get('x-github-event'),
211
212
  payload: payload /* JSON object */,
212
213
  });
213
214
  });