diff --git a/package.json b/package.json index 344f7cf5eb..dd14821bd8 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "build:plugin-stripe": "turbo build --filter plugin-stripe", "build:richtext-lexical": "turbo build --filter richtext-lexical", "build:richtext-slate": "turbo build --filter richtext-slate", + "build:tests": "turbo build --filter test", "build:translations": "turbo build --filter translations", "build:ui": "turbo build --filter ui", "clean": "turbo clean", @@ -118,7 +119,7 @@ "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "json5": "^2.2.3", - "jwt-decode": "3.1.2", + "jwt-decode": "4.0.0", "lexical": "0.13.1", "lint-staged": "^14.0.1", "minimist": "1.2.8", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 94cf2b38a7..cac2c9b886 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -182,8 +182,8 @@ importers: specifier: ^2.2.3 version: 2.2.3 jwt-decode: - specifier: 3.1.2 - version: 3.1.2 + specifier: 4.0.0 + version: 4.0.0 lexical: specifier: 0.13.1 version: 0.13.1 @@ -12322,8 +12322,9 @@ packages: safe-buffer: 5.2.1 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: true /kareem@2.5.1: diff --git a/test/auth/int.spec.ts b/test/auth/int.spec.ts index 2b28a2d78f..99b6a50323 100644 --- a/test/auth/int.spec.ts +++ b/test/auth/int.spec.ts @@ -1,7 +1,7 @@ import type { Payload } from 'payload' import type { User } from 'payload/auth' -import jwtDecode from 'jwt-decode' +import { jwtDecode } from 'jwt-decode' import type { NextRESTClient } from '../helpers/NextRESTClient.js'