Comparing version 0.2.1 to 0.2.2
@@ -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
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
261388