proxy-chain 3.0.1-beta.6 → 3.0.1-beta.8

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.
Files changed (1) hide show
  1. package/package.json +27 -27
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proxy-chain",
3
- "version": "3.0.1-beta.6",
3
+ "version": "3.0.1-beta.8",
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,35 @@
51
51
  "devDependencies": {
52
52
  "@apify/eslint-config": "^1.0.0",
53
53
  "@apify/tsconfig": "^0.1.0",
54
- "@types/jest": "^28.1.2",
54
+ "@types/basic-auth": "^1.1.8",
55
+ "@types/body-parser": "^1.19.6",
56
+ "@types/express": "^4.17.25",
55
57
  "@types/node": "^20.19.29",
58
+ "@types/request": "^2.48.13",
59
+ "@types/underscore": "^1.13.0",
60
+ "@types/ws": "^8.18.1",
61
+ "@vitest/coverage-v8": "^4.1.11",
56
62
  "basic-auth": "^2.0.1",
57
63
  "basic-auth-parser": "^0.0.2",
58
64
  "body-parser": "^1.19.0",
59
- "chai": "^4.3.4",
60
65
  "cross-env": "^7.0.3",
61
66
  "eslint": "^9.18.0",
62
67
  "express": "^4.17.1",
63
68
  "faye-websocket": "^0.11.4",
64
69
  "got-scraping": "^3.2.4-beta.0",
65
- "isparta": "^4.1.1",
66
- "mocha": "^10.0.0",
67
- "nyc": "^15.1.0",
68
70
  "portastic": "^1.0.1",
69
71
  "proxy": "^1.0.2",
70
72
  "puppeteer": "^25.1.0",
71
73
  "request": "^2.88.2",
72
74
  "rimraf": "^4.1.2",
73
- "sinon": "^13.0.2",
74
- "sinon-stub-promise": "^4.0.0",
75
75
  "socksv5": "^0.0.6",
76
- "through": "^2.3.8",
77
76
  "tsx": "^4.21.0",
78
77
  "typescript": "^5.9.3",
79
78
  "typescript-eslint": "^8.20.0",
80
79
  "underscore": "^1.13.1",
80
+ "vitest": "^4.1.11",
81
81
  "ws": "^8.2.2"
82
82
  },
83
- "nyc": {
84
- "reporter": [
85
- "text",
86
- "html",
87
- "lcov"
88
- ],
89
- "exclude": [
90
- "**/test/**"
91
- ]
92
- },
93
83
  "dependencies": {
94
84
  "socks": "^2.8.3",
95
85
  "socks-proxy-agent": "^8.0.3",
@@ -99,15 +89,25 @@
99
89
  "build:watch": "tsc -w",
100
90
  "build": "tsc",
101
91
  "clean": "rimraf dist",
102
- "local-proxy": "tsx test/utils/run_locally.js",
103
- "test": "nyc cross-env NODE_OPTIONS=--insecure-http-parser mocha 'test/unit/**/*.js' 'test/e2e/**/*.js'",
104
- "test:unit": "mocha 'test/unit/**/*.js'",
105
- "test:e2e": "nyc cross-env NODE_OPTIONS=--insecure-http-parser mocha 'test/e2e/**/*.js'",
106
- "test:bun": "bun --bun run mocha --no-config --exit 'test/unit/**/*.js'",
107
- "test:bun:e2e:compatible": "bun --bun run mocha --no-config --exit --grep 'throws error' test/e2e/tcp_tunnel.js",
108
- "test:bun:e2e:full": "bun --bun run mocha --no-config --exit 'test/e2e/**/*.js'",
109
- "test:docker": "docker build --tag proxy-chain-tests --file test/Dockerfile . && docker run --add-host localhost-test:127.0.0.1 proxy-chain-tests",
92
+ "local-proxy": "tsx test/utils/run_locally.ts",
93
+ "test": "vitest run --coverage",
94
+ "test:unit": "vitest run --project unit",
95
+ "test:e2e": "vitest run --project e2e --coverage",
96
+ "test:bun": "bun --bun run vitest run --project unit",
97
+ "test:bun:e2e:full": "cross-env NODE_OPTIONS=--insecure-http-parser bun --bun run vitest run --project e2e",
98
+ "test:bun:e2e:compatible": "pnpm run test:bun:e2e:full test/e2e/tcp_tunnel.ts -t 'throws error'",
99
+ "test:bun:all": "pnpm run test:bun && pnpm run test:bun:e2e:full",
100
+ "test:bun:supported": "pnpm run test:bun && pnpm run test:bun:e2e:compatible",
101
+ "docker:build": "docker build --tag proxy-chain-tests --file test/Dockerfile .",
102
+ "docker:run": "docker run --rm --add-host localhost-test:127.0.0.1 proxy-chain-tests",
103
+ "test:docker": "pnpm run docker:build && pnpm run docker:run -- test",
104
+ "test:docker:bun": "pnpm run docker:build && pnpm run docker:run -- test:bun:supported",
105
+ "test:docker:bun:unit": "pnpm run docker:build && pnpm run docker:run -- test:bun",
106
+ "test:docker:bun:e2e:compatible": "pnpm run docker:build && pnpm run docker:run -- test:bun:e2e:compatible",
107
+ "test:docker:bun:e2e:full": "pnpm run docker:build && pnpm run docker:run -- test:bun:e2e:full",
108
+ "test:docker:bun:full": "pnpm run docker:build && pnpm run docker:run -- test:bun:all",
110
109
  "test:docker:all": "bash scripts/test-docker-all.sh",
110
+ "type-check": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json",
111
111
  "lint": "eslint .",
112
112
  "lint:fix": "eslint . --fix"
113
113
  }