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

aws-lambda-fastify

Package Overview
Dependencies
Maintainers
2
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.3 to 1.0.4

3

index.js
module.exports = (app, options) => (event, context, callback) => {
options = options || {}
options.binaryMimeTypes = options.binaryMimeTypes || []
if (options.callbackWaitsForEmptyEventLoop !== undefined) {
context.callbackWaitsForEmptyEventLoop = options.callbackWaitsForEmptyEventLoop
}
event.body = event.body || ''

@@ -5,0 +8,0 @@

28

package.json

@@ -19,9 +19,10 @@ {

],
"homepage": "https://github.com/adrai/aws-lambda-fastify",
"homepage": "https://github.com/fastify/aws-lambda-fastify",
"author": "Adriano Raiano <adriano@raiano.ch>",
"repository": {
"type": "git",
"url": "git@github.com:adrai/aws-lambda-fastify.git"
"url": "git@github.com:fastify/aws-lambda-fastify.git"
},
"bugs": {
"url": "https://github.com/adrai/aws-lambda-fastify/issues"
"url": "https://github.com/fastify/aws-lambda-fastify/issues"
},

@@ -31,10 +32,10 @@ "licenses": [

"type": "MIT",
"url": "https://raw.github.com/adrai/aws-lambda-fastify/master/LICENSE"
"url": "https://raw.github.com/fastify/aws-lambda-fastify/master/LICENSE"
}
],
"version": "1.0.3",
"version": "1.0.4",
"main": "index.js",
"scripts": {
"lint": "eslint .",
"test": "npm run lint && mocha --colors --reporter spec --recursive test",
"test": "npm run lint && tap --no-esm -J -R specy test/*test.js",
"performance": "npm run lint && node performanceTest/test"

@@ -49,13 +50,12 @@ },

"benchmark": "2.1.4",
"eslint": "6.1.0",
"eslint-config-standard": "13.0.1",
"eslint": "6.3.0",
"eslint-config-standard": "14.1.0",
"eslint-plugin-import": "2.18.2",
"eslint-plugin-node": "9.1.0",
"eslint-plugin-node": "10.0.0",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-standard": "4.0.0",
"fastify": "2.6.0",
"mocha": "6.2.0",
"serverless-http": "2.0.2",
"should": "13.2.3"
"eslint-plugin-standard": "4.0.1",
"fastify": "2.8.0",
"serverless-http": "2.3.0",
"tap": "14.6.1"
}
}
# Introduction
[![travis](https://img.shields.io/travis/adrai/aws-lambda-fastify.svg)](https://travis-ci.org/adrai/aws-lambda-fastify) [![npm](https://img.shields.io/npm/v/aws-lambda-fastify.svg)](https://npmjs.org/package/aws-lambda-fastify)
[![travis](https://img.shields.io/travis/fastify/aws-lambda-fastify.svg)](https://travis-ci.org/fastify/aws-lambda-fastify) [![npm](https://img.shields.io/npm/v/aws-lambda-fastify.svg)](https://npmjs.org/package/aws-lambda-fastify) [![Greenkeeper badge](https://badges.greenkeeper.io/fastify/aws-lambda-fastify.svg)](https://greenkeeper.io/)

@@ -9,3 +9,3 @@ Inspired by the AWSLABS [aws-serverless-express](https://github.com/awslabs/aws-serverless-express) library tailor made for the [Fastify](https://www.fastify.io/) web framework.

**Seems [faster](https://github.com/adrai/aws-lambda-fastify#some-basic-performance-metrics)** *(as the name implies)* **than [aws-serverless-express](https://github.com/awslabs/aws-serverless-express) and [aws-serverless-fastify](https://github.com/benMain/aws-serverless-fastify) 😉**
**Seems [faster](https://github.com/fastify/aws-lambda-fastify#some-basic-performance-metrics)** *(as the name implies)* **than [aws-serverless-express](https://github.com/awslabs/aws-serverless-express) and [aws-serverless-fastify](https://github.com/benMain/aws-serverless-fastify) 😉**

@@ -47,3 +47,3 @@ ## 👨🏻‍💻Installation

if (require.main !== module) {
if (require.main === module) {
// called directly i.e. "node app"

@@ -62,3 +62,3 @@ app.listen(3000, (err) => {

so we just export the `app` in this case.
The [`lambda.js`](https://github.com/adrai/aws-lambda-fastify#lambdajs) file will use this export.
The [`lambda.js`](https://github.com/fastify/aws-lambda-fastify#lambdajs) file will use this export.

@@ -65,0 +65,0 @@ When you execute your Fastify application like always,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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