Skip to content

Commit

Permalink
update deps, fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaciras committed Dec 19, 2023
1 parent 55e81e3 commit 41cec5a
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 76 deletions.
6 changes: 2 additions & 4 deletions index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function setupSocksServer(authenticate?: AuthFn) {

filter(port: number, host: string, socket: net.Socket) {
inbound = socket;
return Promise.resolve();
return true;
},
});

Expand Down Expand Up @@ -83,9 +83,7 @@ const secureServer = setupHttpServer({
const plainProxy = setupSocksServer();

const secureProxy = setupSocksServer((username, password) => {
return username === "foo" && password === "bar"
? Promise.resolve()
: Promise.reject(new Error("Authenticate failed"));
return username === "foo" && password === "bar";
});

async function verifyFetchFailed(server: Mockttp | string, dispatcher: Dispatcher, cause?: unknown) {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@
"undici": "^6.0.1"
},
"devDependencies": {
"@e9x/simple-socks": "1.0.0-beta.1",
"@e9x/simple-socks": "1.0.0",
"@jest/globals": "^29.7.0",
"@kaciras/eslint-config-core": "^2.6.1",
"@kaciras/eslint-config-typescript": "^2.6.2",
"@types/ws": "^8.5.10",
"eslint": "^8.55.0",
"eslint": "^8.56.0",
"jest": "^29.7.0",
"mockttp": "^3.10.0",
"ts-jest": "^29.1.1",
"type-coverage": "^2.27.0",
"typescript": "^5.3.3",
"ws": "^8.15.0"
"ws": "^8.15.1"
}
}
Loading

0 comments on commit 41cec5a

Please sign in to comment.