2.0.3 • Published 5 years ago

@ydv/function v2.0.3

Weekly downloads
48
License
-
Repository
-
Last release
5 years ago

@ydv/function

npm install --save @ydv/function

Creates a wrapper around a Lambda handler.

  1. Enables promise support. Return a value from the handler, and it's assumed to be 200 OK JSON.
  2. Sane error handling. Any error object will be passed as response body with error.statusCode || 500.
  3. Logging on error, adds logger to context
  4. Calls options.runBefore(event, context) before running handler
  5. Automatically parses incoming event.body to object and event.query to object (if applicable)
2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.3.6

5 years ago

1.3.5

5 years ago

1.3.4

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.1.3

6 years ago

1.0.6

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago