serverless-plugin-existing-s3
Advanced tools
Comparing version 2.2.0 to 2.2.1
{ | ||
"name": "serverless-plugin-existing-s3", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Attach Lambda events to an existing S3 bucket, for Serverless.com 1.11.0+.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,3 +13,3 @@ 'use strict'; | ||
getId(event) { | ||
const eventTypes = event.existingS3.event || ['s3:ObjectCreated:*']; | ||
const eventTypes = event.existingS3.events || ['s3:ObjectCreated:*']; | ||
const rules = event.existingS3.rules ? event.existingS3.rules.sort( (a,b) => Object.keys(a) - Object.keys(b) ) : []; | ||
@@ -16,0 +16,0 @@ const md5Data = `${event.arn}_${eventTypes.join('OR').replace(/[\.\:\*]/g,'')}_${rules.map(rule => JSON.stringify(rule)).join('-')}`; |
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
20211