-
Notifications
You must be signed in to change notification settings - Fork 124
Expand file tree
/
Copy pathpackage.json
More file actions
144 lines (144 loc) · 4.67 KB
/
package.json
File metadata and controls
144 lines (144 loc) · 4.67 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
133
134
135
136
137
138
139
140
141
142
143
144
{
"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": "vite lint src test --type-aware --type-check",
"typecheck": "tsc --noEmit && tsgo --noEmit",
"fmt": "vite fmt",
"fmtcheck": "vite fmt --check",
"prebuild": "vite run clean",
"build": "vite run build:ts && vite run build:version",
"build:ts": "tsc --version && tshy && tshy-after",
"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": "vite run build && vite run build:cjs:test && vite run build:esm:test && vite run build:mts:test && vite run test-tsc",
"test-tsc": "vite run test-tsc:cjs:es2021 && vite run test-tsc:cjs && vite run test-tsc:esm",
"test-tsc:cjs": "cd test/fixtures/ts && rm -rf node_modules && npm link ../../.. && vite run build",
"test-tsc:cjs:es2021": "cd test/fixtures/ts-cjs-es2021 && rm -rf node_modules && npm link ../../.. && vite run build",
"test-tsc:esm": "cd test/fixtures/ts-esm && rm -rf node_modules && npm link ../../.. && vite run build",
"test": "vite run lint -- --fix && vite test run --reporter=dot",
"bench": "vite test bench",
"test-keepalive": "cross-env TEST_KEEPALIVE_COUNT=50 vite test run --reporter=dot --test-timeout 180000 keep-alive-header.test.ts",
"test-node16": "node examples/httpclient.cjs && node examples/search_github.cjs && node examples/timing.cjs",
"cov": "vite test run --reporter=dot --coverage",
"ci": "vite run cov && vite run prepublishOnly && npm pack && attw --pack",
"clean": "rm -rf dist && tsc -b --clean",
"prepublishOnly": "vite run build",
"prepare": "husky"
},
"dependencies": {
"form-data": "^4.0.5",
"formstream": "^1.5.2",
"mime-types": "^2.1.35",
"qs": "^6.14.1",
"type-fest": "^4.41.0",
"undici": "^7.19.0",
"ylru": "^2.0.0"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.2",
"@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.7",
"@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.20260120.1",
"@ungap/structured-clone": "^1.3.0",
"@vitest/coverage-v8": "^4.0.18",
"busboy": "^1.6.0",
"cross-env": "^10.1.0",
"husky": "^9.1.7",
"iconv-lite": "^0.7.0",
"lint-staged": "^16.2.7",
"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",
"vite-plus": "latest",
"vitest": "npm:@voidzero-dev/vite-plus-test@latest"
},
"overrides": {
"vite": "npm:@voidzero-dev/vite-plus-core@latest",
"vitest": "npm:@voidzero-dev/vite-plus-test@latest"
},
"lint-staged": {
"*": [
"vite run lint --fix",
"vite fmt --no-error-on-unmatched-pattern"
]
},
"tshy": {
"exports": {
".": "./src/index.ts",
"./package.json": "./package.json"
}
},
"engines": {
"node": ">= 18.19.0"
},
"packageManager": "pnpm@10.28.1",
"pnpm": {
"overrides": {
"vite": "npm:@voidzero-dev/vite-plus-core@latest",
"vitest": "npm:@voidzero-dev/vite-plus-test@latest"
},
"peerDependencyRules": {
"allowAny": [
"vite",
"vitest"
]
}
}
}