Skip to content

Releases: emmoistner/serverless-endpoint

0.1.0 (2017-04-07)

07 Apr 06:11
Compare
Choose a tag to compare

Features

#14 [feature] Enable default headers at function entry

endpoint can now be configured with an options argument

// handler.js
const endpoint = require('serverless-endpoint');

// options
const opts = {
  headers: { "Access-Control-Allow-Origin": "*" }
}

// endpoint /hello
function getHelloWorld(req, res) {

  res.send(200, { message: `Hello World!` })
}

module.exports.getHelloWorld = endpoint(getHelloWorld, opts)

0.0.8 (2017-03-31)

01 Apr 01:24
Compare
Choose a tag to compare

Features

#12 AWS Res headers api

Bugs

#13 remove bang to fix bug in args.length check

0.0.7 (2017-03-31)

31 Mar 14:13
Compare
Choose a tag to compare

Changes

#11 AWS Added authorizer to the request mapping for aws

0.0.6 Release (2017-03-16)

16 Mar 17:06
Compare
Choose a tag to compare

Changes

#10 [fix] handle request ApiGateway json body better

0.0.5 Release (2017-03-14)

14 Mar 06:12
Compare
Choose a tag to compare

Changes

#6 [readme] update readme with npm package badge and fixed install docs

Miscellaneous

#7 [test] add better tests cleanPath, ExtendableError
#8 [test] add defaults & safety test to aws-mapper.convertEventToRequest

0.0.4 Release (2017-03-13)

13 Mar 18:35
Compare
Choose a tag to compare

Fix bug. awsRequestId should be used instead of awsId

0.0.3 Release (2017-03-13)

13 Mar 15:18
Compare
Choose a tag to compare

Fix npm package description

0.0.2 Initial Release (2017-03-13)

13 Mar 14:50
Compare
Choose a tag to compare

Basic functionality for AWS ApiGateway & Google Cloud Functions