diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..cad1c32 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +# Set the default behavior, in case people don't have core.autocrlf set +* text=auto + +# Require Unix line endings +* text eol=lf diff --git a/.travis.yml b/.travis.yml index c2b38c5..877a17b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ node_js: - "6" - "8" - "10" + - "11" notifications: email: diff --git a/README.md b/README.md index 6be11a8..9ac1abc 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ `fastify-cors` enables the use of [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) in a Fastify application. +Supports Fastify versions `^1.x` + ## Install ``` npm i fastify-cors diff --git a/index.js b/index.js index bbb5cee..25ed227 100644 --- a/index.js +++ b/index.js @@ -166,6 +166,6 @@ function vary (reply, field) { } module.exports = fp(fastifyCors, { - fastify: '>=1.0.0', + fastify: '^1.0.0', name: 'fastify-cors' })