Socket
Socket
Sign inDemoInstall

ssh2

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssh2 - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

21

lib/agent.js

@@ -159,3 +159,3 @@ var Socket = require('net').Socket,

}
function onclose(had_err) {
function onclose() {
if (error)

@@ -196,10 +196,9 @@ cb(error);

var ERROR = {
RET_ERR_BADARGS: new Error('Invalid pagent.exe arguments'),
RET_ERR_UNAVAILABLE: new Error('Pageant is not running'),
RET_ERR_NOMAP: new Error('pagent.exe could not create an mmap'),
RET_ERR_BINSTDIN: new Error('pagent.exe could not set mode for stdin'),
RET_ERR_BINSTDOUT: new Error('pagent.exe could not set mode for stdout'),
RET_ERR_BADLEN: new Error('pagent.exe did not get expected input payload')
}, EXEPATH = path.resolve(__dirname, '..', 'util/pagent.exe');
var ERROR = {}, EXEPATH = path.resolve(__dirname, '..', 'util/pagent.exe');
ERROR[RET_ERR_BADARGS] = new Error('Invalid pagent.exe arguments');
ERROR[RET_ERR_UNAVAILABLE] = new Error('Pageant is not running');
ERROR[RET_ERR_NOMAP] = new Error('pagent.exe could not create an mmap');
ERROR[RET_ERR_BINSTDIN] = new Error('pagent.exe could not set mode for stdin');
ERROR[RET_ERR_BINSTDOUT] = new Error('pagent.exe could not set mode for stdout');
ERROR[RET_ERR_BADLEN] = new Error('pagent.exe did not get expected input payload');

@@ -223,3 +222,3 @@ function PageantSock() {

});
proc.once('exit', function(code, signal) {
proc.once('exit', function(code) {
self.proc = undefined;

@@ -238,5 +237,5 @@ if (ERROR[code] && !hadError) {

};
PageantSock.prototype.connect = function(noop) {
PageantSock.prototype.connect = function() {
this.emit('connect');
};
}

@@ -43,4 +43,4 @@ // TODO: * Filter control codes from strings

var i = start, buffer, skipDecrypt = false, j, info, buf, lang, message,
self = this, p = i;
var i = start, buffer, skipDecrypt = false, buf, self = this, p = i;
while (true) {

@@ -289,3 +289,3 @@ if (this._expectType !== undefined) {

Parser.prototype.parseUserAuthMisc = function() {
var payload = this._payload;
var payload = this._payload, message, lang;

@@ -344,3 +344,4 @@ if (this._authMethod === 'password') {

Parser.prototype.parseChRequest = function() {
var payload = this._payload;
var payload = this._payload,
info;

@@ -387,3 +388,4 @@ var recipient = payload.readUInt32BE(1, true),

Parser.prototype.parsePacket = function() {
var payload = this._payload;
var payload = this._payload, lang, message, info;
if (++this._seqno > MAX_SEQNO)

@@ -394,2 +396,3 @@ this._seqno = 0;

var type = payload[0];
if (type === MESSAGE.IGNORE) {

@@ -396,0 +399,0 @@ /*

@@ -264,7 +264,8 @@ var EventEmitter = require('events').EventEmitter,

if (srcfd || dstfd) {
cbfinal = function(error) {
cbfinal = function() {
if (--left === 0)
cb(err);
};
}
} else
cb(err);
if (srcfd) {

@@ -292,2 +293,3 @@ ++left;

if (fsize <= 0) return cb();
function onread(err, nb, data, dstpos, datapos) {

@@ -398,3 +400,3 @@ if (err) return onerror(err);

if (err) {
return self.close(handle, function(err2) {
return self.close(handle, function() {
return cb(err);

@@ -485,3 +487,3 @@ });

SFTP.prototype.exists = function(path, cb) {
this.stat(path, function(err, attrs) {
this.stat(path, function(err) {
cb && cb(err ? false : true);

@@ -824,3 +826,3 @@ });

if (err) {
self.close(handle, function(err2) {
self.close(handle, function() {
cb && cb(err);

@@ -827,0 +829,0 @@ });

@@ -1,6 +0,3 @@

var constants = process.binding('constants');
module.exports = Stats;
function Stats() {

@@ -47,1 +44,3 @@ this.mode = undefined;

};
module.exports = Stats;
{ "name": "ssh2",
"version": "0.2.7",
"version": "0.2.8",
"author": "Brian White <mscdex@mscdex.net>",

@@ -4,0 +4,0 @@ "description": "An SSH2 client module written in pure JavaScript for node.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc