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

aws-lambda-event-identifier

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-lambda-event-identifier - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

26

index.js

@@ -10,17 +10,19 @@ exports.eventIdentifier = function(data){

}
if(data.Records.length>0){
if(data.Records[0].EventSource == "aws:sns"){
return "sns";
if(data.Records){
if(data.Records.length>0){
if(data.Records[0].EventSource == "aws:sns"){
return "sns";
}
if(data.Records[0].eventSource == "aws:dynamodb"){
return "dynamodb";
}
if(data.Records[0].eventSource == "aws:s3"){
return "s3";
}
if(data.Records[0].eventSource == "aws:kinesis"){
return "s3";
}
}
if(data.Records[0].eventSource == "aws:dynamodb"){
return "dynamodb";
}
if(data.Records[0].eventSource == "aws:s3"){
return "s3";
}
if(data.Records[0].eventSource == "aws:kinesis"){
return "s3";
}
}
return null;
}
{
"name": "aws-lambda-event-identifier",
"version": "1.0.1",
"version": "1.0.2",
"description": "Used to return a type of input event from aws lambda",

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

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