Comparing version 1.1.0 to 1.2.0
12
index.js
@@ -25,6 +25,6 @@ 'use strict'; | ||
__constructor: function (opts) { | ||
this._host = opts.host; | ||
this._port = this._generateRandomPort(opts.ports); | ||
this.host = opts.host; | ||
this.port = this._generateRandomPort(opts.ports); | ||
this._user = opts.user; | ||
this.proxyHost = util.format('%s:%d', this._host, this._port); | ||
this.proxyHost = util.format('%s:%d', this.host, this.port); | ||
this.proxyUrl = this.proxyHost; // deprecated, use proxyHost | ||
@@ -87,3 +87,3 @@ this._localPort = opts.localport; | ||
_this._tunnel.kill('SIGKILL'); | ||
return _this._closeTunnel(_this._host, -1); | ||
return _this._closeTunnel(_this.host, -1); | ||
}); | ||
@@ -112,6 +112,6 @@ }, | ||
return [ | ||
util.format('-R:%d:localhost:%d', this._port, this._localPort), | ||
util.format('-R:%d:localhost:%d', this.port, this._localPort), | ||
'-N', | ||
'-v', | ||
(this._user ? this._user + '@' : '') + this._host | ||
(this._user ? this._user + '@' : '') + this.host | ||
]; | ||
@@ -118,0 +118,0 @@ }, |
{ | ||
"name": "ssh-tun", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Module for establishing ssh tunnel", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
17072
9
2