sftp-to-s3
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -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": { |
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
6457
148