package.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. {
  2. "name": "socket.io-client",
  3. "version": "4.5.1",
  4. "description": "Realtime application framework client",
  5. "keywords": [
  6. "realtime",
  7. "framework",
  8. "websocket",
  9. "tcp",
  10. "events",
  11. "client"
  12. ],
  13. "files": [
  14. "dist/",
  15. "build/"
  16. ],
  17. "type": "commonjs",
  18. "main": "./build/cjs/index.js",
  19. "module": "./build/esm/index.js",
  20. "exports": {
  21. "./package.json": "./package.json",
  22. "./dist/socket.io.js": "./dist/socket.io.js",
  23. "./dist/socket.io.js.map": "./dist/socket.io.js.map",
  24. ".": {
  25. "import": {
  26. "node": "./build/esm-debug/index.js",
  27. "default": "./build/esm/index.js"
  28. },
  29. "require": "./build/cjs/index.js",
  30. "types": "./build/esm/index.d.ts"
  31. }
  32. },
  33. "types": "./build/esm/index.d.ts",
  34. "dependencies": {
  35. "@socket.io/component-emitter": "~3.1.0",
  36. "debug": "~4.3.2",
  37. "engine.io-client": "~6.2.1",
  38. "socket.io-parser": "~4.2.0"
  39. },
  40. "devDependencies": {
  41. "@babel/core": "^7.15.0",
  42. "@babel/plugin-transform-object-assign": "^7.14.5",
  43. "@babel/preset-env": "^7.15.0",
  44. "@rollup/plugin-alias": "^3.1.5",
  45. "@rollup/plugin-babel": "^5.3.0",
  46. "@rollup/plugin-commonjs": "^21.0.0",
  47. "@rollup/plugin-node-resolve": "^13.0.5",
  48. "@sinonjs/fake-timers": "^7.1.2",
  49. "@types/mocha": "^9.0.0",
  50. "@types/node": "^16.7.6",
  51. "@types/sinonjs__fake-timers": "^6.0.3",
  52. "babel-eslint": "^10.1.0",
  53. "babel-loader": "^8.1.0",
  54. "babel-preset-es2015": "6.24.1",
  55. "base64-arraybuffer": "^0.1.5",
  56. "expect.js": "0.3.1",
  57. "has-cors": "^1.1.0",
  58. "istanbul": "^0.4.5",
  59. "mocha": "^3.3.0",
  60. "prettier": "^2.3.2",
  61. "rimraf": "^3.0.2",
  62. "rollup": "^2.58.0",
  63. "rollup-plugin-terser": "^7.0.2",
  64. "socket.io": "3.0.0",
  65. "socket.io-browsers": "^1.0.0",
  66. "socket.io-msgpack-parser": "^3.0.0",
  67. "text-blob-builder": "0.0.1",
  68. "ts-loader": "^8.3.0",
  69. "ts-node": "^10.2.1",
  70. "tsd": "^0.17.0",
  71. "typescript": "^4.4.2",
  72. "webpack": "^4.44.2",
  73. "webpack-cli": "^3.3.12",
  74. "webpack-remove-debug": "^0.1.0",
  75. "zuul": "~3.11.1",
  76. "zuul-builder-webpack": "^1.2.0",
  77. "zuul-ngrok": "4.0.0"
  78. },
  79. "scripts": {
  80. "compile": "rimraf ./build && tsc && tsc -p tsconfig.esm.json && ./postcompile.sh",
  81. "test": "npm run format:check && npm run compile && if test \"$BROWSERS\" = \"1\" ; then npm run test:browser; else npm run test:node; fi",
  82. "test:node": "mocha --require ts-node/register --reporter dot --require test/support/server.js test/index.js",
  83. "test:browser": "zuul test/index.js",
  84. "test:types": "tsd",
  85. "build": "rollup -c support/rollup.config.umd.js && rollup -c support/rollup.config.esm.js && rollup -c support/rollup.config.umd.msgpack.js",
  86. "format:check": "prettier --check \"lib/**/*.ts\" \"test/**/*.js\" \"test/**/*.ts\" \"support/**/*.js\"",
  87. "format:fix": "prettier --write \"lib/**/*.ts\" \"test/**/*.js\" \"test/**/*.ts\" \"support/**/*.js\"",
  88. "prepack": "npm run compile"
  89. },
  90. "contributors": [
  91. {
  92. "name": "Guillermo Rauch",
  93. "email": "rauchg@gmail.com"
  94. },
  95. {
  96. "name": "Arnout Kazemier",
  97. "email": "info@3rd-eden.com"
  98. },
  99. {
  100. "name": "Vladimir Dronnikov",
  101. "email": "dronnikov@gmail.com"
  102. },
  103. {
  104. "name": "Einar Otto Stangvik",
  105. "email": "einaros@gmail.com"
  106. }
  107. ],
  108. "repository": {
  109. "type": "git",
  110. "url": "https://github.com/socketio/socket.io-client.git"
  111. },
  112. "license": "MIT",
  113. "engines": {
  114. "node": ">=10.0.0"
  115. },
  116. "tsd": {
  117. "directory": "test"
  118. },
  119. "browser": {
  120. "./test/node.ts": false
  121. },
  122. "__npminstall_done": true,
  123. "_from": "socket.io-client@4.5.1",
  124. "_resolved": "https://registry.npmmirror.com/socket.io-client/-/socket.io-client-4.5.1.tgz"
  125. }