Skip to content

Commit 15a6c9c

Browse files
authored
Merge pull request #14 from dubesar/master
Fixes new version
2 parents e46c3a2 + ce6d3a1 commit 15a6c9c

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

lib/tunnel.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ var childProcess = require('child_process'),
1717
usingPorts = [],
1818
globalForceRetries = 0;
1919

20-
var axios = require('axios');
21-
22-
var curr_ver;
23-
axios.get('https://registry.npmjs.com/-/v1/search?text=@lambdatest/node-tunnel').then(res => {
24-
curr_ver = res.data.objects[0].package.version
25-
})
2620
/**
2721
* Tunnel is a function based Class.
2822
*/
@@ -68,7 +62,7 @@ function Tunnel() {
6862
' \nnpm i ' +
6963
packageName
7064
);
71-
} else if (packageVersion !== curr_ver) {
65+
} else if (packageVersion !== response.jsonResponse.latest) {
7266
console.warn(
7367
"\nIt's seems you have older version of " +
7468
packageName +
@@ -138,7 +132,7 @@ function Tunnel() {
138132
' \nnpm i ' +
139133
packageName
140134
);
141-
} else if (packageVersion !== curr_ver) {
135+
} else if (packageVersion !== response.jsonResponse.latest) {
142136
console.warn(
143137
"\nIt's seems you have older version of " +
144138
packageName +

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdatest/node-tunnel",
3-
"version": "3.0.3",
3+
"version": "3.0.5",
44
"description": "Nodejs bindings for LambdaTest Tunnel",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)