ssh_tunnel_proxy 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@ If a ngrok api key is provided the ngrok api endpoint method is invoked to obtai
6
6
  the tunnel. A list of port forwards is provided to the connect_api function and ports validated to restrict connections to system ports on the remote host to a set of pre-defined ports such as http,https. After establishing a ssh connection to the remote server, local proxy port forwards are opened. If the connection is interrupted then the ssh_connect method will attempt to re-establish the connection.
7
7
 
8
8
  Example code for electron_js:
9
- '''
9
+ ```js
10
10
  async function init_sshTunnelProxy(win) {
11
11
 
12
12
  const SSHTunnelProxy = require('ssh_tunnel_proxy');
@@ -38,4 +38,4 @@ async function init_sshTunnelProxy(win) {
38
38
  sshTunnelProxy.on('error',(...args) => win.webContents.send('error',...args));
39
39
 
40
40
  };
41
- '''
41
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ssh_tunnel_proxy",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "obtain ngrok host port from api and establish a ssh connection",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {