Skip to content

Commit e1660e6

Browse files
author
Kanhaiya Lal Singh
authored
Merge pull request #7 from LambdaTest/feature/latestV3
Feature/latest v3
2 parents 0e1eb46 + 1a13ca2 commit e1660e6

File tree

9 files changed

+271
-86
lines changed

9 files changed

+271
-86
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ node_js:
44
- "8"
55
- "10"
66
- "12"
7+
- "14"

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,13 @@ tunnelArguments = {
322322
logFile: '/lambdatest/logs.txt'
323323
};
324324
```
325+
- egressOnly: Uses proxy settings only for outbound requests.
326+
- ingressOnly: Uses proxy settings only for inbound requests.
327+
- dns: Comma separated list of dns servers
328+
- sshConnType: Specify type of ssh connection (over_22, over_443, over_ws)
329+
- mode: Specifies in which mode tunnel should run [ssh,ws]
330+
- nows: Force tunnel to run in non websocket mode
331+
- mitm: MITM mode, used for testing websites with private certificates
325332

326333
## Contribute
327334

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ declare module "@lambdatest/node-tunnel" {
2626
class Tunnel {
2727
start(options: Partial<Options>, callback: (error?: Error) => void): void;
2828
isRunning(): boolean;
29-
stop(callback: () => void): void;
29+
stop(callback: (error?: Error, status: boolean) => void): Promise<void>;
3030
}
3131
}
3232

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
{
2+
"binaryLinks": {
3+
"mac": {
4+
"v2": {
5+
"32bit": {
6+
"httpPath": "https://downloads.lambdatest.com/tunnel/mac/32bit/ltcomponent.zip",
7+
"binaryName": "ltcomponent.zip",
8+
"hash": "f802ce3166bb25c1a7508d530d514b19"
9+
},
10+
"64bit": {
11+
"httpPath": "https://downloads.lambdatest.com/tunnel/mac/64bit/ltcomponent.zip",
12+
"binaryName": "ltcomponent.zip",
13+
"hash": "50508831995353deb4983d11ff4b0861"
14+
}
15+
},
16+
"v3": {
17+
"32bit": {
18+
"httpPath": "https://downloads.lambdatest.com/tunnel/v3/mac/32bit/LT_Mac.zip",
19+
"binaryName": "LT_Mac.zip",
20+
"hash": "5fdb3e99e8c20fa9de64c73a3d68bac3"
21+
},
22+
"64bit": {
23+
"httpPath": "https://downloads.lambdatest.com/tunnel/v3/mac/64bit/LT_Mac.zip",
24+
"binaryName": "LT_Mac.zip",
25+
"hash": "8bb2c01ca2eef94764523a7c40e72a39"
26+
}
27+
}
28+
},
29+
"win": {
30+
"v2": {
31+
"32bit": {
32+
"httpPath": "https://downloads.lambdatest.com/tunnel/windows/32bit/ltcomponent.zip",
33+
"binaryName": "ltcomponent.zip",
34+
"hash": "a8eb108eb6fc60178ae28196242a17ff"
35+
},
36+
"64bit": {
37+
"httpPath": "https://downloads.lambdatest.com/tunnel/windows/64bit/ltcomponent.zip",
38+
"binaryName": "ltcomponent.zip",
39+
"hash": "69f59ccd89aae6adeccf69a8a829bdea"
40+
}
41+
},
42+
"v3": {
43+
"32bit": {
44+
"httpPath": "https://downloads.lambdatest.com/tunnel/v3/windows/32bit/LT_Windows.zip",
45+
"binaryName": "LT_Windows.zip",
46+
"hash": "251cedbb4aeaf4f65d0e772073327832"
47+
},
48+
"64bit": {
49+
"httpPath": "https://downloads.lambdatest.com/tunnel/v3/windows/64bit/LT_Windows.zip",
50+
"binaryName": "LT_Windows.zip",
51+
"hash": "815260a1d983e79f2a35a732ab178c28"
52+
}
53+
}
54+
},
55+
"linux": {
56+
"v2": {
57+
"32bit": {
58+
"httpPath": "https://downloads.lambdatest.com/tunnel/linux/32bit/ltcomponent.zip",
59+
"binaryName": "ltcomponent.zip",
60+
"hash": "f3eae3b5b32918e6ab53b694965fbdd2"
61+
},
62+
"64bit": {
63+
"httpPath": "https://downloads.lambdatest.com/tunnel/linux/64bit/ltcomponent.zip",
64+
"binaryName": "ltcomponent.zip",
65+
"hash": "107d7d5020d181923fe2f207c2ec76cb"
66+
}
67+
},
68+
"v3": {
69+
"32bit": {
70+
"httpPath": "https://downloads.lambdatest.com/tunnel/v3/linux/32bit/LT_Linux.zip",
71+
"binaryName": "LT_Linux.zip",
72+
"hash": "dfed824375d2e4326034ba8720fb88fd"
73+
},
74+
"64bit": {
75+
"httpPath": "https://downloads.lambdatest.com/tunnel/v3/linux/64bit/LT_Linux.zip",
76+
"binaryName": "LT_Linux.zip",
77+
"hash": "7ce7a92c80e5968bbc81e610ad12ed04"
78+
}
79+
}
80+
},
81+
"freebsd": {
82+
"v2": {
83+
"32bit": {
84+
"httpPath": "https://downloads.lambdatest.com/tunnel/freebsd/32bit/ltcomponent.zip",
85+
"binaryName": "ltcomponent.zip",
86+
"hash": "874da2557a6e7d4ee047830092b36f10"
87+
},
88+
"64bit": {
89+
"httpPath": "https://downloads.lambdatest.com/tunnel/freebsd/64bit/ltcomponent.zip",
90+
"binaryName": "ltcomponent.zip",
91+
"hash": "cd6d2cdca428fa38c94922b9853afe06"
92+
}
93+
},
94+
"v3": {
95+
"32bit": {
96+
"httpPath": "https://downloads.lambdatest.com/tunnel/v3/freebsd/32bit/LT_Freebsd.zip",
97+
"binaryName": "LT_Freebsd.zip",
98+
"hash": "03389252446fa9c10afd3784cc8c550e"
99+
},
100+
"64bit": {
101+
"httpPath": "https://downloads.lambdatest.com/tunnel/v3/freebsd/64bit/LT_Freebsd.zip",
102+
"binaryName": "LT_Freebsd.zip",
103+
"hash": "36b42ef31100b8602596ad2eb8b9d0be"
104+
}
105+
}
106+
}
107+
},
108+
"AuthUrl": "https://accounts.lambdatest.com/api/user/token/auth",
109+
"logEnable": true,
110+
"latest": "3.0.0",
111+
"supportedVersions": [
112+
"1.0.0",
113+
"1.0.1",
114+
"1.0.2",
115+
"1.0.3",
116+
"1.0.4",
117+
"1.0.5",
118+
"1.0.6",
119+
"1.0.7",
120+
"1.0.8",
121+
"1.0.9",
122+
"1.1.0",
123+
"1.1.1",
124+
"1.1.2",
125+
"1.1.3",
126+
"1.1.4",
127+
"2.0.0",
128+
"2.0.1",
129+
"2.0.2",
130+
"3.0.0-beta.1",
131+
"3.0.0",
132+
"3.0.1",
133+
"3.0.2",
134+
"3.0.3",
135+
"3.0.4",
136+
"3.0.5",
137+
"3.0.6",
138+
"3.0.7",
139+
"3.0.8",
140+
"3.0.9"
141+
]
142+
}

lib/conf/node-tunnel-config.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/config.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
var httpTunnelConfigPath =
2-
'https://s3.amazonaws.com/downloads.lambdatest.com/tunnel/node-tunnel-config.json',
1+
var httpTunnelConfigPath = 'https://downloads.lambdatest.com/tunnel/node-tunnel-config-v3-latest.json',
32
httpTunnelLogUrl = 'https://oinwgsy681.execute-api.us-east-1.amazonaws.com/prod/addLog',
43
https = require('https'),
54
urlParse = require('url'),
@@ -82,9 +81,7 @@ function setupLogger_(options, jsonResponse) {
8281
reqOptions.agent = new HttpsProxyAgent(proxyOpts);
8382
}
8483
var req = https.request(reqOptions, res => {
85-
res.on('data', d => {
86-
process.stdout.write(d);
87-
});
84+
res.on('data', _ => {});
8885
});
8986

9087
req.on('error', _ => {});

0 commit comments

Comments
 (0)