Skip to content

Commit 6cc0b23

Browse files
committed
Upgrade version for intrusion
1 parent 3119c1d commit 6cc0b23

3 files changed

Lines changed: 147 additions & 78 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simplify-sdk",
3-
"version": "0.1.57",
3+
"version": "0.1.58",
44
"description": "Simplify Framework SDK library for NodeJS",
55
"main": "simplify.js",
66
"dependencies": {

provider.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,18 @@ module.exports = {
3333
} else {
3434
AWS.config.update({ credentials: credentials });
3535
console.log(`${CBEGIN}Simplify${CRESET} | AWSProvider-Credentials: ${AWS.config.credentials.profile ? AWS.config.credentials.profile : 'default'}`)
36-
s3BucketParams.Bucket = (config.Bucket || {}).Name
37-
if (config.Region != 'us-east-1') {
38-
s3BucketParams.CreateBucketConfiguration = {
39-
LocationConstraint: config.Region
36+
if (config.Bucket) {
37+
s3BucketParams.Bucket = (config.Bucket || {}).Name
38+
s3BucketParams.ACL = 'private'
39+
if (config.Region != 'us-east-1') {
40+
s3BucketParams.CreateBucketConfiguration = {
41+
LocationConstraint: config.Region
42+
}
43+
}
44+
if (config.ServerSideEncryption && config.SSEKMSKeyId) {
45+
s3BucketParams.ServerSideEncryption = config.ServerSideEncryption
46+
s3BucketParams.SSEKMSKeyId = config.SSEKMSKeyId
4047
}
41-
}
42-
if (config.ServerSideEncryption && config.SSEKMSKeyId) {
43-
s3BucketParams.ServerSideEncryption = config.ServerSideEncryption
44-
s3BucketParams.SSEKMSKeyId = config.SSEKMSKeyId
4548
}
4649
awsconfig = config
4750
resolve(AWS.config.credentials)

0 commit comments

Comments
 (0)