[d24f17c] | 1 | {
|
---|
| 2 | "name": "undici",
|
---|
| 3 | "version": "5.28.3",
|
---|
| 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 | "contributors": [
|
---|
| 15 | {
|
---|
| 16 | "name": "Daniele Belardi",
|
---|
| 17 | "url": "https://github.com/dnlup",
|
---|
| 18 | "author": true
|
---|
| 19 | },
|
---|
| 20 | {
|
---|
| 21 | "name": "Ethan Arrowood",
|
---|
| 22 | "url": "https://github.com/ethan-arrowood",
|
---|
| 23 | "author": true
|
---|
| 24 | },
|
---|
| 25 | {
|
---|
| 26 | "name": "Matteo Collina",
|
---|
| 27 | "url": "https://github.com/mcollina",
|
---|
| 28 | "author": true
|
---|
| 29 | },
|
---|
| 30 | {
|
---|
| 31 | "name": "Matthew Aitken",
|
---|
| 32 | "url": "https://github.com/KhafraDev",
|
---|
| 33 | "author": true
|
---|
| 34 | },
|
---|
| 35 | {
|
---|
| 36 | "name": "Robert Nagy",
|
---|
| 37 | "url": "https://github.com/ronag",
|
---|
| 38 | "author": true
|
---|
| 39 | },
|
---|
| 40 | {
|
---|
| 41 | "name": "Szymon Marczak",
|
---|
| 42 | "url": "https://github.com/szmarczak",
|
---|
| 43 | "author": true
|
---|
| 44 | },
|
---|
| 45 | {
|
---|
| 46 | "name": "Tomas Della Vedova",
|
---|
| 47 | "url": "https://github.com/delvedor",
|
---|
| 48 | "author": true
|
---|
| 49 | }
|
---|
| 50 | ],
|
---|
| 51 | "keywords": [
|
---|
| 52 | "fetch",
|
---|
| 53 | "http",
|
---|
| 54 | "https",
|
---|
| 55 | "promise",
|
---|
| 56 | "request",
|
---|
| 57 | "curl",
|
---|
| 58 | "wget",
|
---|
| 59 | "xhr",
|
---|
| 60 | "whatwg"
|
---|
| 61 | ],
|
---|
| 62 | "main": "index.js",
|
---|
| 63 | "types": "index.d.ts",
|
---|
| 64 | "files": [
|
---|
| 65 | "*.d.ts",
|
---|
| 66 | "index.js",
|
---|
| 67 | "index-fetch.js",
|
---|
| 68 | "lib",
|
---|
| 69 | "types",
|
---|
| 70 | "docs"
|
---|
| 71 | ],
|
---|
| 72 | "scripts": {
|
---|
| 73 | "build:node": "npx esbuild@0.19.4 index-fetch.js --bundle --platform=node --outfile=undici-fetch.js --define:esbuildDetection=1 --keep-names",
|
---|
| 74 | "prebuild:wasm": "node build/wasm.js --prebuild",
|
---|
| 75 | "build:wasm": "node build/wasm.js --docker",
|
---|
| 76 | "lint": "standard | snazzy",
|
---|
| 77 | "lint:fix": "standard --fix | snazzy",
|
---|
| 78 | "test": "node scripts/generate-pem && 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",
|
---|
| 79 | "test:cookies": "node scripts/verifyVersion 16 || tap test/cookie/*.js",
|
---|
| 80 | "test:node-fetch": "node scripts/verifyVersion.js 16 || mocha --exit test/node-fetch",
|
---|
| 81 | "test:fetch": "node scripts/verifyVersion.js 16 || (npm run build:node && tap --expose-gc test/fetch/*.js && tap test/webidl/*.js)",
|
---|
| 82 | "test:jest": "node scripts/verifyVersion.js 14 || jest",
|
---|
| 83 | "test:tap": "tap test/*.js test/diagnostics-channel/*.js",
|
---|
| 84 | "test:tdd": "tap test/*.js test/diagnostics-channel/*.js -w",
|
---|
| 85 | "test:typescript": "node scripts/verifyVersion.js 14 || tsd && tsc --skipLibCheck test/imports/undici-import.ts",
|
---|
| 86 | "test:websocket": "node scripts/verifyVersion.js 18 || tap test/websocket/*.js",
|
---|
| 87 | "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 test/wpt/start-websockets.mjs)",
|
---|
| 88 | "coverage": "nyc --reporter=text --reporter=html npm run test",
|
---|
| 89 | "coverage:ci": "nyc --reporter=lcov npm run test",
|
---|
| 90 | "bench": "PORT=3042 concurrently -k -s first npm:bench:server npm:bench:run",
|
---|
| 91 | "bench:server": "node benchmarks/server.js",
|
---|
| 92 | "prebench:run": "node benchmarks/wait.js",
|
---|
| 93 | "bench:run": "CONNECTIONS=1 node benchmarks/benchmark.js; CONNECTIONS=50 node benchmarks/benchmark.js",
|
---|
| 94 | "serve:website": "docsify serve .",
|
---|
| 95 | "prepare": "husky install",
|
---|
| 96 | "fuzz": "jsfuzz test/fuzzing/fuzz.js corpus"
|
---|
| 97 | },
|
---|
| 98 | "devDependencies": {
|
---|
| 99 | "@sinonjs/fake-timers": "^11.1.0",
|
---|
| 100 | "@types/node": "^18.0.3",
|
---|
| 101 | "abort-controller": "^3.0.0",
|
---|
| 102 | "atomic-sleep": "^1.0.0",
|
---|
| 103 | "chai": "^4.3.4",
|
---|
| 104 | "chai-as-promised": "^7.1.1",
|
---|
| 105 | "chai-iterator": "^3.0.2",
|
---|
| 106 | "chai-string": "^1.5.0",
|
---|
| 107 | "concurrently": "^8.0.1",
|
---|
| 108 | "cronometro": "^1.0.5",
|
---|
| 109 | "delay": "^5.0.0",
|
---|
| 110 | "dns-packet": "^5.4.0",
|
---|
| 111 | "docsify-cli": "^4.4.3",
|
---|
| 112 | "form-data": "^4.0.0",
|
---|
| 113 | "formdata-node": "^6.0.3",
|
---|
| 114 | "https-pem": "^3.0.0",
|
---|
| 115 | "husky": "^8.0.1",
|
---|
| 116 | "import-fresh": "^3.3.0",
|
---|
| 117 | "jest": "^29.0.2",
|
---|
| 118 | "jsdom": "^23.0.0",
|
---|
| 119 | "jsfuzz": "^1.0.15",
|
---|
| 120 | "mocha": "^10.0.0",
|
---|
| 121 | "mockttp": "^3.9.2",
|
---|
| 122 | "p-timeout": "^3.2.0",
|
---|
| 123 | "pre-commit": "^1.2.2",
|
---|
| 124 | "proxy": "^1.0.2",
|
---|
| 125 | "proxyquire": "^2.1.3",
|
---|
| 126 | "semver": "^7.5.4",
|
---|
| 127 | "sinon": "^17.0.1",
|
---|
| 128 | "snazzy": "^9.0.0",
|
---|
| 129 | "standard": "^17.0.0",
|
---|
| 130 | "table": "^6.8.0",
|
---|
| 131 | "tap": "^16.1.0",
|
---|
| 132 | "tsd": "^0.29.0",
|
---|
| 133 | "typescript": "^5.0.2",
|
---|
| 134 | "wait-on": "^7.0.1",
|
---|
| 135 | "ws": "^8.11.0"
|
---|
| 136 | },
|
---|
| 137 | "engines": {
|
---|
| 138 | "node": ">=14.0"
|
---|
| 139 | },
|
---|
| 140 | "standard": {
|
---|
| 141 | "env": [
|
---|
| 142 | "mocha"
|
---|
| 143 | ],
|
---|
| 144 | "ignore": [
|
---|
| 145 | "lib/llhttp/constants.js",
|
---|
| 146 | "lib/llhttp/utils.js",
|
---|
| 147 | "test/wpt/tests"
|
---|
| 148 | ]
|
---|
| 149 | },
|
---|
| 150 | "tsd": {
|
---|
| 151 | "directory": "test/types",
|
---|
| 152 | "compilerOptions": {
|
---|
| 153 | "esModuleInterop": true,
|
---|
| 154 | "lib": [
|
---|
| 155 | "esnext"
|
---|
| 156 | ]
|
---|
| 157 | }
|
---|
| 158 | },
|
---|
| 159 | "jest": {
|
---|
| 160 | "testMatch": [
|
---|
| 161 | "<rootDir>/test/jest/**"
|
---|
| 162 | ]
|
---|
| 163 | },
|
---|
| 164 | "dependencies": {
|
---|
| 165 | "@fastify/busboy": "^2.0.0"
|
---|
| 166 | }
|
---|
| 167 | }
|
---|