Skip to content

Releases: firstandthird/arc-rapptor

now throws error if config has a JSON error

Choose a tag to compare

@orthagonal orthagonal released this 23 May 15:10

Previously JSON errors in the config file were passed over in silence, leading to all kinds of confusion.
If the config file exists and has no error, this will run as normal.
If the config file does not exist, this will run as normal.
If the config file exists but has an error in it, this will throw the error and crash.

handle when not base64

Choose a tag to compare

@orthagonal orthagonal released this 13 May 16:57

response.js fixes an error that occurs if 'body' is not base64-encoded

allow API Version 2.0

Choose a tag to compare

@orthagonal orthagonal released this 16 Apr 01:29

fix CORS error when res does not have headers

Choose a tag to compare

@orthagonal orthagonal released this 29 Mar 17:36
7.4.1

7.4.1

allow global options

Choose a tag to compare

@orthagonal orthagonal released this 05 Mar 22:55

You can now set options for all routes by putting them inside a 'response: {...}' field in the conf file.

CORS support

Choose a tag to compare

@orthagonal orthagonal released this 18 Feb 23:09

{ cors: true } in the config will allow cross-origin requests and preflight checks for GET/POST/PUT/DELETE.

middleware before and after

Choose a tag to compare

@orthagonal orthagonal released this 01 Nov 17:23

Now supports 'before' and 'after' middleware methods for additional processing, see test.middleware.js for examples.

fixes incorrect redirect with '/', fixes tests

Choose a tag to compare

@orthagonal orthagonal released this 26 Oct 16:51
7.0.1

patch not minor

normalize headers and body

Choose a tag to compare

@orthagonal orthagonal released this 25 Oct 17:14

This will now force all incoming headers to be all lowercase, so response functions that assumed they were in some capitalized format need to be updated. This also now passes application/json bodies as a JS object rather than as a base-64 JSON string.

logger method

Choose a tag to compare

@orthagonal orthagonal released this 14 Oct 21:20

Now logs to console.error if tag level is 'ERROR', this way AWS logging recognizes the log as an error log.