package.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. {
  2. "name": "undici",
  3. "version": "5.23.0",
  4. "description": "An HTTP/1.1 client, written from scratch for Node.js",
  5. "homepage": "https://undici.nodejs.org",
  6. "bugs": {
  7. "url": "https://github.com/nodejs/undici/issues"
  8. },
  9. "repository": {
  10. "type": "git",
  11. "url": "git+https://github.com/nodejs/undici.git"
  12. },
  13. "license": "MIT",
  14. "author": "Matteo Collina <hello@matteocollina.com>",
  15. "contributors": [
  16. {
  17. "name": "Robert Nagy",
  18. "url": "https://github.com/ronag",
  19. "author": true
  20. }
  21. ],
  22. "keywords": [
  23. "fetch",
  24. "http",
  25. "https",
  26. "promise",
  27. "request",
  28. "curl",
  29. "wget",
  30. "xhr",
  31. "whatwg"
  32. ],
  33. "main": "index.js",
  34. "types": "index.d.ts",
  35. "files": [
  36. "*.d.ts",
  37. "index.js",
  38. "index-fetch.js",
  39. "lib",
  40. "types",
  41. "docs"
  42. ],
  43. "scripts": {
  44. "build:node": "npx esbuild@0.14.38 index-fetch.js --bundle --platform=node --outfile=undici-fetch.js",
  45. "prebuild:wasm": "node build/wasm.js --prebuild",
  46. "build:wasm": "node build/wasm.js --docker",
  47. "lint": "standard | snazzy",
  48. "lint:fix": "standard --fix | snazzy",
  49. "test": "npm run test:tap && npm run test:node-fetch && npm run test:fetch && npm run test:cookies && npm run test:wpt && npm run test:websocket && npm run test:jest && npm run test:typescript",
  50. "test:cookies": "node scripts/verifyVersion 16 || tap test/cookie/*.js",
  51. "test:node-fetch": "node scripts/verifyVersion.js 16 || mocha --exit test/node-fetch",
  52. "test:fetch": "node scripts/verifyVersion.js 16 || (npm run build:node && tap --expose-gc test/fetch/*.js && tap test/webidl/*.js)",
  53. "test:jest": "node scripts/verifyVersion.js 14 || jest",
  54. "test:tap": "tap test/*.js test/diagnostics-channel/*.js",
  55. "test:tdd": "tap test/*.js test/diagnostics-channel/*.js -w",
  56. "test:typescript": "node scripts/verifyVersion.js 14 || tsd && tsc --skipLibCheck test/imports/undici-import.ts",
  57. "test:websocket": "node scripts/verifyVersion.js 18 || tap test/websocket/*.js",
  58. "test:wpt": "node scripts/verifyVersion 18 || (node test/wpt/start-fetch.mjs && node test/wpt/start-FileAPI.mjs && node test/wpt/start-mimesniff.mjs && node test/wpt/start-xhr.mjs && node --no-warnings test/wpt/start-websockets.mjs)",
  59. "coverage": "nyc --reporter=text --reporter=html npm run test",
  60. "coverage:ci": "nyc --reporter=lcov npm run test",
  61. "bench": "PORT=3042 concurrently -k -s first npm:bench:server npm:bench:run",
  62. "bench:server": "node benchmarks/server.js",
  63. "prebench:run": "node benchmarks/wait.js",
  64. "bench:run": "CONNECTIONS=1 node benchmarks/benchmark.js; CONNECTIONS=50 node benchmarks/benchmark.js",
  65. "serve:website": "docsify serve .",
  66. "prepare": "husky install",
  67. "fuzz": "jsfuzz test/fuzzing/fuzz.js corpus"
  68. },
  69. "devDependencies": {
  70. "@sinonjs/fake-timers": "^10.0.2",
  71. "@types/node": "^18.0.3",
  72. "abort-controller": "^3.0.0",
  73. "atomic-sleep": "^1.0.0",
  74. "chai": "^4.3.4",
  75. "chai-as-promised": "^7.1.1",
  76. "chai-iterator": "^3.0.2",
  77. "chai-string": "^1.5.0",
  78. "concurrently": "^8.0.1",
  79. "cronometro": "^1.0.5",
  80. "delay": "^5.0.0",
  81. "dns-packet": "^5.4.0",
  82. "docsify-cli": "^4.4.3",
  83. "form-data": "^4.0.0",
  84. "formdata-node": "^4.3.1",
  85. "https-pem": "^3.0.0",
  86. "husky": "^8.0.1",
  87. "import-fresh": "^3.3.0",
  88. "jest": "^29.0.2",
  89. "jsdom": "^22.1.0",
  90. "jsfuzz": "^1.0.15",
  91. "mocha": "^10.0.0",
  92. "p-timeout": "^3.2.0",
  93. "pre-commit": "^1.2.2",
  94. "proxy": "^1.0.2",
  95. "proxyquire": "^2.1.3",
  96. "sinon": "^15.0.0",
  97. "snazzy": "^9.0.0",
  98. "standard": "^17.0.0",
  99. "table": "^6.8.0",
  100. "tap": "^16.1.0",
  101. "tsd": "^0.28.1",
  102. "typescript": "^5.0.2",
  103. "wait-on": "^7.0.1",
  104. "ws": "^8.11.0"
  105. },
  106. "engines": {
  107. "node": ">=14.0"
  108. },
  109. "standard": {
  110. "env": [
  111. "mocha"
  112. ],
  113. "ignore": [
  114. "lib/llhttp/constants.js",
  115. "lib/llhttp/utils.js",
  116. "test/wpt/tests"
  117. ]
  118. },
  119. "tsd": {
  120. "directory": "test/types",
  121. "compilerOptions": {
  122. "esModuleInterop": true,
  123. "lib": [
  124. "esnext"
  125. ]
  126. }
  127. },
  128. "jest": {
  129. "testMatch": [
  130. "<rootDir>/test/jest/**"
  131. ]
  132. },
  133. "dependencies": {
  134. "busboy": "^1.6.0"
  135. }
  136. }