New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@codegenie/serverless-express

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codegenie/serverless-express - npm Package Compare versions

Comparing version 4.10.7 to 4.11.0

src/event-sources/aws/s3.js

2

package.json
{
"name": "@codegenie/serverless-express",
"version": "4.10.7",
"version": "4.11.0",
"description": "This library enables you to utilize AWS Lambda and Amazon API Gateway to respond to web and API requests using your existing Node.js application framework.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -29,3 +29,3 @@

</a>
<a aria-label="License" href="https://github.com/CodeGenieApp/serverless-express/blob/mainline/license.md">
<a aria-label="License" href="https://github.com/CodeGenieApp/serverless-express/blob/mainline/LICENSE">
<img alt="" src="https://img.shields.io/npm/l/@codegenie/serverless-express.svg?style=for-the-badge&labelColor=000000">

@@ -32,0 +32,0 @@ </a>

@@ -6,3 +6,3 @@ import { RequestListener } from 'http';

type EventSources = 'AWS_SNS' | 'AWS_DYNAMODB' | 'AWS_EVENTBRIDGE' | 'AWS_SQS' | 'AWS_KINESIS_DATA_STREAM';
type EventSources = 'AWS_SNS' | 'AWS_DYNAMODB' | 'AWS_EVENTBRIDGE' | 'AWS_SQS' | 'AWS_KINESIS_DATA_STREAM' | 'AWS_S3';

@@ -9,0 +9,0 @@ interface EventSource {

@@ -12,2 +12,3 @@ const awsApiGatewayV1EventSource = require('./aws/api-gateway-v1')

const awsKinesisEventSource = require('./aws/kinesis')
const awsS3 = require('./aws/s3')

@@ -38,2 +39,4 @@ function getEventSource ({ eventSourceName }) {

return awsKinesisEventSource
case 'AWS_S3':
return awsS3
default:

@@ -40,0 +43,0 @@ throw new Error('Couldn\'t detect valid event source.')

@@ -88,2 +88,5 @@ const url = require('url')

}
if (eventSource === 'aws:s3') {
return 'AWS_S3'
}
return 'AWS_LAMBDA_EDGE'

@@ -90,0 +93,0 @@ }

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