Skip to content

Commit

Permalink
Merge pull request #799 from algoan/dependabot/npm_and_yarn/jwt-decod…
Browse files Browse the repository at this point in the history
…e-4.0.0

chore(deps): bump jwt-decode from 3.1.2 to 4.0.0
  • Loading branch information
g-ongenae authored Dec 6, 2023
2 parents 1f43a26 + 800ab6f commit 699c5f7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
19 changes: 11 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 packages/custom-decorators/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 packages/custom-decorators/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"url": "https://github.com/algoan/nestjs-components/issues"
},
"dependencies": {
"jwt-decode": "^3.1.2"
"jwt-decode": "^4.0.0"
},
"peerDependencies": {
"@nestjs/common": ">=8",
Expand Down
2 changes: 1 addition & 1 deletion packages/custom-decorators/src/decode-jwt.decorator.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createParamDecorator, ExecutionContext, UnauthorizedException } from '@nestjs/common';
import jwtDecode from 'jwt-decode';
import { jwtDecode } from 'jwt-decode';

export const DecodeJWT: () => ParameterDecorator = createParamDecorator(
async (_data: unknown, ctx: ExecutionContext): Promise<unknown> => {
Expand Down

0 comments on commit 699c5f7

Please sign in to comment.