@webqit/webflo 0.8.52 → 0.8.56-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.8.52",
15
+ "version": "0.8.56-0",
16
16
  "license": "MIT",
17
17
  "repository": {
18
18
  "type": "git",
@@ -140,9 +140,13 @@ export async function deploy(Ui, origin, flags = {}, layout = {}) {
140
140
  */
141
141
  export async function hook(Ui, event, deployCallback, flags = {}, layout = {}) {
142
142
  const eventHandler = Webhooks.createEventHandler();
143
- if (event.request.headers['user-agent'] && event.request.headers['user-agent'].startsWith('GitHub-Hookshot/')) {
143
+ console.log('-------------------------event.request.headers', event.request.headers)
144
+ if (event.request.headers.has('user-agent') && event.request.headers.get('user-agent').startsWith('GitHub-Hookshot/')) {
145
+ console.log('-------------------------111111111111111111')
144
146
  const submits = await event.request.parse();
147
+ console.log('-------------------------submits', submits)
145
148
  const matches = (await origins.match(submits.payload.repository.full_name, flags, layout)).filter(o => o.autodeploy);
149
+ console.log('-------------------------matches', matches)
146
150
  var deployParams;
147
151
  if (!(deployParams = matches[0])) {
148
152
  return;