wuffle 0.55.0 → 0.56.1
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/bin/run.js +8 -2
- package/package.json +6 -6
- package/public/bundle.js.map +1 -1
- package/public/favicon.ico +0 -0
- package/public/service-worker.js +1 -1
- package/public/service-worker.js.map +1 -1
package/bin/run.js
CHANGED
|
@@ -39,7 +39,7 @@ async function validate() {
|
|
|
39
39
|
checkEnv('BASE_URL', IS_PROD),
|
|
40
40
|
checkEnv('GITHUB_CLIENT_ID', IS_PROD),
|
|
41
41
|
checkEnv('GITHUB_CLIENT_SECRET', IS_PROD),
|
|
42
|
-
checkEnv('PRIVATE_KEY', IS_PROD),
|
|
42
|
+
checkEnv([ 'PRIVATE_KEY', 'PRIVATE_KEY_PATH' ], IS_PROD),
|
|
43
43
|
checkEnv('SESSION_SECRET', IS_PROD),
|
|
44
44
|
checkEnv('WEBHOOK_SECRET', IS_PROD),
|
|
45
45
|
checkDumpConfig(),
|
|
@@ -157,7 +157,13 @@ async function validate() {
|
|
|
157
157
|
|
|
158
158
|
function checkEnv(key, isError = false) {
|
|
159
159
|
|
|
160
|
-
if (
|
|
160
|
+
if (Array.isArray(key)) {
|
|
161
|
+
if (key.some(k => process.env[key])) {
|
|
162
|
+
return (isError ? error : warning)(
|
|
163
|
+
`Missing one of env.{${key.join(',')}}`
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
} else if (!process.env[key]) {
|
|
161
167
|
return (isError ? error : warning)(
|
|
162
168
|
`Missing env.${key}`
|
|
163
169
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wuffle",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.56.1",
|
|
4
4
|
"description": "A multi-repository task board for GitHub issues",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Nico Rehwaldt",
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
"@octokit/graphql-schema": "^12.10.0",
|
|
56
56
|
"@types/compression": "^1.7.2",
|
|
57
57
|
"@types/express-session": "^1.17.4",
|
|
58
|
-
"chai": "^4.3.
|
|
58
|
+
"chai": "^4.3.10",
|
|
59
59
|
"graphql": "^16.6.0",
|
|
60
60
|
"mocha": "^10.2.0",
|
|
61
|
-
"nock": "^13.
|
|
62
|
-
"nodemon": "^
|
|
61
|
+
"nock": "^13.3.8",
|
|
62
|
+
"nodemon": "^3.0.1",
|
|
63
63
|
"npm-run-all": "^4.1.5",
|
|
64
|
-
"sinon": "^
|
|
64
|
+
"sinon": "^17.0.1",
|
|
65
65
|
"sinon-chai": "^3.7.0",
|
|
66
66
|
"typescript": "^5.2.2"
|
|
67
67
|
},
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"index.js",
|
|
92
92
|
"wuffle.config.example.js"
|
|
93
93
|
],
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "92e95f808f409a13b77eb1688b6bfca70ab31951"
|
|
95
95
|
}
|