Socket
Socket
Sign inDemoInstall

sftp-to-s3

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sftp-to-s3 - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

14

lib/uploadToS3.js

@@ -5,3 +5,3 @@ var AWS = require('aws-sdk')

function putBatch(config, files) {
var s3 = new AWS.S3(config);
var s3 = new AWS.S3(config.aws);
// Make all the putObject calls immediately

@@ -12,4 +12,4 @@ // Will return rejected promise if any requests fail

var params = {
Bucket: config.bucket,
Key: file.key,
Bucket: config.aws.bucket,
Key: file.key.replace(config.fileDownloadDir, ""),
Body: file.data.toString()

@@ -23,7 +23,7 @@ };

function put (config, file) {
var s3 = new AWS.S3(config);
var s3 = new AWS.S3(config.aws);
var params = {
Bucket: config.bucket,
Key: file.key,
Bucket: config.aws.bucket,
Key: file.key.replace(config.fileDownloadDir, ""),
Body: file.data.toString()

@@ -38,2 +38,2 @@ };

put: put
}
}
{
"name": "sftp-to-s3",
"version": "1.0.7",
"version": "1.0.8",
"description": "library to upload files from sftp server to aws s3",

@@ -28,3 +28,3 @@ "main": "index.js",

"chai": "^3.5.0",
"sinon": "^2.0.0"
"sinon": "^2.2.0"
},

@@ -31,0 +31,0 @@ "dependencies": {

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