-
Notifications
You must be signed in to change notification settings - Fork 126
Expand file tree
/
Copy pathpackage.json
More file actions
132 lines (132 loc) · 4.4 KB
/
Copy pathpackage.json
File metadata and controls
132 lines (132 loc) · 4.4 KB
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
126
127
128
129
130
131
132
{
"name": "urllib",
"version": "4.9.0",
"description": "Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, timeout and more. Base undici API.",
"keywords": [
"curl",
"fetch",
"http",
"https",
"request",
"undici",
"urllib",
"urlopen",
"wget"
],
"homepage": "https://github.com/node-modules/urllib",
"license": "MIT",
"author": "fengmk2 <fengmk2@gmail.com> (https://github.com/fengmk2)",
"repository": {
"type": "git",
"url": "git://github.com/node-modules/urllib.git"
},
"files": [
"dist",
"src"
],
"type": "module",
"main": "./dist/commonjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/commonjs/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
},
"./package.json": "./package.json"
},
"publishConfig": {
"tag": "latest"
},
"scripts": {
"lint": "oxlint src test --type-aware --type-check",
"fmt": "oxfmt",
"typecheck": "tsc --noEmit && tsgo --noEmit",
"fmtcheck": "oxfmt --check .",
"prebuild": "npm run clean",
"build": "tsc --version && tshy && tshy-after && npm run build:version",
"postbuild": "rm -rf *.tsbuildinfo",
"build:version": "node ./scripts/replace_urllib_version.js",
"build:cjs:test": "cd test/cjs && rm -rf node_modules && npm link ../.. && node index.js",
"build:esm:test": "cd test/esm && rm -rf node_modules && npm link ../.. && node index.js",
"build:mts:test": "cd test/mts && rm -rf node_modules && npm link ../.. && tsc",
"build:test": "npm run build && npm run build:cjs:test && npm run build:esm:test && npm run build:mts:test && npm run test-tsc",
"test-tsc": "npm run test-tsc:cjs:es2021 && npm run test-tsc:cjs && npm run test-tsc:esm",
"test-tsc:cjs": "cd test/fixtures/ts && rm -rf node_modules && npm link ../../.. && npm run build",
"test-tsc:cjs:es2021": "cd test/fixtures/ts-cjs-es2021 && rm -rf node_modules && npm link ../../.. && npm run build",
"test-tsc:esm": "cd test/fixtures/ts-esm && rm -rf node_modules && npm link ../../.. && npm run build",
"test": "npm run lint -- --fix && vitest run",
"bench": "vitest bench",
"test-keepalive": "cross-env TEST_KEEPALIVE_COUNT=50 vitest run --test-timeout 180000 keep-alive-header.test.ts",
"test-node16": "node examples/httpclient.cjs && node examples/search_github.cjs && node examples/timing.cjs",
"cov": "vitest run --coverage",
"ci": "npm run cov && npm run prepublishOnly && npm pack && attw --pack",
"ci:node16": "cross-env NODE_OPTIONS=\"--require ./test/patch-for-node16-18.cjs\" vitest run && npm run prepublishOnly && npm pack && attw --pack",
"clean": "rm -rf dist && tsc -b --clean",
"prepublishOnly": "npm run build",
"prepare": "husky"
},
"dependencies": {
"form-data": "^4.0.5",
"formstream": "^1.5.2",
"mime-types": "^2.1.35",
"qs": "^6.14.0",
"type-fest": "^4.41.0",
"undici": "^7.16.0",
"ylru": "^2.0.0"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.2",
"@codspeed/vitest-plugin": "^5.0.1",
"@eggjs/oxlint-config": "^1.0.0",
"@eggjs/tsconfig": "^2.0.0",
"@types/busboy": "^1.5.4",
"@types/mime-types": "^2.1.4",
"@types/node": "^22.19.3",
"@types/proxy": "^1.0.4",
"@types/qs": "^6.14.0",
"@types/selfsigned": "^2.1.0",
"@types/tar-stream": "^2.2.3",
"@typescript/native-preview": "7.0.0-dev.20251231.1",
"@ungap/structured-clone": "^1.3.0",
"@vitest/coverage-v8": "^3.2.4",
"busboy": "^1.6.0",
"cross-env": "^10.1.0",
"husky": "^9.1.7",
"iconv-lite": "^0.6.3",
"lint-staged": "^16.2.7",
"oxfmt": "^0.20.0",
"oxlint": "^1.35.0",
"oxlint-tsgolint": "^0.10.0",
"proxy": "^1.0.2",
"selfsigned": "^3.0.1",
"string.prototype.towellformed": "^1.0.2",
"tar-stream": "^2.2.0",
"tshy": "^3.1.0",
"tshy-after": "^1.4.1",
"typescript": "^5.9.3",
"vitest": "^3.2.4"
},
"lint-staged": {
"*": [
"npm run lint -- --fix",
"oxfmt"
]
},
"tshy": {
"exports": {
".": "./src/index.ts",
"./package.json": "./package.json"
}
},
"engines": {
"node": ">= 18.19.0"
},
"packageManager": "pnpm@10.27.0"
}