Socket
Socket
Sign inDemoInstall

zos-ssh-sftp

Package Overview
Dependencies
7
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.5 to 1.0.6

testBig.txt

24

dist/sshOperations.js

@@ -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) ;

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc