From 80c71b1951fd427e532269bbbed41095eb3de747 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 27 Oct 2023 14:20:43 +0200 Subject: [PATCH] Bump jwt-decode from 3.1.2 to 4.0.0 in /js (#24349) * Bump jwt-decode from 3.1.2 to 4.0.0 in /js 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] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jon Koops --- js/libs/keycloak-js/package.json | 2 +- js/libs/keycloak-js/src/keycloak.js | 2 +- js/pnpm-lock.yaml | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/js/libs/keycloak-js/package.json b/js/libs/keycloak-js/package.json index a48ab5a9d1..aaf07aff07 100644 --- a/js/libs/keycloak-js/package.json +++ b/js/libs/keycloak-js/package.json @@ -53,6 +53,6 @@ "dependencies": { "base64-js": "^1.5.1", "js-sha256": "^0.10.1", - "jwt-decode": "^3.1.2" + "jwt-decode": "^4.0.0" } } diff --git a/js/libs/keycloak-js/src/keycloak.js b/js/libs/keycloak-js/src/keycloak.js index fdd27b46dc..257522b341 100755 --- a/js/libs/keycloak-js/src/keycloak.js +++ b/js/libs/keycloak-js/src/keycloak.js @@ -16,7 +16,7 @@ */ import base64 from 'base64-js'; import sha256 from 'js-sha256'; -import jwtDecode from 'jwt-decode'; +import { jwtDecode } from 'jwt-decode'; if (typeof Promise === 'undefined') { throw Error('Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.'); diff --git a/js/pnpm-lock.yaml b/js/pnpm-lock.yaml index a0a95e1d0b..15f2adbb85 100644 --- a/js/pnpm-lock.yaml +++ b/js/pnpm-lock.yaml @@ -360,8 +360,8 @@ importers: specifier: ^0.10.1 version: 0.10.1 jwt-decode: - specifier: ^3.1.2 - version: 3.1.2 + specifier: ^4.0.0 + version: 4.0.0 devDependencies: '@rollup/plugin-commonjs': specifier: ^25.0.7 @@ -5010,8 +5010,9 @@ packages: object.values: 1.1.7 dev: true - /jwt-decode@3.1.2: - resolution: {integrity: sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==} + /jwt-decode@4.0.0: + resolution: {integrity: sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA==} + engines: {node: '>=18'} dev: false /keyv@4.5.3: