Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-cdk/aws-s3

Package Overview
Dependencies
Maintainers
4
Versions
288
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-cdk/aws-s3 - npm Package Compare versions

Comparing version 0.13.0 to 0.14.0

22

package.json
{
"name": "@aws-cdk/aws-s3",
"version": "0.13.0",
"version": "0.14.0",
"description": "CDK Constructs for AWS S3",

@@ -55,16 +55,16 @@ "main": "lib/index.js",

"devDependencies": {
"@aws-cdk/assert": "^0.13.0",
"cdk-build-tools": "^0.13.0",
"cdk-integ-tools": "^0.13.0",
"cfn2ts": "^0.13.0",
"pkglint": "^0.13.0"
"@aws-cdk/assert": "^0.14.0",
"cdk-build-tools": "^0.14.0",
"cdk-integ-tools": "^0.14.0",
"cfn2ts": "^0.14.0",
"pkglint": "^0.14.0"
},
"dependencies": {
"@aws-cdk/aws-codepipeline-api": "^0.13.0",
"@aws-cdk/aws-iam": "^0.13.0",
"@aws-cdk/aws-kms": "^0.13.0",
"@aws-cdk/aws-s3-notifications": "^0.13.0",
"@aws-cdk/cdk": "^0.13.0"
"@aws-cdk/aws-codepipeline-api": "^0.14.0",
"@aws-cdk/aws-iam": "^0.14.0",
"@aws-cdk/aws-kms": "^0.14.0",
"@aws-cdk/aws-s3-notifications": "^0.14.0",
"@aws-cdk/cdk": "^0.14.0"
},
"homepage": "https://github.com/awslabs/aws-cdk"
}

@@ -139,4 +139,3 @@ {

},
"/",
"*"
"/*"
]

@@ -187,4 +186,3 @@ ]

},
"/",
"*"
"/*"
]

@@ -207,2 +205,2 @@ ]

}
}
}

@@ -13,4 +13,3 @@ {

[
"https://",
"s3.",
"https://s3.",
{

@@ -39,4 +38,3 @@ "Ref": "AWS::Region"

[
"https://",
"s3.",
"https://s3.",
{

@@ -53,4 +51,3 @@ "Ref": "AWS::Region"

},
"/",
"myfolder/myfile.txt"
"/myfolder/myfile.txt"
]

@@ -64,2 +61,2 @@ ]

}
}
}

@@ -169,17 +169,7 @@ {

[
"arn",
":",
"arn:",
{
"Ref": "AWS::Partition"
},
":",
"iam",
":",
"",
":",
"aws",
":",
"policy",
"/",
"service-role/AWSLambdaBasicExecutionRole"
":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
]

@@ -274,2 +264,2 @@ ]

}
}
}

@@ -14,13 +14,5 @@ "use strict";

test.deepEqual(cdk.resolve(util_1.parseBucketArn({ bucketName })), { 'Fn::Join': ['',
['arn',
':',
['arn:',
{ Ref: 'AWS::Partition' },
':',
's3',
':',
'',
':',
'',
':',
'hello']] });
':s3:::hello']] });
test.done();

@@ -45,3 +37,3 @@ },

'undefined if cannot extract name from a non-string arn'(test) {
const bucketArn = new cdk.FnConcat('arn:aws:s3:::', 'my-bucket').toString();
const bucketArn = new cdk.FnConcat('arn:aws:s3:::', { Ref: 'my-bucket' }).toString();
test.deepEqual(cdk.resolve(util_1.parseBucketName({ bucketArn })), undefined);

@@ -67,2 +59,2 @@ test.done();

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC51dGlsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsidGVzdC51dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQ0FBcUM7QUFFckMsc0NBQThEO0FBRTlELGlCQUFTO0lBQ1AsY0FBYyxFQUFFO1FBQ2QsY0FBYyxDQUFDLElBQVU7WUFDdkIsTUFBTSxTQUFTLEdBQUcsZUFBZSxDQUFDO1lBQ2xDLElBQUksQ0FBQyxTQUFTLENBQUMscUJBQWMsQ0FBQyxFQUFFLFNBQVMsRUFBRSxDQUFDLEVBQUUsU0FBUyxDQUFDLENBQUM7WUFDekQsSUFBSSxDQUFDLElBQUksRUFBRSxDQUFDO1FBQ2QsQ0FBQztRQUVELDhCQUE4QixDQUFDLElBQVU7WUFDdkMsTUFBTSxVQUFVLE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tldEFybiA9ICdpbnZhbGlkLWFybic7XG4gICAgICB0ZXN0LnRocm93cygoKSA9PiBwYXJzZUJ1Y2tldE5hbWUoeyBidWNrZXRBcm4gfSksIC9BUk5zIG11c3QgaGF2ZSBhdCBsZWFzdCA2IGNvbXBvbmVudHMvKTtcbiAgICAgIHRlc3QuZG9uZSgpO1xuICAgIH0sXG5cbiAgICAnZmFpbHMgaWYgQVJOIGhhcyBwYXRoJyh0ZXN0OiBUZXN0KSB7XG4gICAgICBjb25zdCBidWNrZXRBcm4gPSAnYXJuOmF3czpzMzo6Om15LWJ1Y2tldC9wYXRoJztcbiAgICAgIHRlc3QudGhyb3dzKCgpID0+IHBhcnNlQnVja2V0TmFtZSh7IGJ1Y2tldEFybiB9KSwgL0J1Y2tldCBBUk4gbXVzdCBub3QgY29udGFpbiBhIHBhdGgvKTtcbiAgICAgIHRlc3QuZG9uZSgpO1xuICAgIH1cbiAgfSxcbn07XG4iXX0=

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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