@dotcom-tool-kit/upload-assets-to-s3
Advanced tools
Comparing version 1.0.2-beta.3 to 1.0.2-beta.4
@@ -21,11 +21,2 @@ "use strict"; | ||
const key = path_1.default.posix.join(options.destination, basename); | ||
const params = { | ||
Bucket: '', | ||
Key: key, | ||
Body: fs.createReadStream(file), | ||
ACL: 'public-read', | ||
ContentType: `${type}; charset=utf-8`, | ||
ContentEncoding: encoding, | ||
CacheControl: options.cacheControl | ||
}; | ||
const bucketByEnv = process.env.NODE_ENV === 'branch' ? options.reviewBucket : options.prodBucket; | ||
@@ -32,0 +23,0 @@ let currentBucket = ''; |
{ | ||
"name": "@dotcom-tool-kit/upload-assets-to-s3", | ||
"version": "1.0.2-beta.3", | ||
"version": "1.0.2-beta.4", | ||
"description": "", | ||
@@ -13,5 +13,5 @@ "main": "lib", | ||
"dependencies": { | ||
"@dotcom-tool-kit/error": "^1.0.2-beta.3", | ||
"@dotcom-tool-kit/logger": "^1.0.2-beta.3", | ||
"@dotcom-tool-kit/types": "^1.0.2-beta.3", | ||
"@dotcom-tool-kit/error": "^1.0.2-beta.4", | ||
"@dotcom-tool-kit/logger": "^1.0.2-beta.4", | ||
"@dotcom-tool-kit/types": "^1.0.2-beta.4", | ||
"aws-sdk": "^2.901.0", | ||
@@ -18,0 +18,0 @@ "glob": "^7.1.6", |
Sorry, the diff of this file is not supported yet
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
7898
119