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] <support@github.com>

* Make jwt-decode a named import.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Caio Cotts <caio@cotts.com.br>
This commit is contained in:
dependabot[bot] 2023-12-18 17:28:42 -05:00 committed by GitHub
parent df3de047ca
commit 4ccc0a92bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 10 deletions

17
ui/package-lock.json generated
View File

@ -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",

View File

@ -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",

View File

@ -1,4 +1,4 @@
import jwtDecode from 'jwt-decode'
import { jwtDecode } from 'jwt-decode'
import { baseUrl } from './utils'
import config from './config'

View File

@ -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'