Skip to content

Commit 7b7d57f

Browse files
authoredJul 31, 2023
Merge pull request #46 from Shahnawaz-Sk/master_v2
changes for azure plugin
2 parents e19481c + 5f4258c commit 7b7d57f

5 files changed

+13
-11
lines changed
 

‎lib/cfg/node-tunnel-config-v3-latest.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
},
7777
"AuthUrl": "https://accounts.lambdatest.com/api/user/token/auth",
7878
"logEnable": true,
79-
"latest": "4.0.3",
79+
"latest": "4.0.4",
8080
"supportedVersions":
8181
[
8282
"1.0.0",
@@ -116,6 +116,7 @@
116116
"4.0.0",
117117
"4.0.1",
118118
"4.0.2",
119-
"4.0.3"
119+
"4.0.3",
120+
"4.0.4"
120121
]
121122
}

‎lib/tunnel.js

+1
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,7 @@ function addArguments_(self, fnCallback) {
809809
}
810810
}
811811
self.infoAPIPort = port;
812+
process.env.INFO_API_PORT = self.infoAPIPort;
812813
logger.log(
813814
options['user'],
814815
options['key'],

‎lib/tunnel_binary.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ function TunnelBinary(httpTunnelConfig, options) {
8989
try {
9090
console.log(`Downloading latest binary`);
9191
// make Dir if not there.
92-
if (this.checkPath_(destParentDir)) {
93-
this.rmDir(destParentDir);
92+
if (!this.checkPath_(destParentDir)) {
93+
fs.mkdirSync(destParentDir, { recursive: true });
9494
}
95-
fs.mkdirSync(destParentDir, { recursive: true });
95+
9696
// Generate binary path.
9797
var binaryPath = path.join(destParentDir, this.binaryName);
9898
var fileStream = fs.createWriteStream(binaryPath);
@@ -140,7 +140,7 @@ function TunnelBinary(httpTunnelConfig, options) {
140140
console.log(`Extracting binary`);
141141
try {
142142
var zip = new AdmZip(binaryPath);
143-
zip.extractAllTo(destParentDir, true);
143+
zip.extractAllTo(destParentDir, false);
144144
fs.chmod(destBinaryPath, '0755', function() {
145145
return fnCallback(destBinaryPath)
146146
});

‎package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdatest/node-tunnel",
3-
"version": "4.0.3",
3+
"version": "4.0.4",
44
"description": "Nodejs bindings for LambdaTest Tunnel",
55
"main": "index.js",
66
"files": [

0 commit comments

Comments
 (0)
Failed to load comments.