Browse Source

Fastify 3 (#5869)

* Fastify v3

* Fastify: Update dependencies
Ievgen Makukh 5 years ago
parent
commit
2302ee4df9

+ 1 - 1
frameworks/JavaScript/fastify/create-server.js

@@ -9,7 +9,7 @@ fastify.register(require("point-of-view"), {
 });
 });
 
 
 fastify.addHook('onRequest', (request, reply, done) => {
 fastify.addHook('onRequest', (request, reply, done) => {
-  reply.setHeader("Server", "Fastify");
+  reply.header("Server", "Fastify");
   done()
   done()
 })
 })
 
 

+ 1 - 1
frameworks/JavaScript/fastify/fastify-mysql.dockerfile

@@ -1,4 +1,4 @@
-FROM node:12.3.1-slim
+FROM node:14.6.0-slim
 
 
 COPY ./ ./
 COPY ./ ./
 
 

+ 1 - 1
frameworks/JavaScript/fastify/fastify-postgres.dockerfile

@@ -1,4 +1,4 @@
-FROM node:12.3.1-slim
+FROM node:14.6.0-slim
 
 
 COPY ./ ./
 COPY ./ ./
 
 

+ 1 - 1
frameworks/JavaScript/fastify/fastify.dockerfile

@@ -1,4 +1,4 @@
-FROM node:12.3.1-slim
+FROM node:14.6.0-slim
 
 
 COPY ./ ./
 COPY ./ ./
 
 

+ 7 - 7
frameworks/JavaScript/fastify/package.json

@@ -5,12 +5,12 @@
   "main": "app.js",
   "main": "app.js",
   "private": true,
   "private": true,
   "dependencies": {
   "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"
   }
   }
 }
 }