proxy-chain 3.0.1-beta.6 → 3.0.1-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +19 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proxy-chain",
|
|
3
|
-
"version": "3.0.1-beta.
|
|
3
|
+
"version": "3.0.1-beta.7",
|
|
4
4
|
"description": "Node.js implementation of a proxy server (think Squid) with support for SSL, authentication, upstream proxy chaining, and protocol tunneling.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -51,45 +51,29 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@apify/eslint-config": "^1.0.0",
|
|
53
53
|
"@apify/tsconfig": "^0.1.0",
|
|
54
|
-
"@types/jest": "^28.1.2",
|
|
55
54
|
"@types/node": "^20.19.29",
|
|
55
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
56
56
|
"basic-auth": "^2.0.1",
|
|
57
57
|
"basic-auth-parser": "^0.0.2",
|
|
58
58
|
"body-parser": "^1.19.0",
|
|
59
|
-
"chai": "^4.3.4",
|
|
60
59
|
"cross-env": "^7.0.3",
|
|
61
60
|
"eslint": "^9.18.0",
|
|
62
61
|
"express": "^4.17.1",
|
|
63
62
|
"faye-websocket": "^0.11.4",
|
|
64
63
|
"got-scraping": "^3.2.4-beta.0",
|
|
65
|
-
"isparta": "^4.1.1",
|
|
66
|
-
"mocha": "^10.0.0",
|
|
67
|
-
"nyc": "^15.1.0",
|
|
68
64
|
"portastic": "^1.0.1",
|
|
69
65
|
"proxy": "^1.0.2",
|
|
70
66
|
"puppeteer": "^25.1.0",
|
|
71
67
|
"request": "^2.88.2",
|
|
72
68
|
"rimraf": "^4.1.2",
|
|
73
|
-
"sinon": "^13.0.2",
|
|
74
|
-
"sinon-stub-promise": "^4.0.0",
|
|
75
69
|
"socksv5": "^0.0.6",
|
|
76
|
-
"through": "^2.3.8",
|
|
77
70
|
"tsx": "^4.21.0",
|
|
78
71
|
"typescript": "^5.9.3",
|
|
79
72
|
"typescript-eslint": "^8.20.0",
|
|
80
73
|
"underscore": "^1.13.1",
|
|
74
|
+
"vitest": "^4.1.11",
|
|
81
75
|
"ws": "^8.2.2"
|
|
82
76
|
},
|
|
83
|
-
"nyc": {
|
|
84
|
-
"reporter": [
|
|
85
|
-
"text",
|
|
86
|
-
"html",
|
|
87
|
-
"lcov"
|
|
88
|
-
],
|
|
89
|
-
"exclude": [
|
|
90
|
-
"**/test/**"
|
|
91
|
-
]
|
|
92
|
-
},
|
|
93
77
|
"dependencies": {
|
|
94
78
|
"socks": "^2.8.3",
|
|
95
79
|
"socks-proxy-agent": "^8.0.3",
|
|
@@ -100,13 +84,22 @@
|
|
|
100
84
|
"build": "tsc",
|
|
101
85
|
"clean": "rimraf dist",
|
|
102
86
|
"local-proxy": "tsx test/utils/run_locally.js",
|
|
103
|
-
"test": "
|
|
104
|
-
"test:unit": "
|
|
105
|
-
"test:e2e": "
|
|
106
|
-
"test:bun": "bun --bun run
|
|
107
|
-
"test:bun:e2e:
|
|
108
|
-
"test:bun:e2e:
|
|
109
|
-
"test:
|
|
87
|
+
"test": "vitest run --coverage",
|
|
88
|
+
"test:unit": "vitest run --project unit",
|
|
89
|
+
"test:e2e": "vitest run --project e2e --coverage",
|
|
90
|
+
"test:bun": "bun --bun run vitest run --project unit",
|
|
91
|
+
"test:bun:e2e:full": "cross-env NODE_OPTIONS=--insecure-http-parser bun --bun run vitest run --project e2e",
|
|
92
|
+
"test:bun:e2e:compatible": "pnpm run test:bun:e2e:full test/e2e/tcp_tunnel.js -t 'throws error'",
|
|
93
|
+
"test:bun:all": "pnpm run test:bun && pnpm run test:bun:e2e:full",
|
|
94
|
+
"test:bun:supported": "pnpm run test:bun && pnpm run test:bun:e2e:compatible",
|
|
95
|
+
"docker:build": "docker build --tag proxy-chain-tests --file test/Dockerfile .",
|
|
96
|
+
"docker:run": "docker run --rm --add-host localhost-test:127.0.0.1 proxy-chain-tests",
|
|
97
|
+
"test:docker": "pnpm run docker:build && pnpm run docker:run -- test",
|
|
98
|
+
"test:docker:bun": "pnpm run docker:build && pnpm run docker:run -- test:bun:supported",
|
|
99
|
+
"test:docker:bun:unit": "pnpm run docker:build && pnpm run docker:run -- test:bun",
|
|
100
|
+
"test:docker:bun:e2e:compatible": "pnpm run docker:build && pnpm run docker:run -- test:bun:e2e:compatible",
|
|
101
|
+
"test:docker:bun:e2e:full": "pnpm run docker:build && pnpm run docker:run -- test:bun:e2e:full",
|
|
102
|
+
"test:docker:bun:full": "pnpm run docker:build && pnpm run docker:run -- test:bun:all",
|
|
110
103
|
"test:docker:all": "bash scripts/test-docker-all.sh",
|
|
111
104
|
"lint": "eslint .",
|
|
112
105
|
"lint:fix": "eslint . --fix"
|