wuffle 0.64.0 → 0.65.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.
|
@@ -83,7 +83,7 @@ export default function AuthRoutes(logger, router, securityContext) {
|
|
|
83
83
|
|
|
84
84
|
return req.session.destroy(function(err) {
|
|
85
85
|
return res.redirect(redirectTo);
|
|
86
|
-
});
|
|
86
|
+
}) && null;
|
|
87
87
|
|
|
88
88
|
});
|
|
89
89
|
|
|
@@ -185,7 +185,7 @@ export default function AuthRoutes(logger, router, securityContext) {
|
|
|
185
185
|
} = session;
|
|
186
186
|
|
|
187
187
|
if (!githubUser) {
|
|
188
|
-
return res.type('json').json(null);
|
|
188
|
+
return res.type('json').json(null) && null;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
const {
|
|
@@ -218,14 +218,14 @@ export default function AuthRoutes(logger, router, securityContext) {
|
|
|
218
218
|
// access is not granted anymore, clear current session
|
|
219
219
|
return req.session.destroy(function(err) {
|
|
220
220
|
return res.type('json').json(null);
|
|
221
|
-
});
|
|
221
|
+
}) && null;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
return res.type('json').json({
|
|
226
226
|
login,
|
|
227
227
|
avatar_url
|
|
228
|
-
});
|
|
228
|
+
}) && null;
|
|
229
229
|
|
|
230
230
|
});
|
|
231
231
|
|
|
@@ -174,17 +174,17 @@ export default async function BoardApiRoutes(
|
|
|
174
174
|
|
|
175
175
|
return filterBoardItems(req, items).then(filteredItems => {
|
|
176
176
|
|
|
177
|
-
res.type('json').json({
|
|
177
|
+
return res.type('json').json({
|
|
178
178
|
items: filteredItems,
|
|
179
179
|
cursor
|
|
180
|
-
});
|
|
180
|
+
}) && null;
|
|
181
181
|
}).catch(err => {
|
|
182
182
|
log.error({
|
|
183
183
|
err,
|
|
184
184
|
cursor
|
|
185
185
|
}, 'failed to retrieve cards');
|
|
186
186
|
|
|
187
|
-
res.status(500).json({ error : true });
|
|
187
|
+
return res.status(500).json({ error : true }) && null;
|
|
188
188
|
});
|
|
189
189
|
});
|
|
190
190
|
|
|
@@ -206,7 +206,7 @@ export default async function BoardApiRoutes(
|
|
|
206
206
|
};
|
|
207
207
|
}),
|
|
208
208
|
name: name || 'Wuffle Board'
|
|
209
|
-
});
|
|
209
|
+
}) && null;
|
|
210
210
|
|
|
211
211
|
});
|
|
212
212
|
|
|
@@ -236,7 +236,7 @@ export default async function BoardApiRoutes(
|
|
|
236
236
|
const user = authRoutes.getGitHubUser(req);
|
|
237
237
|
|
|
238
238
|
if (!user) {
|
|
239
|
-
return res.status(401).json({});
|
|
239
|
+
return res.status(401).json({}) && null;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
const body = JSON.parse(req.body);
|
|
@@ -251,13 +251,13 @@ export default async function BoardApiRoutes(
|
|
|
251
251
|
const issue = await store.getIssueById(id);
|
|
252
252
|
|
|
253
253
|
if (!issue) {
|
|
254
|
-
return res.status(404).json({});
|
|
254
|
+
return res.status(404).json({}) && null;
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
const column = columns.getByName(columnName);
|
|
258
258
|
|
|
259
259
|
if (!column) {
|
|
260
|
-
return res.status(404).json({});
|
|
260
|
+
return res.status(404).json({}) && null;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
const repo = repoAndOwner(issue);
|
|
@@ -265,7 +265,7 @@ export default async function BoardApiRoutes(
|
|
|
265
265
|
const canWrite = await userAccess.canWrite(user, repo);
|
|
266
266
|
|
|
267
267
|
if (!canWrite) {
|
|
268
|
-
return res.status(403).json({});
|
|
268
|
+
return res.status(403).json({}) && null;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
const octokit = await githubClient.getUserScoped(user);
|
|
@@ -288,7 +288,7 @@ export default async function BoardApiRoutes(
|
|
|
288
288
|
|
|
289
289
|
res.status(500).json({ error : true });
|
|
290
290
|
})
|
|
291
|
-
);
|
|
291
|
+
) && null;
|
|
292
292
|
|
|
293
293
|
});
|
|
294
294
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wuffle",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.65.0",
|
|
4
4
|
"description": "A multi-repository task board for GitHub issues",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Nico Rehwaldt",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@aws-sdk/client-s3": "^3.525.0",
|
|
46
46
|
"async-didi": "^0.3.1",
|
|
47
|
-
"body-parser": "^
|
|
48
|
-
"compression": "^1.
|
|
47
|
+
"body-parser": "^2.0.0",
|
|
48
|
+
"compression": "^1.8.0",
|
|
49
49
|
"express-session": "^1.18.1",
|
|
50
50
|
"fake-tag": "^5.0.0",
|
|
51
51
|
"memorystore": "^1.6.7",
|
|
@@ -53,21 +53,21 @@
|
|
|
53
53
|
"mkdirp": "^3.0.1",
|
|
54
54
|
"p-defer": "^4.0.1",
|
|
55
55
|
"prexit": "^2.3.0",
|
|
56
|
-
"probot": "^13.4.
|
|
57
|
-
"smee-client": "^
|
|
56
|
+
"probot": "^13.4.5",
|
|
57
|
+
"smee-client": "^3.1.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@graphql-eslint/eslint-plugin": "^4.
|
|
60
|
+
"@graphql-eslint/eslint-plugin": "^4.4.0",
|
|
61
61
|
"@octokit/graphql-schema": "^15.25.0",
|
|
62
62
|
"@types/compression": "^1.7.2",
|
|
63
63
|
"@types/express-session": "^1.18.1",
|
|
64
64
|
"@types/mocha": "^10.0.10",
|
|
65
65
|
"chai": "^4.5.0",
|
|
66
|
-
"graphql": "^16.
|
|
66
|
+
"graphql": "^16.11.0",
|
|
67
67
|
"mocha": "^10.8.2",
|
|
68
|
-
"nock": "^
|
|
68
|
+
"nock": "^14.0.4",
|
|
69
69
|
"nodemon": "^3.1.9",
|
|
70
|
-
"npm-run-all2": "^
|
|
70
|
+
"npm-run-all2": "^8.0.1",
|
|
71
71
|
"sinon": "^18.0.1",
|
|
72
72
|
"sinon-chai": "^3.7.0",
|
|
73
73
|
"typescript": "^5.7.2"
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"index.js",
|
|
84
84
|
"wuffle.config.example.js"
|
|
85
85
|
],
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "7db067f8630f6d93f0e13c3b52795e505c0cf876"
|
|
87
87
|
}
|