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

arc-s3-bucket

Package Overview
Dependencies
Maintainers
6
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arc-s3-bucket - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

22

index.js

@@ -12,12 +12,19 @@ /**

cloudformation.Resources.ArcS3Bucket = {
Type: 'AWS::S3::Bucket'
Type: 'AWS::S3::Bucket',
Properties: {}
};
if (arc.s3[0] === 'versioning') {
cloudformation.Resources.ArcS3Bucket.Properties = {
VersioningConfiguration: {
Status: 'Enabled'
}
if (arc.s3.includes('versioning')) {
cloudformation.Resources.ArcS3Bucket.Properties.VersioningConfiguration = {
Status: 'Enabled'
};
}
if (arc.s3.includes('cors')) {
cloudformation.Resources.ArcS3Bucket.Properties.CorsConfiguration = {
CorsRules: [{
AllowedOrigins: ['*'],
AllowedHeaders: ['*'],
AllowedMethods: ['GET', 'POST', 'HEAD'],
}]
};
}
Object.entries(cloudformation.Resources).forEach(([key, value]) => {

@@ -51,4 +58,3 @@ if (value.Type && value.Type === 'AWS::Serverless::Function') {

};
return cloudformation;
};
{
"name": "arc-s3-bucket",
"version": "2.1.0",
"version": "2.2.0",
"description": "arc macro for making s3 buckets",

@@ -5,0 +5,0 @@ "main": "index.js",

{
"AWSTemplateFormatVersion": "2010-09-09",
"Transform": "AWS::Serverless-2016-10-31",
"Description": "Exported by architect/package@1.0.54 on 2020-03-31T03:52:11.068Z",
"Description": "Exported by architect/package@1.0.54 on 2020-04-02T16:41:02.958Z",
"Resources": {

@@ -223,7 +223,3 @@ "ArcS3Bucket0": {

"Type": "AWS::S3::Bucket",
"Properties": {
"VersioningConfiguration": {
"Status": "Enabled"
}
}
"Properties": {}
}

@@ -230,0 +226,0 @@ },

@@ -12,15 +12,19 @@ /**

cloudformation.Resources.ArcS3Bucket = {
Type: 'AWS::S3::Bucket'
Type: 'AWS::S3::Bucket',
Properties: {}
};
console.log(arc.s3);
if (arc.s3[0] === 'versioning') {
cloudformation.Resources.ArcS3Bucket.Properties = {
VersioningConfiguration: {
Status: 'Enabled'
}
if (arc.s3.includes('versioning')) {
cloudformation.Resources.ArcS3Bucket.Properties.VersioningConfiguration = {
Status: 'Enabled'
};
}
console.log('****');
console.log('****');
console.log(cloudformation.Resources.ArcS3Bucket);
if (arc.s3.includes('cors')) {
cloudformation.Resources.ArcS3Bucket.Properties.CorsConfiguration = {
CorsRules: [{
AllowedOrigins: ['*'],
AllowedHeaders: ['*'],
AllowedMethods: ['GET', 'POST', 'HEAD'],
}]
};
}
Object.entries(cloudformation.Resources).forEach(([key, value]) => {

@@ -54,4 +58,3 @@ if (value.Type && value.Type === 'AWS::Serverless::Function') {

};
return cloudformation;
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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