package.json 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {
  2. "name": "@overleaf/real-time",
  3. "description": "The socket.io layer of Overleaf for real-time editor interactions",
  4. "private": true,
  5. "main": "app.js",
  6. "type": "module",
  7. "scripts": {
  8. "start": "node app.js",
  9. "test:acceptance:_run": "mocha --recursive --timeout 15000 --exit $@ test/acceptance/js",
  10. "test:acceptance": "npm run test:acceptance:_run -- --grep=$MOCHA_GREP",
  11. "test:unit:_run": "vitest --config ./vitest.config.unit.cjs",
  12. "test:unit": "npm run test:unit:_run",
  13. "nodemon": "node --watch app.js",
  14. "lint": "eslint --max-warnings 0 --format unix .",
  15. "format": "prettier --list-different $PWD/'**/{*.*js,*.ts}'",
  16. "format:fix": "prettier --write $PWD/'**/{*.*js,*.ts}'",
  17. "lint:fix": "eslint --fix .",
  18. "types:check": "tsc --noEmit"
  19. },
  20. "dependencies": {
  21. "@overleaf/logger": "*",
  22. "@overleaf/metrics": "*",
  23. "@overleaf/o-error": "*",
  24. "@overleaf/redis-wrapper": "*",
  25. "@overleaf/settings": "*",
  26. "@overleaf/validation-tools": "*",
  27. "async": "^3.2.5",
  28. "base64id": "0.1.0",
  29. "body-parser": "^1.20.3",
  30. "bunyan": "^1.8.15",
  31. "connect-redis": "^6.1.3",
  32. "cookie-parser": "^1.4.6",
  33. "express": "^4.21.2",
  34. "express-session": "^1.17.1",
  35. "lodash": "^4.17.21",
  36. "proxy-addr": "^2.0.7",
  37. "request": "^2.88.2",
  38. "socket.io": "github:overleaf/socket.io#0.9.19-overleaf-12",
  39. "socket.io-client": "github:overleaf/socket.io-client#0.9.17-overleaf-5",
  40. "zod-validation-error": "^4.0.1"
  41. },
  42. "devDependencies": {
  43. "@overleaf/fetch-utils": "*",
  44. "chai": "^4.3.6",
  45. "chai-as-promised": "^7.1.1",
  46. "cookie-signature": "^1.1.0",
  47. "mocha": "^11.1.0",
  48. "mocha-junit-reporter": "^2.2.1",
  49. "mocha-multi-reporters": "^1.5.1",
  50. "sinon": "^9.2.4",
  51. "sinon-chai": "4.0.1",
  52. "timekeeper": "0.0.4",
  53. "typescript": "^5.0.4",
  54. "uid-safe": "^2.1.5",
  55. "vitest": "^4.0.0"
  56. }
  57. }