Skip to content

Commit

Permalink
chore: bump up jwt-decode
Browse files Browse the repository at this point in the history
  • Loading branch information
jamil314 committed Nov 15, 2024
1 parent dad8434 commit baa07b9
Show file tree
Hide file tree
Showing 18 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"iframe-resizer-react": "^1.1.0",
"jsdom": "16.7.0",
"jsdom-worker": "^0.3.0",
"jwt-decode": "^2.2.0",
"jwt-decode": "^3.0.0",
"localforage": "^1.7.2",
"lodash": "^4.17.10",
"patch-package": "^6.1.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"date-fns": "^2.28.0",
"elastic-apm-node": "^3.29.0",
"jest": "29.7.0",
"jwt-decode": "^2.2.0",
"jwt-decode": "^3.0.0",
"lodash": "^4.17.10",
"node-fetch": "^2.6.7",
"pkg-up": "^3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/src/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

import { IAuthHeader } from './http'
import * as decode from 'jwt-decode'
import decode from 'jwt-decode'

/** All the scopes user can be assigned to */
export const userScopes = {
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"io-ts": "^2.2.18",
"joi": "^17.5.0",
"jsonwebtoken": "^9.0.0",
"jwt-decode": "^2.2.0",
"jwt-decode": "^3.0.0",
"lodash": "^4.17.21",
"mongoose": "^6.11.3",
"pino": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/data-seeder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"envalid": "^8.0.0",
"graphql": "^15.0.0",
"graphql-tag": "^2.12.6",
"jwt-decode": "^2.2.0",
"jwt-decode": "^3.0.0",
"node-fetch": "^2.6.1",
"ts-node": "^6.1.1",
"tsconfig-paths": "^3.13.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/documents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"is-svg": "^4.4.0",
"joi": "^17.3.0",
"jsonwebtoken": "^9.0.0",
"jwt-decode": "^2.2.0",
"jwt-decode": "^3.0.0",
"minio": "^7.0.33",
"node-fetch": "^2.6.7",
"pino": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"joi": "^17.3.0",
"jose": "^4.13.1",
"jsonwebtoken": "^9.0.0",
"jwt-decode": "^2.2.0",
"jwt-decode": "^3.0.0",
"lodash": "^4.17.10",
"node-fetch": "^2.6.7",
"pino": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/login/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"eslint-plugin-react-hooks": "^4.0.8",
"glob": "^7.1.2",
"google-libphonenumber": "^3.2.32",
"jwt-decode": "^2.2.0",
"jwt-decode": "^3.0.0",
"msw": "0.22.0",
"opener": "^1.5.1",
"prettier": "2.8.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/metrics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"influx": "^5.9.3",
"joi": "^17.3.0",
"jsonwebtoken": "^9.0.0",
"jwt-decode": "^2.2.0",
"jwt-decode": "^3.0.0",
"lodash": "^4.17.21",
"mongodb": "^4.17.1",
"mongoose": "^6.11.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/metrics/src/utils/authUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS.
*/
import decode = require('jwt-decode')
import decode from 'jwt-decode'

export enum USER_SCOPE {
DECLARE = 'declare',
Expand Down
2 changes: 1 addition & 1 deletion packages/search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"hapi-sentry": "^3.1.0",
"joi": "^17.3.0",
"jsonwebtoken": "^9.0.0",
"jwt-decode": "^2.2.0",
"jwt-decode": "^3.0.0",
"mongodb": "4.17.2",
"node-fetch": "^2.6.7",
"pino": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/search/src/utils/authUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS.
*/
import decode = require('jwt-decode')
import decode from 'jwt-decode'

export enum USER_SCOPE {
DECLARE = 'declare',
Expand Down
2 changes: 1 addition & 1 deletion packages/user-mgnt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"jest-fetch-mock": "^2.1.2",
"joi": "^17.3.0",
"jsonwebtoken": "^9.0.0",
"jwt-decode": "^2.2.0",
"jwt-decode": "^3.0.0",
"lodash": "^4.17.11",
"mongoose": "^6.11.3",
"node-fetch": "^2.6.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/webhooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"hapi-sentry": "^3.1.0",
"joi": "^17.3.0",
"jsonwebtoken": "^9.0.0",
"jwt-decode": "^2.2.0",
"jwt-decode": "^3.0.0",
"lodash": "^4.17.11",
"mongoose": "^6.11.3",
"node-fetch": "^2.6.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/webhooks/src/features/manage/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS.
*/
import decode = require('jwt-decode')
import decode from 'jwt-decode'
import { USER_MANAGEMENT_URL } from '@webhooks/constants'
import fetch from 'node-fetch'
import * as crypto from 'crypto'
Expand Down
2 changes: 1 addition & 1 deletion packages/workflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"hapi-sentry": "^3.1.0",
"joi": "^17.3.0",
"jsonwebtoken": "^9.0.0",
"jwt-decode": "^2.2.0",
"jwt-decode": "^3.0.0",
"lodash": "^4.17.10",
"node-fetch": "^2.6.7",
"pino": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/workflow/src/utils/auth-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS.
*/
import decode = require('jwt-decode')
import decode from 'jwt-decode'
import * as Hapi from '@hapi/hapi'
import { hasScope } from '@opencrvs/commons/authentication'

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17360,10 +17360,10 @@ jws@^3.2.2:
jwa "^1.4.1"
safe-buffer "^5.0.1"

jwt-decode@^2.2.0:
version "2.2.0"
resolved "https://registry.npmjs.org/jwt-decode/-/jwt-decode-2.2.0.tgz"
integrity sha512-86GgN2vzfUu7m9Wcj63iUkuDzFNYFVmjeDm2GzWpUk+opB0pEpMsw6ePCMrhYkumz2C1ihqtZzOMAg7FiXcNoQ==
jwt-decode@^3.0.0:
version "3.1.2"
resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-3.1.2.tgz#3fb319f3675a2df0c2895c8f5e9fa4b67b04ed59"
integrity sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==

[email protected]:
version "2.5.1"
Expand Down

0 comments on commit baa07b9

Please sign in to comment.