Skip to content

Commit

Permalink
Merge pull request #46 from Shahnawaz-Sk/master_v2
Browse files Browse the repository at this point in the history
changes for azure plugin
  • Loading branch information
Shivanshu-lambdatest authored Jul 31, 2023
2 parents e19481c + 5f4258c commit 7b7d57f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
5 changes: 3 additions & 2 deletions lib/cfg/node-tunnel-config-v3-latest.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
},
"AuthUrl": "https://accounts.lambdatest.com/api/user/token/auth",
"logEnable": true,
"latest": "4.0.3",
"latest": "4.0.4",
"supportedVersions":
[
"1.0.0",
Expand Down Expand Up @@ -116,6 +116,7 @@
"4.0.0",
"4.0.1",
"4.0.2",
"4.0.3"
"4.0.3",
"4.0.4"
]
}
1 change: 1 addition & 0 deletions lib/tunnel.js
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ function addArguments_(self, fnCallback) {
}
}
self.infoAPIPort = port;
process.env.INFO_API_PORT = self.infoAPIPort;
logger.log(
options['user'],
options['key'],
Expand Down
8 changes: 4 additions & 4 deletions lib/tunnel_binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ function TunnelBinary(httpTunnelConfig, options) {
try {
console.log(`Downloading latest binary`);
// make Dir if not there.
if (this.checkPath_(destParentDir)) {
this.rmDir(destParentDir);
if (!this.checkPath_(destParentDir)) {
fs.mkdirSync(destParentDir, { recursive: true });
}
fs.mkdirSync(destParentDir, { recursive: true });

// Generate binary path.
var binaryPath = path.join(destParentDir, this.binaryName);
var fileStream = fs.createWriteStream(binaryPath);
Expand Down Expand Up @@ -140,7 +140,7 @@ function TunnelBinary(httpTunnelConfig, options) {
console.log(`Extracting binary`);
try {
var zip = new AdmZip(binaryPath);
zip.extractAllTo(destParentDir, true);
zip.extractAllTo(destParentDir, false);
fs.chmod(destBinaryPath, '0755', function() {
return fnCallback(destBinaryPath)
});
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lambdatest/node-tunnel",
"version": "4.0.3",
"version": "4.0.4",
"description": "Nodejs bindings for LambdaTest Tunnel",
"main": "index.js",
"files": [
Expand Down

0 comments on commit 7b7d57f

Please sign in to comment.