1.18.0 • Published 12 days ago

@netlify/serverless-functions-api v1.18.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 days ago

npm version Build Node

Serverless Functions API

A Node.js module that implements the runtime API for serverless functions. It translates between the API defined by Netlify and the API expected by the underlying provider, AWS Lambda.

The API

The API surface is quite minimal: functions are comprised of handlers that receive a Request and return a Response, using the default export.

export default async (req) => new Response(`Responding to ${req.url}`)

The module

The module exports a getLambdaHandler function that returns a Lambda-compatible handler. This handler receives a Lambda event, converts it to a Netlify API input (i.e. an instance of the standard Request and a context object), executes the function, and converts the result back into a response compatible with the Lambda API.

The source is bundled into a single file, so that it can be injected into a Lambda without any additional imports or dependencies.

The getPath export returns the absolute path to the module. This lets consumers like zip-it-and-ship-it easily include the file in a ZIP.

1.18.0

12 days ago

1.17.0

14 days ago

1.16.2

26 days ago

1.16.1

1 month ago

1.16.0

1 month ago

1.15.0

1 month ago

1.14.0

3 months ago

1.13.1

4 months ago

1.13.0

5 months ago

1.12.3

5 months ago

1.12.2

5 months ago

1.12.1

6 months ago

1.12.0

6 months ago

1.9.1

7 months ago

1.7.3

9 months ago

1.9.0

7 months ago

1.8.1

7 months ago

1.7.2

9 months ago

1.8.0

7 months ago

1.7.1

9 months ago

1.7.0

9 months ago

1.5.2

10 months ago

1.6.0

9 months ago

1.11.0

6 months ago

1.10.1

7 months ago

1.10.0

7 months ago

1.5.1

11 months ago

1.5.0

12 months ago

1.4.0

12 months ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago