inspector-proxy
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -41,4 +41,4 @@ #! /usr/bin/env node | ||
return proxy.start({ proxyPort, debugPort }) | ||
.then(({ url }) => { | ||
console.log(`\nproxy url: ${url}\n`); | ||
.then(() => { | ||
console.log(`\nproxy url: ${proxy.url}\n`); | ||
}); | ||
@@ -81,4 +81,4 @@ } | ||
proxy.start({ proxyPort, debugPort: port }) | ||
.then(({ url }) => { | ||
console.log(`\nproxy url: ${url}\n`); | ||
.then(() => { | ||
console.log(`\nproxy url: ${proxy.url}\n`); | ||
}); | ||
@@ -85,0 +85,0 @@ }); |
@@ -22,2 +22,3 @@ 'use strict'; | ||
this.proxy = new TCPProxy({ port }); | ||
this.url = `${linkPrefix}${port}/${KEY}`; | ||
this.proxy.on('close', () => { | ||
@@ -62,7 +63,2 @@ clearTimeout(this.timeout); | ||
}); | ||
return { | ||
proxy: this.proxy, | ||
url: `${linkPrefix}${this.proxy.port}/${KEY}`, | ||
}; | ||
}); | ||
@@ -69,0 +65,0 @@ } |
{ | ||
"name": "inspector-proxy", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "node inspector proxy", | ||
@@ -11,3 +11,2 @@ "bin": { | ||
"co": "^4.6.0", | ||
"opn": "^5.1.0", | ||
"tcp-proxy.js": "^1.0.5", | ||
@@ -14,0 +13,0 @@ "urllib": "^2.24.0" |
@@ -72,4 +72,4 @@ # inspector-proxy | ||
proxy.start({ debugPort: port }) | ||
.then(({ url }) => { | ||
console.log(`\nproxy url: ${url}\n`); | ||
.then(() => { | ||
console.log(`\nproxy url: ${proxy.url}\n`); | ||
}); | ||
@@ -76,0 +76,0 @@ }); |
4
8281
164
- Removedopn@^5.1.0
- Removedis-wsl@1.1.0(transitive)
- Removedopn@5.5.0(transitive)