screwdriver-api 4.1.168 → 4.1.172
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 +14 -14
- package/plugins/pipelines/helper.js +1 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "screwdriver-api",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.172",
|
|
4
4
|
"description": "API server for the Screwdriver.cd service",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"@hapi/good": "^9.0.1",
|
|
74
74
|
"@hapi/good-console": "^9.0.1",
|
|
75
75
|
"@hapi/good-squeeze": "^6.0.0",
|
|
76
|
-
"@hapi/hapi": "^20.1
|
|
76
|
+
"@hapi/hapi": "^20.2.1",
|
|
77
77
|
"@hapi/hoek": "^9.1.1",
|
|
78
78
|
"@hapi/inert": "^6.0.4",
|
|
79
79
|
"@hapi/vision": "^6.1.0",
|
|
80
80
|
"@promster/hapi": "^4.2.1",
|
|
81
|
-
"async": "^3.2.
|
|
81
|
+
"async": "^3.2.2",
|
|
82
82
|
"badge-maker": "^3.3.1",
|
|
83
83
|
"config": "^1.31.0",
|
|
84
84
|
"date-fns": "^1.30.1",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"hapi-auth-jwt2": "^10.2.0",
|
|
88
88
|
"hapi-rate-limit": "^5.0.1",
|
|
89
89
|
"hapi-swagger": "^14.2.4",
|
|
90
|
-
"ioredis": "^4.
|
|
90
|
+
"ioredis": "^4.28.0",
|
|
91
91
|
"joi": "^17.4.2",
|
|
92
92
|
"js-yaml": "^3.14.1",
|
|
93
93
|
"jsonwebtoken": "^8.5.1",
|
|
@@ -101,26 +101,26 @@
|
|
|
101
101
|
"screwdriver-build-bookend": "^2.4.0",
|
|
102
102
|
"screwdriver-cache-bookend": "^2.0.2",
|
|
103
103
|
"screwdriver-command-validator": "^2.1.0",
|
|
104
|
-
"screwdriver-config-parser": "^7.
|
|
104
|
+
"screwdriver-config-parser": "^7.4.0",
|
|
105
105
|
"screwdriver-coverage-bookend": "^1.0.3",
|
|
106
|
-
"screwdriver-coverage-sonar": "^3.3.
|
|
107
|
-
"screwdriver-data-schema": "^21.
|
|
106
|
+
"screwdriver-coverage-sonar": "^3.3.3",
|
|
107
|
+
"screwdriver-data-schema": "^21.12.0",
|
|
108
108
|
"screwdriver-datastore-sequelize": "^7.2.7",
|
|
109
109
|
"screwdriver-executor-base": "^8.4.0",
|
|
110
110
|
"screwdriver-executor-docker": "^5.0.1",
|
|
111
|
-
"screwdriver-executor-k8s": "^14.
|
|
111
|
+
"screwdriver-executor-k8s": "^14.16.0",
|
|
112
112
|
"screwdriver-executor-k8s-vm": "^4.3.2",
|
|
113
113
|
"screwdriver-executor-queue": "^3.1.2",
|
|
114
114
|
"screwdriver-executor-router": "^2.3.0",
|
|
115
115
|
"screwdriver-logger": "^1.1.0",
|
|
116
|
-
"screwdriver-models": "^28.
|
|
116
|
+
"screwdriver-models": "^28.11.0",
|
|
117
117
|
"screwdriver-notifications-email": "^2.2.0",
|
|
118
118
|
"screwdriver-notifications-slack": "^3.2.1",
|
|
119
119
|
"screwdriver-request": "^1.0.3",
|
|
120
120
|
"screwdriver-scm-base": "^7.3.0",
|
|
121
121
|
"screwdriver-scm-bitbucket": "^4.5.1",
|
|
122
|
-
"screwdriver-scm-github": "^11.6.
|
|
123
|
-
"screwdriver-scm-gitlab": "^2.7.
|
|
122
|
+
"screwdriver-scm-github": "^11.6.3",
|
|
123
|
+
"screwdriver-scm-gitlab": "^2.7.2",
|
|
124
124
|
"screwdriver-scm-router": "^6.3.0",
|
|
125
125
|
"screwdriver-template-validator": "^5.2.0",
|
|
126
126
|
"screwdriver-workflow-parser": "^3.2.0",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"stream": "0.0.2",
|
|
129
129
|
"tinytim": "^0.1.1",
|
|
130
130
|
"uuid": "^8.3.2",
|
|
131
|
-
"verror": "^1.
|
|
131
|
+
"verror": "^1.10.1"
|
|
132
132
|
},
|
|
133
133
|
"release": {
|
|
134
134
|
"debug": false,
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
139
|
"devDependencies": {
|
|
140
|
-
"@octokit/rest": "^18.
|
|
140
|
+
"@octokit/rest": "^18.12.0",
|
|
141
141
|
"chai": "~3.5.0",
|
|
142
142
|
"chai-as-promised": "^6.0.0",
|
|
143
143
|
"chai-jwt": "^2.0.0",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"mocha-sonarqube-reporter": "^1.0.2",
|
|
153
153
|
"mockery": "^2.0.0",
|
|
154
154
|
"mz": "^2.6.0",
|
|
155
|
-
"nock": "^13.
|
|
155
|
+
"nock": "^13.2.1",
|
|
156
156
|
"node-plantuml": "^0.5.0",
|
|
157
157
|
"npm-auto-version": "^1.0.0",
|
|
158
158
|
"nyc": "^15.0.0",
|
|
@@ -37,16 +37,7 @@ const formatCheckoutUrl = checkoutUrl => {
|
|
|
37
37
|
* @return {String} Root dir with no leading/trailing slashes
|
|
38
38
|
*/
|
|
39
39
|
const sanitizeRootDir = (rootDir = '') => {
|
|
40
|
-
|
|
41
|
-
const DIR_PATH_REGEX = /^([a-zA-Z0-9\s_@\-^!#$%&+={}[\]]+)(\/[a-zA-Z0-9\s_@\-^!#$%&+={}[\]]+)*$/;
|
|
42
|
-
const sanitizedRootDir = rootDir.replace(/^(\/+|.\/)|\/+$/g, '');
|
|
43
|
-
|
|
44
|
-
// Set rootDir as empty string if invalid
|
|
45
|
-
if (!DIR_PATH_REGEX.test(sanitizedRootDir)) {
|
|
46
|
-
return '';
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
return sanitizedRootDir;
|
|
40
|
+
return rootDir.replace(/^(\/+|.\/|..\/)|\/+$/g, '');
|
|
50
41
|
};
|
|
51
42
|
|
|
52
43
|
/**
|