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

serverless-default-aws-resource-attributes

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-default-aws-resource-attributes - npm Package Compare versions

Comparing version 0.0.5 to 0.1.0

samples/basic/handler.js

8

index.js

@@ -10,5 +10,5 @@ 'use strict';

this.provider = serverless.getProvider('aws');
this.serverless = serverless.service;
this.service = serverless.service;
this.hooks = {
'before:package:finalize': this.addDefaults.bind(this)
'aws:package:finalize:mergeCustomProviderResources': this.addDefaults.bind(this)
};

@@ -18,3 +18,3 @@ }

getDefaults() {
return this.serverless.custom.defaultAwsAttributes || {};
return this.service.custom.defaultAwsAttributes || {};
}

@@ -37,3 +37,3 @@

const resources = this.serverless.resources.Resources;
const resources = this.service.provider.compiledCloudFormationTemplate.Resources;

@@ -40,0 +40,0 @@ for(const logicalId of Object.keys(resources)) {

{
"name": "serverless-default-aws-resource-attributes",
"version": "0.0.5",
"version": "0.1.0",
"description": "Set default attributes a given CloudFormation resource should have based on type",

@@ -9,3 +9,5 @@ "main": "index.js",

"deploy": "publish",
"test": "nyc mocha test/**.js"
"test": "npm run test:unit",
"test:samples": "mocha test/samples/**.js",
"test:unit": "nyc mocha test/unit/**.js"
},

@@ -29,2 +31,3 @@ "repository": {

"chai": "^4.3.4",
"cross-spawn": "^7.0.3",
"mocha": "^9.1.3",

@@ -31,0 +34,0 @@ "nyc": "^15.1.0",

@@ -10,2 +10,6 @@ [![CircleCI](https://circleci.com/gh/neverendingqs/serverless-default-aws-resource-attributes.svg?style=svg)](https://circleci.com/gh/neverendingqs/serverless-default-aws-resource-attributes)

This plugin **affects resources generated by Serverless**.
For example, any default attributes defined for S3 buckets will be applied to the Serverless-generated `ServerlessDeploymentBucket` bucket.
You are, however, able to exclude Serverless-generated resources using `Exclude:` (see below).
## Usage

@@ -12,0 +16,0 @@

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