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

aws-lambda-fastify

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-lambda-fastify - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

4

index.js

@@ -18,2 +18,6 @@ module.exports = (app, options) => (event, context, callback) => {

if (event.requestContext && event.requestContext.requestId) {
headers['x-request-id'] = headers['x-request-id'] || event.requestContext.requestId
}
const prom = new Promise((resolve, reject) => {

@@ -20,0 +24,0 @@ app.inject({ method, url, query, payload, headers }, (err, res) => {

9

package.json

@@ -33,3 +33,3 @@ {

],
"version": "1.0.2",
"version": "1.0.3",
"main": "index.js",

@@ -48,5 +48,5 @@ "scripts": {

"benchmark": "2.1.4",
"eslint": "6.0.1",
"eslint": "6.1.0",
"eslint-config-standard": "13.0.1",
"eslint-plugin-import": "2.18.0",
"eslint-plugin-import": "2.18.2",
"eslint-plugin-node": "9.1.0",

@@ -56,5 +56,6 @@ "eslint-plugin-promise": "4.2.1",

"fastify": "2.6.0",
"mocha": "6.1.4",
"mocha": "6.2.0",
"serverless-http": "2.0.2",
"should": "13.2.3"
}
}

@@ -80,8 +80,10 @@ # Introduction

**aws-lambda-fastify** x **13,992 ops/sec** ±5.68% (78 runs sampled)
**aws-lambda-fastify** x **14,706 ops/sec** ±5.68% (80 runs sampled)
**[aws-serverless-express](https://github.com/awslabs/aws-serverless-express)** x **2,140 ops/sec** ±6.36% (70 runs sampled)
**[serverless-http](https://github.com/dougmoscrop/serverless-http)** x **10,986 ops/sec** ±2.90% (78 runs sampled)
**[aws-serverless-fastify](https://github.com/benMain/aws-serverless-fastify)** x **2,487 ops/sec** ±1.57% (77 runs sampled)
**[aws-serverless-fastify](https://github.com/benMain/aws-serverless-fastify)** x **3,017 ops/sec** ±1.57% (76 runs sampled)
**[aws-serverless-express](https://github.com/awslabs/aws-serverless-express)** x **2,607 ops/sec** ±6.36% (71 runs sampled)
Fastest is **aws-lambda-fastify**

@@ -94,1 +96,2 @@

- API Gateway has a timeout of 29 seconds, and Lambda has a maximum execution time of 15 minutes.
- If you are using another web framework (Connect, Express, Koa, Restana, Sails, Hapi, Fastify, Restify) or want to use a more generic serverless proxy framework, have a look at: [serverless-http](https://github.com/dougmoscrop/serverless-http)
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