fxi: fastify version support 2.0 release candidate

This commit is contained in:
Jannik Keye 2018-12-02 22:02:51 +01:00
parent efbcbdebaf
commit 0dc2aeee2f
2 changed files with 4 additions and 5 deletions

View File

@ -1,17 +1,16 @@
import { IncomingMessage, Server, ServerResponse } from "http";
import fastifyJwt = require("fastify-jwt");
import fastify = require("fastify");
import fastifyJwt = require("fastify-jwt");
const app = fastify();
app.register<fastifyJwt.FastifyJwtOptions>(fastifyJwt, {
secret: "super-secret"
secret: "super-secret",
});
app.register<fastifyJwt.FastifyJwtOptions>(fastifyJwt, {
secret: (request, reply, callback) => {
return "";
}
},
});
app.get("/path", (request, reply) => {

View File

@ -1,6 +1,6 @@
{
"private": true,
"dependencies": {
"fastify": "^1.11.2"
"fastify": ">=1.13.1 || 2.0.0-rc.1"
}
}