tunnelmole
Advanced tools
Comparing version 2.3.6 to 2.3.7
@@ -11,5 +11,6 @@ import { eventHandler, URL_ASSIGNED } from '../events/event-handler.js'; | ||
const destinationUrl = `http://localhost:${port}`; | ||
const encodedHttpsUrl = Buffer.from(httpsUrl).toString('base64'); | ||
if (process.env.TUNNELMOLE_QUIET_MODE !== '1') { | ||
console.info('='.repeat(process.stdout.columns)); | ||
console.info('Your URLs are below. Always use HTTPs for the best security'); | ||
console.info('Your Tunnelmole Public URLs are below and are accessible internet wide. Always use HTTPs for the best security'); | ||
console.info(''); | ||
@@ -20,4 +21,14 @@ console.info(`${chalk.greenBright.bold(httpsUrl)} ⟶ ${chalk.bold(destinationUrl)}`); | ||
} | ||
console.info(chalk.bold('\nShare your creation with the world!')); | ||
printSharingNetwork('Reddit', 'reddit', encodedHttpsUrl); | ||
printSharingNetwork('Hacker News', 'hackernews', encodedHttpsUrl); | ||
printSharingNetwork('BlueSky', 'bluesky', encodedHttpsUrl); | ||
printSharingNetwork('X (Twitter)', 'twitter', encodedHttpsUrl); | ||
printSharingNetwork('LinkedIn', 'linkedin', encodedHttpsUrl); | ||
eventHandler.emit(URL_ASSIGNED, httpsUrl); | ||
} | ||
const printSharingNetwork = (displayNetworkName, network, encodedHttpsUrl) => { | ||
const shareUrl = `https://dashboard.tunnelmole.com/share/${network}/${encodedHttpsUrl}`; | ||
console.info(`${displayNetworkName}: ${chalk.greenBright.bold(shareUrl)}`); | ||
}; | ||
//# sourceMappingURL=hostname-assigned.js.map |
@@ -1,2 +0,2 @@ | ||
declare const version = "2.3.6"; | ||
declare const version = "2.3.7"; | ||
export { version }; |
@@ -1,3 +0,3 @@ | ||
const version = '2.3.6'; | ||
const version = '2.3.7'; | ||
export { version }; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "tunnelmole", | ||
"version": "2.3.6", | ||
"version": "2.3.7", | ||
"description": "Tunnelmole, an open source ngrok alternative. Instant public URLs for any http/https based application. Available as a command line application or as an NPM dependency for your code. Stable and maintained. Good test coverage. Works behind firewalls", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -18,6 +18,8 @@ import HostnameAssignedMessage from '../messages/hostname-assigned-message.js'; | ||
const destinationUrl = `http://localhost:${port}`; | ||
const encodedHttpsUrl = Buffer.from(httpsUrl).toString('base64'); | ||
if (process.env.TUNNELMOLE_QUIET_MODE !== '1') { | ||
console.info('='.repeat(process.stdout.columns)); | ||
console.info('Your URLs are below. Always use HTTPs for the best security'); | ||
console.info('Your Tunnelmole Public URLs are below and are accessible internet wide. Always use HTTPs for the best security'); | ||
console.info(''); | ||
@@ -28,4 +30,17 @@ console.info(`${chalk.greenBright.bold(httpsUrl)} ⟶ ${chalk.bold(destinationUrl)}`); | ||
} | ||
console.info(chalk.bold('\nShare your creation with the world!')); | ||
printSharingNetwork('Reddit', 'reddit', encodedHttpsUrl); | ||
printSharingNetwork('Hacker News', 'hackernews', encodedHttpsUrl); | ||
printSharingNetwork('BlueSky', 'bluesky', encodedHttpsUrl); | ||
printSharingNetwork('X (Twitter)', 'twitter', encodedHttpsUrl); | ||
printSharingNetwork('LinkedIn', 'linkedin', encodedHttpsUrl); | ||
eventHandler.emit(URL_ASSIGNED, httpsUrl); | ||
} | ||
const printSharingNetwork = (displayNetworkName: string, network: string, encodedHttpsUrl: string) => { | ||
const shareUrl = `https://dashboard.tunnelmole.com/share/${network}/${encodedHttpsUrl}`; | ||
console.info(`${displayNetworkName}: ${chalk.greenBright.bold(shareUrl)}`); | ||
} |
Sorry, the diff of this file is not supported yet
116046
1752