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

serverless-plugin-existing-s3

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-plugin-existing-s3 - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

2

package.json
{
"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('-')}`;

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