robbie-cahill / tunnelmole-client

Tunnelmole - Connect to local servers from anywhere
MIT License
1.29k stars 80 forks source link

Return tunnel URL from CJS shim #23

Closed mcheshkov closed 1 year ago

mcheshkov commented 1 year ago

Without this return one cannot get tunnel URL when using CJS.

This snippet will log undefined

const tunnelmole = require('tunnelmole/cjs');
tunnelmole({ port: 8888 }).then(url => console.log("tunnelmole url: ", url);)
robbie-cahill commented 1 year ago

Nice catch, i've merged in your fix.