* Fastify v3 * Fastify: Update dependencies
@@ -9,7 +9,7 @@ fastify.register(require("point-of-view"), {
});
fastify.addHook('onRequest', (request, reply, done) => {
- reply.setHeader("Server", "Fastify");
+ reply.header("Server", "Fastify");
done()
})
@@ -1,4 +1,4 @@
-FROM node:12.3.1-slim
+FROM node:14.6.0-slim
COPY ./ ./
@@ -5,12 +5,12 @@
"main": "app.js",
"private": true,
"dependencies": {
- "fastify": "1.13.3",
- "handlebars": "4.0.14",
- "knex": "0.16.3",
- "mongodb": "3.1.10",
- "mysql2": "1.6.4",
- "pg": "7.7.1",
- "point-of-view": "2.1.0"
+ "fastify": "3.1.1",
+ "handlebars": "4.7.6",
+ "knex": "0.21.2",
+ "mongodb": "3.5.9",
+ "mysql2": "2.1.0",
+ "pg": "8.3.0",
+ "point-of-view": "4.2.0"
}