Skip to content

Commit

Permalink
3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshGlazebrook committed Feb 12, 2024
1 parent 209c398 commit df8e077
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "socks",
"private": false,
"version": "2.8.0",
"version": "3.0.0",
"description": "Fully featured SOCKS proxy client supporting SOCKSv4, SOCKSv4a, and SOCKSv5. Includes Bind and Associate functionality.",
"main": "build/index.js",
"typings": "typings/index.d.ts",
Expand Down
11 changes: 6 additions & 5 deletions test/socksclient.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import {SocksClient} from '../src/client/socksclient';
import * as assert from 'assert';
import 'mocha';
Expand Down Expand Up @@ -90,12 +91,12 @@ describe('Validating SocksProxyOptions', () => {
const socksRemoteHostInvalidHost: SocksRemoteHost = {
host: undefined,
port: 1080,
};
} as any;

const socksremoteHostInvalidPort: SocksRemoteHost = {
host: '1.2.3.4',
port: undefined,
};
} as any;

const socksCommandValid = 'connect';
const socksCommandInvalid: any = 'other';
Expand Down Expand Up @@ -167,7 +168,7 @@ describe('Validating SocksProxyOptions', () => {
ipaddress: '1.2.3.4',
port: undefined,
type: 4,
};
} as any;

const socksProxyInvalidType: SocksProxy = {
ipaddress: '1.2.3.4',
Expand Down Expand Up @@ -452,7 +453,7 @@ describe('SocksClient', () => {
},
command: 'fake' as any,
},
(err: Error) => {
(err: Error | null) => {
assert(err instanceof SocksClientError);
},
);
Expand Down Expand Up @@ -504,7 +505,7 @@ describe('SocksClient', () => {
],
command: 'fake' as any,
},
(err: Error) => {
(err: Error | null) => {
assert(err instanceof SocksClientError);
},
);
Expand Down

0 comments on commit df8e077

Please sign in to comment.