package.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {
  2. "name": "socket.io",
  3. "version": "4.8.1",
  4. "description": "node.js realtime framework server",
  5. "keywords": [
  6. "realtime",
  7. "framework",
  8. "websocket",
  9. "tcp",
  10. "events",
  11. "socket",
  12. "io"
  13. ],
  14. "files": [
  15. "dist/",
  16. "client-dist/",
  17. "wrapper.mjs",
  18. "!**/*.tsbuildinfo"
  19. ],
  20. "directories": {
  21. "doc": "docs/",
  22. "example": "example/",
  23. "lib": "lib/",
  24. "test": "test/"
  25. },
  26. "type": "commonjs",
  27. "main": "./dist/index.js",
  28. "exports": {
  29. "types": "./dist/index.d.ts",
  30. "import": "./wrapper.mjs",
  31. "require": "./dist/index.js"
  32. },
  33. "types": "./dist/index.d.ts",
  34. "license": "MIT",
  35. "homepage": "https://github.com/socketio/socket.io/tree/main/packages/socket.io#readme",
  36. "repository": {
  37. "type": "git",
  38. "url": "git+https://github.com/socketio/socket.io.git"
  39. },
  40. "bugs": {
  41. "url": "https://github.com/socketio/socket.io/issues"
  42. },
  43. "scripts": {
  44. "compile": "rimraf ./dist && tsc",
  45. "test": "npm run format:check && npm run compile && npm run test:types && npm run test:unit",
  46. "test:types": "tsd",
  47. "test:unit": "nyc mocha --require ts-node/register --reporter spec --slow 200 --bail --timeout 10000 test/index.ts",
  48. "format:check": "prettier --check \"lib/**/*.ts\" \"test/**/*.ts\"",
  49. "format:fix": "prettier --write \"lib/**/*.ts\" \"test/**/*.ts\"",
  50. "prepack": "npm run compile"
  51. },
  52. "dependencies": {
  53. "accepts": "~1.3.4",
  54. "base64id": "~2.0.0",
  55. "cors": "~2.8.5",
  56. "debug": "~4.3.2",
  57. "engine.io": "~6.6.0",
  58. "socket.io-adapter": "~2.5.2",
  59. "socket.io-parser": "~4.2.4"
  60. },
  61. "contributors": [
  62. {
  63. "name": "Guillermo Rauch",
  64. "email": "rauchg@gmail.com"
  65. },
  66. {
  67. "name": "Arnout Kazemier",
  68. "email": "info@3rd-eden.com"
  69. },
  70. {
  71. "name": "Vladimir Dronnikov",
  72. "email": "dronnikov@gmail.com"
  73. },
  74. {
  75. "name": "Einar Otto Stangvik",
  76. "email": "einaros@gmail.com"
  77. }
  78. ],
  79. "engines": {
  80. "node": ">=10.2.0"
  81. },
  82. "tsd": {
  83. "directory": "test"
  84. }
  85. }