mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
Compare commits
3 Commits
v1.3.8
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ba960cb2a2 | ||
|
|
2a4fa2861f | ||
|
|
4b4b005d8a |
1158
package-lock.json
generated
1158
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -30,7 +30,7 @@
|
||||
"body-parser": "^1.20.3",
|
||||
"compression-webpack-plugin": "^10.0.0",
|
||||
"cors": "^2.8.5",
|
||||
"express": "^4.21.1",
|
||||
"express": "^4.21.2",
|
||||
"express-force-https": "^1.0.0",
|
||||
"express-rate-limit": "^6.0.1",
|
||||
"open": "^7.0.3",
|
||||
@@ -48,11 +48,11 @@
|
||||
"acorn": "^8.6.0",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"core-js": "^3.25.0",
|
||||
"eslint": "^7.12.1",
|
||||
"eslint-config-standard": "^16.0.3",
|
||||
"eslint": "^9.39.1",
|
||||
"eslint-config-standard": "^17.1.0",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-promise": "^5.0.0",
|
||||
"eslint-plugin-promise": "^7.2.1",
|
||||
"jasmine": "^3.5.0",
|
||||
"jasmine-browser-runner": "^1.0.0",
|
||||
"jasmine-core": "^4.0.1",
|
||||
|
||||
@@ -83,9 +83,11 @@ router.patch('/:code/players', async function (req, res) {
|
||||
res.status(200).send({ cookie: data, environment: gameManager.environment });
|
||||
}).catch((data) => {
|
||||
console.error(data);
|
||||
res.set('content-type', 'text/plain');
|
||||
res.status(data.status || 500).send(data.reason);
|
||||
});
|
||||
} else {
|
||||
res.set('content-type', 'text/plain');
|
||||
res.status(404).send();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user