screwdriver-api 8.0.85 → 8.0.86
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "screwdriver-api",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.86",
|
|
4
4
|
"description": "API server for the Screwdriver.cd service",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -90,6 +90,7 @@
|
|
|
90
90
|
"badge-maker": "^3.3.1",
|
|
91
91
|
"config": "^3.3.8",
|
|
92
92
|
"dayjs": "^1.11.7",
|
|
93
|
+
"get-intrinsic": "1.3.0",
|
|
93
94
|
"got": "^11.8.3",
|
|
94
95
|
"hapi-auth-bearer-token": "^8.0.0",
|
|
95
96
|
"hapi-auth-jwt2": "^10.4.0",
|
|
@@ -77,15 +77,7 @@ const webhooksPlugin = {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
const data = Buffer.concat(chunks).toString();
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
try {
|
|
83
|
-
parsedPayload = JSON.parse(data);
|
|
84
|
-
} catch (err) {
|
|
85
|
-
throw boom.badData('Cannot parse payload');
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
const parsed = await scm.parseHook(request.headers, parsedPayload);
|
|
80
|
+
const parsed = await scm.parseHook(request.headers, data);
|
|
89
81
|
|
|
90
82
|
if (!parsed) {
|
|
91
83
|
// for all non-matching events or actions
|