fastify-basic-auth
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -8,3 +8,4 @@ import { | ||
preValidationHookHandler, | ||
preHandlerHookHandler | ||
preHandlerHookHandler, | ||
FastifyInstance | ||
} from 'fastify' | ||
@@ -22,2 +23,3 @@ | ||
validate( | ||
this: FastifyInstance, | ||
username: string, | ||
@@ -24,0 +26,0 @@ password: string, |
@@ -8,4 +8,5 @@ import { expectType, expectAssignable } from 'tsd' | ||
preValidationHookHandler, | ||
preHandlerHookHandler | ||
} from 'fastify' | ||
preHandlerHookHandler, | ||
FastifyInstance | ||
} from 'fastify' | ||
import fastifyBasicAuth from '.' | ||
@@ -21,2 +22,3 @@ | ||
expectType<FastifyReply>(reply) | ||
expectType<FastifyInstance>(this) | ||
}, | ||
@@ -33,2 +35,3 @@ header: 'x-forwarded-authorization' | ||
expectAssignable<(err?: Error) => void>(done) | ||
expectType<FastifyInstance>(this) | ||
} | ||
@@ -35,0 +38,0 @@ }) |
{ | ||
"name": "fastify-basic-auth", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Fastify basic auth plugin", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31425
856