3 Commits

Author SHA1 Message Date
dependabot[bot]
ba960cb2a2 Bump js-yaml, eslint, eslint-config-standard and eslint-plugin-promise
Bumps [js-yaml](https://github.com/nodeca/js-yaml) to 4.1.1 and updates ancestor dependencies [js-yaml](https://github.com/nodeca/js-yaml), [eslint](https://github.com/eslint/eslint), [eslint-config-standard](https://github.com/standard/eslint-config-standard) and [eslint-plugin-promise](https://github.com/eslint-community/eslint-plugin-promise). These dependencies need to be updated together.


Updates `js-yaml` from 3.14.1 to 4.1.1
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.14.1...4.1.1)

Updates `eslint` from 7.32.0 to 9.39.1
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v7.32.0...v9.39.1)

Updates `eslint-config-standard` from 16.0.3 to 17.1.0
- [Commits](https://github.com/standard/eslint-config-standard/compare/v16.0.3...v17.1.0)

Updates `eslint-plugin-promise` from 5.2.0 to 7.2.1
- [Release notes](https://github.com/eslint-community/eslint-plugin-promise/releases)
- [Changelog](https://github.com/eslint-community/eslint-plugin-promise/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint-community/eslint-plugin-promise/compare/v5.2.0...v7.2.1)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.1.1
  dependency-type: indirect
- dependency-name: eslint
  dependency-version: 9.39.1
  dependency-type: direct:development
- dependency-name: eslint-config-standard
  dependency-version: 17.1.0
  dependency-type: direct:development
- dependency-name: eslint-plugin-promise
  dependency-version: 7.2.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-14 15:30:18 +00:00
Alec
2a4fa2861f set content type for join errors (#207) 2025-02-07 13:53:30 -05:00
dependabot[bot]
4b4b005d8a Bump path-to-regexp and express (#206)
Bumps [path-to-regexp](https://github.com/pillarjs/path-to-regexp) to 0.1.12 and updates ancestor dependency [express](https://github.com/expressjs/express). These dependencies need to be updated together.


Updates `path-to-regexp` from 0.1.10 to 0.1.12
- [Release notes](https://github.com/pillarjs/path-to-regexp/releases)
- [Changelog](https://github.com/pillarjs/path-to-regexp/blob/master/History.md)
- [Commits](https://github.com/pillarjs/path-to-regexp/compare/v0.1.10...v0.1.12)

Updates `express` from 4.21.1 to 4.21.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.2/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.21.1...4.21.2)

---
updated-dependencies:
- dependency-name: path-to-regexp
  dependency-type: indirect
- dependency-name: express
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-06 17:43:05 -05:00
3 changed files with 733 additions and 435 deletions

1158
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -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",

View File

@@ -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();
}
}