package.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. "name": "socket.io",
  3. "version": "4.8.3",
  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. ".": {
  30. "types": "./dist/index.d.ts",
  31. "import": "./wrapper.mjs",
  32. "require": "./dist/index.js"
  33. },
  34. "./package.json": "./package.json"
  35. },
  36. "types": "./dist/index.d.ts",
  37. "license": "MIT",
  38. "homepage": "https://github.com/socketio/socket.io/tree/main/packages/socket.io#readme",
  39. "repository": {
  40. "type": "git",
  41. "url": "git+https://github.com/socketio/socket.io.git"
  42. },
  43. "bugs": {
  44. "url": "https://github.com/socketio/socket.io/issues"
  45. },
  46. "scripts": {
  47. "compile": "rimraf ./dist && tsc",
  48. "test": "npm run format:check && npm run compile && npm run test:types && npm run test:unit",
  49. "test:types": "tsd",
  50. "test:unit": "nyc mocha --import=tsx --reporter spec --slow 200 --bail --timeout 10000 test/index.ts",
  51. "format:check": "prettier --check \"lib/**/*.ts\" \"test/**/*.ts\"",
  52. "format:fix": "prettier --write \"lib/**/*.ts\" \"test/**/*.ts\"",
  53. "prepack": "npm run compile"
  54. },
  55. "dependencies": {
  56. "accepts": "~1.3.4",
  57. "base64id": "~2.0.0",
  58. "cors": "~2.8.5",
  59. "debug": "~4.4.1",
  60. "engine.io": "~6.6.0",
  61. "socket.io-adapter": "~2.5.2",
  62. "socket.io-parser": "~4.2.4"
  63. },
  64. "contributors": [
  65. {
  66. "name": "Guillermo Rauch",
  67. "email": "rauchg@gmail.com"
  68. },
  69. {
  70. "name": "Arnout Kazemier",
  71. "email": "info@3rd-eden.com"
  72. },
  73. {
  74. "name": "Vladimir Dronnikov",
  75. "email": "dronnikov@gmail.com"
  76. },
  77. {
  78. "name": "Einar Otto Stangvik",
  79. "email": "einaros@gmail.com"
  80. }
  81. ],
  82. "engines": {
  83. "node": ">=10.2.0"
  84. },
  85. "tsd": {
  86. "directory": "test"
  87. }
  88. }