uniapp,h5

package.json 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. {
  2. "name": "socket.io-client",
  3. "version": "4.8.0",
  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. "types": "./build/esm/index.d.ts",
  27. "node": "./build/esm-debug/index.js",
  28. "default": "./build/esm/index.js"
  29. },
  30. "require": {
  31. "types": "./build/cjs/index.d.ts",
  32. "default": "./build/cjs/index.js"
  33. }
  34. },
  35. "./debug": {
  36. "import": {
  37. "types": "./build/esm/index.d.ts",
  38. "default": "./build/esm-debug/index.js"
  39. },
  40. "require": {
  41. "types": "./build/cjs/index.d.ts",
  42. "default": "./build/cjs/index.js"
  43. }
  44. }
  45. },
  46. "types": "./build/esm/index.d.ts",
  47. "dependencies": {
  48. "@socket.io/component-emitter": "~3.1.0",
  49. "debug": "~4.3.2",
  50. "engine.io-client": "~6.6.1",
  51. "socket.io-parser": "~4.2.4"
  52. },
  53. "scripts": {
  54. "compile": "rimraf ./build && tsc && tsc -p tsconfig.esm.json && ./postcompile.sh",
  55. "test": "npm run format:check && npm run compile && if test \"$BROWSERS\" = \"1\" ; then npm run test:browser; else npm run test:node; fi",
  56. "test:node": "mocha --require ts-node/register --require test/support/hooks.ts --exit test/index.ts",
  57. "test:browser": "ts-node test/browser-runner.ts",
  58. "test:types": "tsd",
  59. "build": "rollup -c support/rollup.config.umd.js && rollup -c support/rollup.config.esm.js && rollup -c support/rollup.config.umd.msgpack.js",
  60. "bundle-size": "node support/bundle-size.js",
  61. "format:check": "prettier --check \"*.js\" \"lib/**/*.ts\" \"test/**/*.ts\" \"support/**/*.js\"",
  62. "format:fix": "prettier --write \"*.js\" \"lib/**/*.ts\" \"test/**/*.ts\" \"support/**/*.js\"",
  63. "prepack": "npm run compile"
  64. },
  65. "contributors": [
  66. {
  67. "name": "Guillermo Rauch",
  68. "email": "rauchg@gmail.com"
  69. },
  70. {
  71. "name": "Arnout Kazemier",
  72. "email": "info@3rd-eden.com"
  73. },
  74. {
  75. "name": "Vladimir Dronnikov",
  76. "email": "dronnikov@gmail.com"
  77. },
  78. {
  79. "name": "Einar Otto Stangvik",
  80. "email": "einaros@gmail.com"
  81. }
  82. ],
  83. "homepage": "https://github.com/socketio/socket.io/tree/main/packages/socket.io-client#readme",
  84. "repository": {
  85. "type": "git",
  86. "url": "git+https://github.com/socketio/socket.io.git"
  87. },
  88. "bugs": {
  89. "url": "https://github.com/socketio/socket.io/issues"
  90. },
  91. "license": "MIT",
  92. "engines": {
  93. "node": ">=10.0.0"
  94. },
  95. "tsd": {
  96. "directory": "test"
  97. },
  98. "browser": {
  99. "./test/node.ts": false
  100. }
  101. }