From 4ccc0a92bfb7d43ce98cbeddf3a933e016fbeb82 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 17:28:42 -0500 Subject: [PATCH] Bump jwt-decode from 3.1.2 to 4.0.0 in /ui (#2714) * Bump jwt-decode from 3.1.2 to 4.0.0 in /ui Bumps [jwt-decode](https://github.com/auth0/jwt-decode) from 3.1.2 to 4.0.0. - [Release notes](https://github.com/auth0/jwt-decode/releases) - [Changelog](https://github.com/auth0/jwt-decode/blob/main/CHANGELOG.md) - [Commits](https://github.com/auth0/jwt-decode/compare/v3.1.2...v4.0.0) --- updated-dependencies: - dependency-name: jwt-decode dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * Make jwt-decode a named import. --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Caio Cotts --- ui/package-lock.json | 17 ++++++++++------- ui/package.json | 2 +- ui/src/authProvider.js | 2 +- ui/src/dataProvider/httpClient.js | 2 +- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/ui/package-lock.json b/ui/package-lock.json index 0855eea14..2ec04cee4 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -18,7 +18,7 @@ "deepmerge": "^4.3.1", "history": "^4.10.1", "inflection": "^1.13.1", - "jwt-decode": "^3.1.2", + "jwt-decode": "^4.0.0", "lodash.pick": "^4.4.0", "lodash.throttle": "^4.1.1", "navidrome-music-player": "4.25.1", @@ -13324,9 +13324,12 @@ } }, "node_modules/jwt-decode": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-3.1.2.tgz", - "integrity": "sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==" + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-4.0.0.tgz", + "integrity": "sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA==", + "engines": { + "node": ">=18" + } }, "node_modules/keyv": { "version": "3.1.0", @@ -31000,9 +31003,9 @@ } }, "jwt-decode": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-3.1.2.tgz", - "integrity": "sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==" + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-4.0.0.tgz", + "integrity": "sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA==" }, "keyv": { "version": "3.1.0", diff --git a/ui/package.json b/ui/package.json index be71847f9..50f3a4879 100644 --- a/ui/package.json +++ b/ui/package.json @@ -13,7 +13,7 @@ "deepmerge": "^4.3.1", "history": "^4.10.1", "inflection": "^1.13.1", - "jwt-decode": "^3.1.2", + "jwt-decode": "^4.0.0", "lodash.pick": "^4.4.0", "lodash.throttle": "^4.1.1", "navidrome-music-player": "4.25.1", diff --git a/ui/src/authProvider.js b/ui/src/authProvider.js index 86d45b446..c22e9345d 100644 --- a/ui/src/authProvider.js +++ b/ui/src/authProvider.js @@ -1,4 +1,4 @@ -import jwtDecode from 'jwt-decode' +import { jwtDecode } from 'jwt-decode' import { baseUrl } from './utils' import config from './config' diff --git a/ui/src/dataProvider/httpClient.js b/ui/src/dataProvider/httpClient.js index 0e9f5433a..5ade3c0ce 100644 --- a/ui/src/dataProvider/httpClient.js +++ b/ui/src/dataProvider/httpClient.js @@ -2,7 +2,7 @@ import { fetchUtils } from 'react-admin' import { v4 as uuidv4 } from 'uuid' import { baseUrl } from '../utils' import config from '../config' -import jwtDecode from 'jwt-decode' +import { jwtDecode } from 'jwt-decode' const customAuthorizationHeader = 'X-ND-Authorization' const clientUniqueIdHeader = 'X-ND-Client-Unique-Id'