telnet-client
Advanced tools
Comparing version 0.9.4 to 0.10.0
@@ -261,3 +261,8 @@ // Node.js Telnet client | ||
// remove prompt | ||
if (telnetObj.stripShellPrompt) telnetObj.cmdOutput.pop() | ||
if (telnetObj.stripShellPrompt) { | ||
telnetObj.cmdOutput.pop() | ||
// add a blank line so that command output | ||
// maintains the trailing new line | ||
telnetObj.cmdOutput.push(''); | ||
} | ||
@@ -264,0 +269,0 @@ telnetObj.emit('responseready') |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "0.9.4", | ||
"version": "0.10.0", | ||
"main": "./lib/telnet-client.js", | ||
@@ -14,3 +14,3 @@ "engine": "node >= 0.10.29", | ||
"dependencies": { | ||
"bluebird": "3.0.5" | ||
"bluebird": "3.4.x" | ||
}, | ||
@@ -17,0 +17,0 @@ "devDependencies": { |
@@ -33,3 +33,3 @@ var telnet = process.env.NODETELNETCLIENT_COV | ||
host: '127.0.0.1', | ||
port: 2323 //not using 23 is a service port could need sudo | ||
port: 2323 // not using 23, as that one could require sudo | ||
}) | ||
@@ -36,0 +36,0 @@ |
@@ -47,3 +47,3 @@ var telnet = process.env.NODETELNETCLIENT_COV | ||
test.strictEqual(resp, '23:14 up 1 day, 21:50, 6 users, load averages: 1.41 1.43 1.41') | ||
test.strictEqual(resp, '23:14 up 1 day, 21:50, 6 users, load averages: 1.41 1.43 1.41\n') | ||
test.done() | ||
@@ -70,3 +70,3 @@ }) | ||
test.strictEqual(resp, '23:14 up 1 day, 21:50, 6 users, load averages: 1.41 1.43 1.41') | ||
test.strictEqual(resp, '23:14 up 1 day, 21:50, 6 users, load averages: 1.41 1.43 1.41\n') | ||
test.done() | ||
@@ -73,0 +73,0 @@ }) |
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
126877
12
886
6
+ Addedbluebird@3.4.7(transitive)
- Removedbluebird@3.0.5(transitive)
Updatedbluebird@3.4.x