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