browserstacktunnel-wrapper
Advanced tools
Comparing version 1.4.2 to 2.0.0
{ | ||
"name": "browserstacktunnel-wrapper", | ||
"description": "A Node.js wrapper for the BrowserStack java tunnel client ", | ||
"version": "1.4.2", | ||
"version": "2.0.0", | ||
"homepage": "https://github.com/pghalliday/node-BrowserStackTunnel.git", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -43,39 +43,39 @@ var util = require('util'), | ||
}); | ||
params.push(hosts); | ||
params.push('--only', hosts); | ||
} | ||
if (options.localIdentifier) { | ||
params.push('-localIdentifier', options.localIdentifier); | ||
params.push('--local-identifier', options.localIdentifier); | ||
} | ||
if (options.v) { | ||
params.push('-v'); | ||
params.push('--verbose'); | ||
} | ||
if (options.force) { | ||
params.push('-force'); | ||
params.push('--force'); | ||
} | ||
if (options.forcelocal) { | ||
params.push('-forcelocal'); | ||
params.push('--force-local'); | ||
} | ||
if (options.onlyAutomate) { | ||
params.push('-onlyAutomate'); | ||
params.push('--only-automate'); | ||
} | ||
if (options.proxyHost) { | ||
params.push('-proxyHost', options.proxyHost); | ||
params.push('--proxy-host', options.proxyHost); | ||
} | ||
if (options.proxyPort) { | ||
params.push('-proxyPort', options.proxyPort); | ||
params.push('--proxy-port', options.proxyPort); | ||
} | ||
if (options.proxyUser) { | ||
params.push('-proxyUser', options.proxyUser); | ||
params.push('--proxy-user', options.proxyUser); | ||
} | ||
if (options.proxyPass) { | ||
params.push('-proxyPass', options.proxyPass); | ||
params.push('--proxy-pass', options.proxyPass); | ||
} | ||
@@ -82,0 +82,0 @@ |
@@ -69,3 +69,3 @@ var expect = require('expect.js'), | ||
}); | ||
it('should error if stopped before started', function (done) { | ||
@@ -86,3 +86,3 @@ var browserStackTunnel = new bs.BrowserStackTunnel({ | ||
}); | ||
it('should error if no server listening on the specified host and port', function (done) { | ||
@@ -127,3 +127,3 @@ var browserStackTunnel = new bs.BrowserStackTunnel({ | ||
}); | ||
it('should error if started when already running', function (done) { | ||
@@ -154,3 +154,3 @@ var browserStackTunnel = new bs.BrowserStackTunnel({ | ||
}); | ||
it('should error if started when another instance is already running', function (done) { | ||
@@ -249,2 +249,3 @@ var browserStackTunnel1 = new bs.BrowserStackTunnel({ | ||
KEY, | ||
'--only', | ||
HOST_NAME + ',' + PORT + ',' + SSL_FLAG + ',' + HOST_NAME2 + ',' + PORT2 + ',' + SSL_FLAG2 | ||
@@ -309,2 +310,3 @@ ] | ||
KEY, | ||
'--only', | ||
HOST_NAME + ',' + PORT + ',' + SSL_FLAG | ||
@@ -343,4 +345,5 @@ ] | ||
KEY, | ||
'--only', | ||
HOST_NAME + ',' + PORT + ',' + SSL_FLAG, | ||
'-localIdentifier', | ||
'--local-identifier', | ||
'my_tunnel' | ||
@@ -379,4 +382,5 @@ ] | ||
KEY, | ||
'--only', | ||
HOST_NAME + ',' + PORT + ',' + SSL_FLAG, | ||
'-v' | ||
'--verbose' | ||
] | ||
@@ -414,4 +418,5 @@ ); | ||
KEY, | ||
'--only', | ||
HOST_NAME + ',' + PORT + ',' + SSL_FLAG, | ||
'-force' | ||
'--force' | ||
] | ||
@@ -449,4 +454,5 @@ ); | ||
KEY, | ||
'--only', | ||
HOST_NAME + ',' + PORT + ',' + SSL_FLAG, | ||
'-forcelocal' | ||
'--force-local' | ||
] | ||
@@ -484,4 +490,5 @@ ); | ||
KEY, | ||
'--only', | ||
HOST_NAME + ',' + PORT + ',' + SSL_FLAG, | ||
'-onlyAutomate' | ||
'--only-automate' | ||
] | ||
@@ -522,10 +529,11 @@ ); | ||
KEY, | ||
'--only', | ||
HOST_NAME + ',' + PORT + ',' + SSL_FLAG, | ||
'-proxyHost', | ||
'--proxy-host', | ||
PROXY_HOST, | ||
'-proxyPort', | ||
'--proxy-port', | ||
PROXY_PORT, | ||
'-proxyUser', | ||
'--proxy-user', | ||
PROXY_USER, | ||
'-proxyPass', | ||
'--proxy-pass', | ||
PROXY_PASS | ||
@@ -625,2 +633,3 @@ ] | ||
KEY, | ||
'--only', | ||
HOST_NAME + ',' + PORT + ',' + SSL_FLAG | ||
@@ -721,2 +730,3 @@ ] | ||
KEY, | ||
'--only', | ||
HOST_NAME + ',' + PORT + ',' + SSL_FLAG | ||
@@ -740,3 +750,3 @@ ] | ||
}); | ||
it('should download new binary if binary is not present', function (done) { | ||
@@ -818,2 +828,3 @@ var browserStackTunnel = new bs.BrowserStackTunnel({ | ||
KEY, | ||
'--only', | ||
HOST_NAME + ',' + PORT + ',' + SSL_FLAG | ||
@@ -914,2 +925,3 @@ ] | ||
KEY, | ||
'--only', | ||
HOST_NAME + ',' + PORT + ',' + SSL_FLAG | ||
@@ -931,2 +943,2 @@ ] | ||
}); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
49977
1339