zos-ssh-sftp
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -27,5 +27,7 @@ "use strict"; | ||
var logSSH = require('debug')('ZOS-SSH-SFTP:SSH'); // | ||
var logSSH = require('debug')('BORRAR_ZOS-SSH-SFTP:SSH'); | ||
var logEvent = require('debug')('ZOS-SSH-SFTP:EVENTS'); // | ||
var VALID_CONFIGURATION = { | ||
@@ -44,4 +46,10 @@ keepaliveInterval: true, | ||
mode: 511, | ||
/* | ||
chunkSize: 32768, | ||
concurrency: 64, | ||
*/ | ||
chunkSize: 3276, | ||
concurrency: 4, | ||
// | ||
step: function step(total_transferred, chunk, total) { | ||
@@ -122,2 +130,3 @@ log("Total Transferred: ".concat(total_transferred, " Chunk: ").concat(chunk) + " Total: ".concat(total)); | ||
try { | ||
// | ||
argSSHconn.sftp(function (err, sftpConn) { | ||
@@ -129,3 +138,14 @@ if (err) { | ||
} | ||
}.bind(this)); | ||
}.bind(this)); // | ||
argSSHconn.on('error', function (argErr) { | ||
log('ERROR:: getSftpConn: ', argErr, ';'); | ||
respRech(argErr); | ||
}.bind(this)).on('end', function () { | ||
log('...ON::END::getSftpConn... '); | ||
}.bind(this)).on('WRITE', function (reqID, handle, offset, data) { | ||
log('...ON::WRITE::getSftpConn...reqID: ', reqID, ' offset: ', offset, ';'); | ||
}.bind(this)).on('CLOSE', function (reqID) { | ||
log('...ON::CLOSE::getSftpConn...reqID: ', reqID); | ||
}.bind(this)); // | ||
} catch (errGSC) { | ||
@@ -132,0 +152,0 @@ log('...ERROR: ', errGSC); |
@@ -9,4 +9,5 @@ /* | ||
// | ||
const log = require('debug')('ZOS-SSH-SFTP:sshOperations') ; | ||
const logSSH = require('debug')('ZOS-SSH-SFTP:SSH') ; | ||
const log = require('debug')('ZOS-SSH-SFTP:sshOperations') ; | ||
const logSSH = require('debug')('BORRAR_ZOS-SSH-SFTP:SSH') ; | ||
const logEvent = require('debug')('ZOS-SSH-SFTP:EVENTS') ; | ||
// | ||
@@ -16,4 +17,9 @@ const VALID_CONFIGURATION = {keepaliveInterval:true, keepaliveCountMax: true, host: true, port: true, username: true, debug: true, privateKey: true, passphrase: true, password: true} ; | ||
mode: 0o777, | ||
/* | ||
chunkSize: 32768, | ||
concurrency: 64, | ||
*/ | ||
chunkSize: 3276, | ||
concurrency: 4, | ||
// | ||
step: function(total_transferred, chunk, total) { | ||
@@ -95,2 +101,3 @@ log( | ||
try { | ||
// | ||
argSSHconn.sftp(function(err, sftpConn ) { | ||
@@ -103,2 +110,18 @@ if (err) { | ||
}.bind(this)) ; | ||
// | ||
argSSHconn | ||
.on('error',function(argErr){ | ||
log('ERROR:: getSftpConn: ',argErr,';'); | ||
respRech(argErr) ; | ||
}.bind(this)) | ||
.on('end',function(){ | ||
log('...ON::END::getSftpConn... '); | ||
}.bind(this)) | ||
.on('WRITE',function(reqID, handle, offset, data){ | ||
log('...ON::WRITE::getSftpConn...reqID: ',reqID,' offset: ',offset,';'); | ||
}.bind(this)) | ||
.on('CLOSE',function(reqID){ | ||
log('...ON::CLOSE::getSftpConn...reqID: ',reqID); | ||
}.bind(this)) | ||
// | ||
} catch(errGSC){ | ||
@@ -105,0 +128,0 @@ log('...ERROR: ',errGSC) ; |
{ | ||
"name": "zos-ssh-sftp", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "file transmition and JCL submission in z/OS using ssh / sftp", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
1746834
12
840