Socket
Socket
Sign inDemoInstall

s3-asset-uploader

Package Overview
Dependencies
5
Maintainers
6
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.0 to 2.4.1

16

index.js

@@ -34,4 +34,4 @@ /**

* @typedef {Object} S3SyncConfig
* @property {string} key - your AWS access key ID
* @property {string} secret - your AWS secret access key
* @property {string} [key] - your AWS access key ID
* @property {string} [secret] - your AWS secret access key
* @property {AWS.S3.BucketName} bucket - the name of the destination AWS S3 bucket

@@ -93,6 +93,10 @@ */

constructor(config, options) {
this.client = new AWS.S3({
accessKeyId: config.key,
secretAccessKey: config.secret
})
let s3ClientConfiguration = {}
if (config.key && config.secret) {
s3ClientConfiguration = {
accessKeyId: config.key,
secretAccessKey: config.secret
}
}
this.client = new AWS.S3(s3ClientConfiguration)
this.bucket = config.bucket

@@ -99,0 +103,0 @@ this.path = fs.realpathSync(options.path)

{
"name": "s3-asset-uploader",
"version": "2.4.0",
"version": "2.4.1",
"description": "AWS S3 Asset Uploader",

@@ -5,0 +5,0 @@ "main": "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