buddy-tunnel
Advanced tools
Comparing version 1.4.11-dev to 1.4.13-dev
{ | ||
"name": "buddy-tunnel", | ||
"preferGlobal": false, | ||
"version": "1.4.11-dev", | ||
"version": "1.4.13-dev", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
@@ -32,3 +32,5 @@ const { | ||
const newAgent = command.agentStatus && command.agentStatus.version !== command.latestVersion; | ||
if (newCli && newAgent) { | ||
if (isDocker() && newCli) { | ||
Output.newCliDockerVersion(command.latestVersion); | ||
}else if (newCli && newAgent) { | ||
Output.newCliAgentVersion(command.latestVersion); | ||
@@ -35,0 +37,0 @@ } else if (newCli) { |
@@ -12,2 +12,3 @@ const TerminalKit = require('terminal-kit/lib/termkit-no-lazy-require'); | ||
const OutputNoninteractiveAgentTunnels = require('./output/noninteractive/agent/tunnels.js'); | ||
const { TXT_NEW_CLI_DOCKER_VERSION } = require('./texts'); | ||
@@ -76,2 +77,6 @@ const terminal = TerminalKit.terminal; | ||
static newCliDockerVersion(version) { | ||
terminal.gray(TXT_NEW_CLI_DOCKER_VERSION(version)); | ||
} | ||
static newCliAgentVersion(version) { | ||
@@ -78,0 +83,0 @@ terminal.gray(TXT_NEW_CLI_AGENT_VERSION(version)); |
@@ -117,2 +117,3 @@ const ERR_AGENT_NOT_REGISTERED = 'Agent not registered. Exiting...'; | ||
const TXT_NEW_CLI_DOCKER_VERSION = (version) => `There is a new CLI Docker image version (${version})\n\n`; | ||
const TXT_NEW_CLI_VERSION = (version) => `There is a new CLI version (${version})\n\n`; | ||
@@ -379,2 +380,3 @@ const TXT_NEW_AGENT_VERSION = (version) => `Agent needs update. To update it to version ${version} run:\n\`buddy-tunnel agent update\`\n\n`; | ||
TXT_ENABLING_AGENT, | ||
TXT_NEW_CLI_DOCKER_VERSION, | ||
TXT_NEW_CLI_VERSION, | ||
@@ -381,0 +383,0 @@ TXT_NEW_AGENT_VERSION, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
321392
7464