From ff950d38160f436bd5549d73d5aa16a5f67d7feb Mon Sep 17 00:00:00 2001 From: cemremengu Date: Thu, 20 Dec 2018 20:26:44 +0300 Subject: [PATCH] Branching off to 1.x --- .gitattributes | 5 +++++ .travis.yml | 1 + README.md | 2 ++ index.js | 2 +- 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .gitattributes 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' })