Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,7 @@
"name": "@fastify/auth",
"version": "5.1.1",
"description": "Run multiple auth functions in Fastify",
"repository": {
"type": "git",
"url": "git+https://github.com/fastify/fastify-auth.git"
},
"bugs": {
"url": "https://github.com/fastify/fastify-auth/issues"
},
"homepage": "https://github.com/fastify/fastify-auth#readme",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/fastify"
},
{
"type": "opencollective",
"url": "https://opencollective.com/fastify"
}
],
"main": "auth.js",
"main": "index.js",
"type": "commonjs",
"types": "types/index.d.ts",
"scripts": {
Expand All @@ -31,6 +13,10 @@
"test:typescript": "tstyche",
"test:unit": "c8 --100 node --test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/fastify/fastify-auth.git"
},
"keywords": [
"fastify",
"auth",
Expand All @@ -57,6 +43,20 @@
}
],
"license": "MIT",
"bugs": {
"url": "https://github.com/fastify/fastify-auth/issues"
},
"homepage": "https://github.com/fastify/fastify-auth#readme",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/fastify"
},
{
"type": "opencollective",
"url": "https://opencollective.com/fastify"
}
],
"devDependencies": {
"@fastify/jwt": "^10.0.0",
"@fastify/leveldb": "^6.0.0",
Expand All @@ -77,4 +77,4 @@
"publishConfig": {
"access": "public"
}
}
}
2 changes: 1 addition & 1 deletion test/auth.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const { test } = require('node:test')
const Fastify = require('fastify')
const fastifyAuth = require('../auth')
const fastifyAuth = require('..')

test('registering plugin with invalid default relation', (t, done) => {
t.plan(2)
Expand Down
2 changes: 1 addition & 1 deletion test/example-async.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function build (opts) {

fastify.register(require('@fastify/jwt'), { secret: 'supersecret' })
fastify.register(require('@fastify/leveldb'), { name: 'authdb-async' })
fastify.register(require('../auth'))
fastify.register(require('..'))
fastify.register(routes)

fastify.decorate('verifyJWTandLevel', verifyJWTandLevel)
Expand Down
2 changes: 1 addition & 1 deletion test/example-composited.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function build (opts) {
const fastify = Fastify(opts)

fastify
.register(require('../auth'))
.register(require('..'))
.after(routes)

fastify.decorate('verifyNumber', verifyNumber)
Expand Down
2 changes: 1 addition & 1 deletion test/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function build (opts) {

fastify.register(require('@fastify/jwt'), { secret: 'supersecret' })
fastify.register(require('@fastify/leveldb'), { name: 'authdb' })
fastify.register(require('../auth')) // just 'fastify-auth' IRL
fastify.register(require('..')) // just 'fastify-auth' IRL
fastify.after(routes)

fastify.decorate('verifyJWTandLevelDB', verifyJWTandLevelDB)
Expand Down