diff --git a/lambda/log-redirect/package-lock.json b/lambda/log-redirect/package-lock.json index 42a2df6..88573e0 100644 --- a/lambda/log-redirect/package-lock.json +++ b/lambda/log-redirect/package-lock.json @@ -17,7 +17,7 @@ "@middy/http-header-normalizer": "4.6.5", "@middy/http-response-serializer": "4.6.5", "graphql-request": "6.1.0", - "jwt-decode": "3.1.2", + "jwt-decode": "4.0.0", "luxon": "3.4.3" }, "devDependencies": { @@ -1402,9 +1402,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/lodash.merge": { "version": "4.6.2", diff --git a/lambda/log-redirect/package.json b/lambda/log-redirect/package.json index f70f64b..b1edc95 100644 --- a/lambda/log-redirect/package.json +++ b/lambda/log-redirect/package.json @@ -11,7 +11,7 @@ "@middy/error-logger": "4.6.5", "@aws-sdk/client-secrets-manager": "3.441.0", "graphql-request": "6.1.0", - "jwt-decode": "3.1.2", + "jwt-decode": "4.0.0", "luxon": "3.4.3" }, "devDependencies": { diff --git a/lambda/log-redirect/src/wcl.ts b/lambda/log-redirect/src/wcl.ts index 8925b19..72a2786 100644 --- a/lambda/log-redirect/src/wcl.ts +++ b/lambda/log-redirect/src/wcl.ts @@ -1,7 +1,7 @@ //Cross invocation cache import {gql, GraphQLClient} from "graphql-request"; import {GetSecretValueCommand, SecretsManagerClient} from "@aws-sdk/client-secrets-manager"; -import jwtDecode from "jwt-decode"; +import {jwtDecode} from "jwt-decode"; import {tracer} from "./util"; import {DateTime} from "luxon";