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.1 to 0.2.2

2

lib/agent.js

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

RET_ERR_BADLEN: new Error('pagent.exe did not get expected input payload')
}, EXEPATH = path.resolve(__dirname, '..', 'util/pagent.exe')
}, EXEPATH = path.resolve(__dirname, '..', 'util/pagent.exe');

@@ -205,0 +205,0 @@ function PageantSock() {

@@ -238,3 +238,3 @@ var EventEmitter = require('events').EventEmitter,

cb && cb(err);
else
else
cb && cb(undefined, length);

@@ -281,10 +281,10 @@ });

self.stat(remotepath, function(err, attrs) {
self.stat(remotePath, function(err, attrs) {
if (err) return onerror(err);
fsize = attrs.size;
self.open(remotepath, 'r', function(err, remotefd) {
self.open(remotePath, 'r', function(err, remotefd) {
if (err) return onerror(err);
rfd = remotefd;
fs.open(localpath, 'w', function(err, localfd) {
fs.open(localPath, 'w', function(err, localfd) {
if (err) return onerror(err);

@@ -705,3 +705,3 @@ lfd = localfd;

SFTP.prototype.futimes = function(handle, atime, mtime, cb) {
return this.fsetstat(buf, {
return this.fsetstat(handle, {
atime: toUnixTimestamp(atime),

@@ -720,3 +720,3 @@ mtime: toUnixTimestamp(mtime)

SFTP.prototype.fchown = function(handle, uid, gid, cb) {
return this.fsetstat(buf, {
return this.fsetstat(handle, {
uid: uid,

@@ -735,3 +735,3 @@ gid: gid

SFTP.prototype.fchmod = function(handle, mode, cb) {
return this.fsetstat(buf, {
return this.fsetstat(handle, {
permissions: mode

@@ -1403,3 +1403,3 @@ }, cb);

if (typeof opts.start !== 'number')
throw TypeError('start must be a Number');
throw new TypeError('start must be a Number');

@@ -1409,3 +1409,3 @@ if (opts.end === undefined)

else if (typeof opts.end !== 'number')
throw TypeError('end must be a Number');
throw new TypeError('end must be a Number');
else

@@ -1605,3 +1605,3 @@ this.end = opts.end;

if (typeof opts.start !== 'number')
throw TypeError('start must be a Number');
throw new TypeError('start must be a Number');
if (opts.start < 0)

@@ -1608,0 +1608,0 @@ throw new Error('start must be >= zero');

{ "name": "ssh2",
"version": "0.2.1",
"version": "0.2.2",
"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