package.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {
  2. "name": "engine.io-client",
  3. "description": "Client for the realtime Engine",
  4. "license": "MIT",
  5. "version": "6.2.2",
  6. "main": "./build/cjs/index.js",
  7. "module": "./build/esm/index.js",
  8. "exports": {
  9. "./package.json": "./package.json",
  10. "./dist/engine.io.esm.min.js": "./dist/engine.io.esm.min.js",
  11. "./dist/engine.io.js": "./dist/engine.io.js",
  12. "./dist/engine.io.min.js": "./dist/engine.io.min.js",
  13. ".": {
  14. "import": {
  15. "node": "./build/esm-debug/index.js",
  16. "default": "./build/esm/index.js"
  17. },
  18. "require": "./build/cjs/index.js"
  19. }
  20. },
  21. "types": "build/esm/index.d.ts",
  22. "homepage": "https://github.com/socketio/engine.io-client",
  23. "contributors": [
  24. {
  25. "name": "Guillermo Rauch",
  26. "email": "rauchg@gmail.com"
  27. },
  28. {
  29. "name": "Vladimir Dronnikov",
  30. "email": "dronnikov@gmail.com"
  31. },
  32. {
  33. "name": "Christoph Dorn",
  34. "web": "https://github.com/cadorn"
  35. },
  36. {
  37. "name": "Mark Mokryn",
  38. "email": "mokesmokes@gmail.com"
  39. }
  40. ],
  41. "dependencies": {
  42. "@socket.io/component-emitter": "~3.1.0",
  43. "debug": "~4.3.1",
  44. "engine.io-parser": "~5.0.3",
  45. "ws": "~8.2.3",
  46. "xmlhttprequest-ssl": "~2.0.0"
  47. },
  48. "devDependencies": {
  49. "@babel/core": "^7.12.9",
  50. "@babel/plugin-transform-object-assign": "^7.12.1",
  51. "@babel/preset-env": "^7.12.7",
  52. "@rollup/plugin-babel": "^5.3.0",
  53. "@rollup/plugin-commonjs": "^21.0.0",
  54. "@rollup/plugin-node-resolve": "^13.0.5",
  55. "@sinonjs/fake-timers": "^7.1.2",
  56. "@types/mocha": "^9.0.0",
  57. "@types/node": "^16.10.1",
  58. "@types/sinonjs__fake-timers": "^6.0.3",
  59. "babel-loader": "^8.2.2",
  60. "blob": "0.0.5",
  61. "engine.io": "^6.2.0-alpha.1",
  62. "expect.js": "^0.3.1",
  63. "express": "^4.17.1",
  64. "mocha": "^3.2.0",
  65. "prettier": "^1.19.1",
  66. "rollup": "^2.58.0",
  67. "rollup-plugin-terser": "^7.0.2",
  68. "socket.io-browsers": "~1.0.4",
  69. "typescript": "^4.4.3",
  70. "webpack": "^4.44.2",
  71. "webpack-cli": "^3.3.12",
  72. "webpack-remove-debug": "^0.1.0",
  73. "zuul": "~3.11.1",
  74. "zuul-builder-webpack": "^1.2.0",
  75. "zuul-ngrok": "4.0.0"
  76. },
  77. "scripts": {
  78. "compile": "rimraf ./build && tsc && tsc -p tsconfig.esm.json && ./postcompile.sh",
  79. "test": "npm run format:check && npm run compile && if test \"$BROWSERS\" = \"1\" ; then npm run test:browser; else npm run test:node; fi",
  80. "test:node": "mocha --bail --reporter dot --require test/support/server.js test/index.js",
  81. "test:browser": "zuul test/index.js",
  82. "build": "rollup -c support/rollup.config.umd.js && rollup -c support/rollup.config.esm.js",
  83. "format:check": "prettier --check 'lib/**/*.ts' 'test/**/*.js' 'support/**/*.js'",
  84. "format:fix": "prettier --write 'lib/**/*.ts' 'test/**/*.js' 'support/**/*.js'",
  85. "prepack": "npm run compile"
  86. },
  87. "browser": {
  88. "./test/node.js": false,
  89. "./build/esm/transports/xmlhttprequest.js": "./build/esm/transports/xmlhttprequest.browser.js",
  90. "./build/esm/transports/websocket-constructor.js": "./build/esm/transports/websocket-constructor.browser.js",
  91. "./build/esm/globalThis.js": "./build/esm/globalThis.browser.js",
  92. "./build/cjs/transports/xmlhttprequest.js": "./build/cjs/transports/xmlhttprequest.browser.js",
  93. "./build/cjs/transports/websocket-constructor.js": "./build/cjs/transports/websocket-constructor.browser.js",
  94. "./build/cjs/globalThis.js": "./build/cjs/globalThis.browser.js"
  95. },
  96. "repository": {
  97. "type": "git",
  98. "url": "https://github.com/socketio/engine.io-client.git"
  99. },
  100. "files": [
  101. "build/",
  102. "dist/"
  103. ],
  104. "__npminstall_done": true,
  105. "_from": "engine.io-client@6.2.2",
  106. "_resolved": "https://registry.npmmirror.com/engine.io-client/-/engine.io-client-6.2.2.tgz"
  107. }