wuffle 0.55.0 → 0.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/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 (!process.env[key]) {
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.55.0",
3
+ "version": "0.56.0",
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.8",
58
+ "chai": "^4.3.10",
59
59
  "graphql": "^16.6.0",
60
60
  "mocha": "^10.2.0",
61
- "nock": "^13.2.7",
62
- "nodemon": "^2.0.16",
61
+ "nock": "^13.3.8",
62
+ "nodemon": "^3.0.1",
63
63
  "npm-run-all": "^4.1.5",
64
- "sinon": "^16.0.0",
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": "e877cd1ef78c08ba2be44bac3473e00c03a27691"
94
+ "gitHead": "bb06d78e3c5b95a56ba3a797a0232dacc0f82276"
95
95
  }