package.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. {
  2. "name": "socket.io-client",
  3. "version": "4.7.2",
  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. "types": "./build/esm/index.d.ts",
  26. "import": {
  27. "node": "./build/esm-debug/index.js",
  28. "default": "./build/esm/index.js"
  29. },
  30. "require": "./build/cjs/index.js"
  31. },
  32. "./debug": {
  33. "import": "./build/esm-debug/index.js",
  34. "require": "./build/cjs/index.js"
  35. }
  36. },
  37. "types": "./build/esm/index.d.ts",
  38. "dependencies": {
  39. "@socket.io/component-emitter": "~3.1.0",
  40. "debug": "~4.3.2",
  41. "engine.io-client": "~6.5.2",
  42. "socket.io-parser": "~4.2.4"
  43. },
  44. "devDependencies": {
  45. "@babel/core": "^7.15.0",
  46. "@babel/plugin-transform-object-assign": "^7.14.5",
  47. "@babel/preset-env": "^7.15.0",
  48. "@babel/register": "^7.18.9",
  49. "@rollup/plugin-alias": "^3.1.5",
  50. "@rollup/plugin-babel": "^5.3.0",
  51. "@rollup/plugin-commonjs": "^21.0.0",
  52. "@rollup/plugin-node-resolve": "^13.0.5",
  53. "@sinonjs/fake-timers": "^7.1.2",
  54. "@types/mocha": "^9.0.0",
  55. "@types/node": "^16.7.6",
  56. "@types/sinonjs__fake-timers": "^6.0.3",
  57. "@wdio/cli": "^7.26.0",
  58. "@wdio/local-runner": "^7.26.0",
  59. "@wdio/mocha-framework": "^7.26.0",
  60. "@wdio/sauce-service": "^7.26.0",
  61. "@wdio/spec-reporter": "^7.26.0",
  62. "babel-eslint": "^10.1.0",
  63. "babel-loader": "^8.1.0",
  64. "babel-preset-es2015": "6.24.1",
  65. "base64-arraybuffer": "^0.1.5",
  66. "expect.js": "0.3.1",
  67. "has-cors": "^1.1.0",
  68. "mocha": "^10.1.0",
  69. "prettier": "^2.3.2",
  70. "rimraf": "^3.0.2",
  71. "rollup": "^2.58.0",
  72. "rollup-plugin-terser": "^7.0.2",
  73. "socket.io": "^4.6.0-alpha1",
  74. "socket.io-msgpack-parser": "^3.0.0",
  75. "text-blob-builder": "0.0.1",
  76. "ts-loader": "^8.3.0",
  77. "ts-node": "^10.2.1",
  78. "tsd": "^0.17.0",
  79. "typescript": "^4.4.2"
  80. },
  81. "scripts": {
  82. "compile": "rimraf ./build && tsc && tsc -p tsconfig.esm.json && ./postcompile.sh",
  83. "test": "npm run format:check && npm run compile && if test \"$BROWSERS\" = \"1\" ; then npm run test:browser; else npm run test:node; fi",
  84. "test:node": "mocha --require ts-node/register --reporter dot --require test/support/hooks.ts --timeout 5000 --exit test/index.ts",
  85. "test:browser": "ts-node test/browser-runner.ts",
  86. "test:types": "tsd",
  87. "build": "rollup -c support/rollup.config.umd.js && rollup -c support/rollup.config.esm.js && rollup -c support/rollup.config.umd.msgpack.js",
  88. "format:check": "prettier --check \"*.js\" \"lib/**/*.ts\" \"test/**/*.ts\" \"support/**/*.js\"",
  89. "format:fix": "prettier --write \"*.js\" \"lib/**/*.ts\" \"test/**/*.ts\" \"support/**/*.js\"",
  90. "prepack": "npm run compile"
  91. },
  92. "contributors": [
  93. {
  94. "name": "Guillermo Rauch",
  95. "email": "rauchg@gmail.com"
  96. },
  97. {
  98. "name": "Arnout Kazemier",
  99. "email": "info@3rd-eden.com"
  100. },
  101. {
  102. "name": "Vladimir Dronnikov",
  103. "email": "dronnikov@gmail.com"
  104. },
  105. {
  106. "name": "Einar Otto Stangvik",
  107. "email": "einaros@gmail.com"
  108. }
  109. ],
  110. "repository": {
  111. "type": "git",
  112. "url": "https://github.com/socketio/socket.io-client.git"
  113. },
  114. "license": "MIT",
  115. "engines": {
  116. "node": ">=10.0.0"
  117. },
  118. "tsd": {
  119. "directory": "test"
  120. },
  121. "browser": {
  122. "./test/node.ts": false
  123. },
  124. "overrides": {
  125. "@types/estree": "0.0.52"
  126. }
  127. }