package.json 4.0 KB

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