Merge pull request #30994 from jannikkeye/fix/fastify-jwt/dependency-version

[@types/fastify-jwt]: fastify version support 2.0 release candidate
This commit is contained in:
Andrew Casey
2018-12-03 10:23:30 -08:00
committed by GitHub
2 changed files with 4 additions and 5 deletions
+3 -4
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) => {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"private": true,
"dependencies": {
"fastify": "^1.11.2"
"fastify": ">=1.13.1 || 2.0.0-rc.1"
}
}