Skip to content

Commit

Permalink
update express-unless
Browse files Browse the repository at this point in the history
  • Loading branch information
jfromaniello committed May 31, 2022
1 parent eb50853 commit 2242f01
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
15 changes: 7 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -35,7 +35,7 @@
"dependencies": {
"@types/express-unless": "^0.5.3",
"@types/jsonwebtoken": "^8.5.8",
"express-unless": "^1.0.0",
"express-unless": "^2.0.1",
"jsonwebtoken": "^8.5.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
@@ -1,6 +1,6 @@
import * as jwt from 'jsonwebtoken';
import * as express from 'express';
import * as expressUnless from 'express-unless';
import { unless } from 'express-unless';
import { UnauthorizedError } from './errors/UnauthorizedError';

/**
Expand Down Expand Up @@ -177,7 +177,7 @@ export const expressjwt = (options: Params) => {
}
};

middleware.unless = expressUnless;
middleware.unless = unless;

return middleware;
}
Expand Down

0 comments on commit 2242f01

Please sign in to comment.