|
1 | 1 | { |
2 | 2 | "name": "urllib", |
3 | | - "version": "3.25.1", |
| 3 | + "version": "4.0.0", |
4 | 4 | "publishConfig": { |
5 | 5 | "tag": "latest" |
6 | 6 | }, |
7 | | - "description": "Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, cookies and more. Base undici fetch API.", |
| 7 | + "description": "Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, timeout and more. Base undici API.", |
8 | 8 | "keywords": [ |
9 | 9 | "urllib", |
10 | 10 | "http", |
|
39 | 39 | "test": "npm run lint && vitest run", |
40 | 40 | "test-keepalive": "cross-env TEST_KEEPALIVE_COUNT=50 vitest run --test-timeout 180000 keep-alive-header.test.ts", |
41 | 41 | "cov": "vitest run --coverage", |
42 | | - "preci": "node scripts/pre_test.js", |
43 | | - "ci": "npm run lint && npm run cov && node scripts/build_test.js", |
44 | | - "contributor": "git-contributor", |
| 42 | + "ci": "npm run lint && npm run cov && npm run prepublishOnly", |
45 | 43 | "clean": "rm -rf dist", |
46 | 44 | "prepublishOnly": "npm run build" |
47 | 45 | }, |
48 | 46 | "dependencies": { |
49 | | - "default-user-agent": "^1.0.0", |
50 | | - "digest-header": "^1.0.0", |
51 | | - "form-data-encoder": "^1.7.2", |
52 | | - "formdata-node": "^4.3.3", |
53 | | - "formstream": "^1.1.1", |
| 47 | + "formstream": "^1.5.1", |
54 | 48 | "mime-types": "^2.1.35", |
55 | | - "pump": "^3.0.0", |
56 | | - "qs": "^6.11.2", |
57 | | - "type-fest": "^4.3.1", |
58 | | - "undici": "^5.28.2", |
59 | | - "ylru": "^1.3.2" |
| 49 | + "qs": "^6.12.1", |
| 50 | + "type-fest": "^4.20.1", |
| 51 | + "undici": "^6.19.2", |
| 52 | + "ylru": "^2.0.0" |
60 | 53 | }, |
61 | 54 | "devDependencies": { |
| 55 | + "@eggjs/tsconfig": "^1.3.3", |
62 | 56 | "@tsconfig/node18": "^18.2.1", |
63 | 57 | "@tsconfig/strictest": "^2.0.2", |
64 | 58 | "@types/busboy": "^1.5.0", |
65 | | - "@types/default-user-agent": "^1.0.0", |
66 | 59 | "@types/mime-types": "^2.1.1", |
67 | 60 | "@types/node": "^20.2.1", |
68 | | - "@types/pump": "^1.1.1", |
69 | 61 | "@types/qs": "^6.9.7", |
70 | 62 | "@types/selfsigned": "^2.0.1", |
71 | 63 | "@types/tar-stream": "^2.2.2", |
72 | | - "@vitest/coverage-v8": "^1.3.1", |
| 64 | + "@vitest/coverage-v8": "^1.6.0", |
73 | 65 | "busboy": "^1.6.0", |
74 | 66 | "cross-env": "^7.0.3", |
75 | | - "eslint": "^8.25.0", |
76 | | - "eslint-config-egg": "^12.1.0", |
77 | | - "git-contributor": "^2.0.0", |
| 67 | + "eslint": "8", |
| 68 | + "eslint-config-egg": "13", |
78 | 69 | "iconv-lite": "^0.6.3", |
79 | 70 | "proxy": "^1.0.2", |
80 | 71 | "selfsigned": "^2.0.1", |
81 | 72 | "tar-stream": "^2.2.0", |
82 | 73 | "tshy": "^1.0.0", |
83 | 74 | "tshy-after": "^1.0.0", |
84 | 75 | "typescript": "^5.0.4", |
85 | | - "vitest": "^1.3.1" |
| 76 | + "vitest": "^1.6.0" |
86 | 77 | }, |
87 | 78 | "engines": { |
88 | | - "node": ">= 14.19.3" |
| 79 | + "node": ">= 18.19.0" |
89 | 80 | }, |
90 | 81 | "license": "MIT", |
91 | 82 | "type": "module", |
|
98 | 89 | "exports": { |
99 | 90 | ".": { |
100 | 91 | "import": { |
| 92 | + "source": "./src/index.ts", |
101 | 93 | "types": "./dist/esm/index.d.ts", |
102 | 94 | "default": "./dist/esm/index.js" |
103 | 95 | }, |
104 | 96 | "require": { |
| 97 | + "source": "./src/index.ts", |
105 | 98 | "types": "./dist/commonjs/index.d.ts", |
106 | 99 | "default": "./dist/commonjs/index.js" |
107 | 100 | } |
|
0 commit comments