From d272ccef0d7b2725795fa771ced7facca9d7b1dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Fri, 26 Jan 2024 12:19:13 +0000 Subject: [PATCH] chore: Drop lodash omit --- .../saveAndReturn/service/validateSession.test.ts | 2 +- .../modules/saveAndReturn/service/validateSession.ts | 2 +- api.planx.uk/package.json | 2 -- api.planx.uk/pnpm-lock.yaml | 12 ------------ 4 files changed, 2 insertions(+), 16 deletions(-) diff --git a/api.planx.uk/modules/saveAndReturn/service/validateSession.test.ts b/api.planx.uk/modules/saveAndReturn/service/validateSession.test.ts index dd31f4b5a7..64c51ee32f 100644 --- a/api.planx.uk/modules/saveAndReturn/service/validateSession.test.ts +++ b/api.planx.uk/modules/saveAndReturn/service/validateSession.test.ts @@ -1,5 +1,5 @@ import supertest from "supertest"; -import omit from "lodash.omit"; +import { omit } from "lodash"; import app from "../../../server"; import { queryMock } from "../../../tests/graphqlQueryMock"; import { diff --git a/api.planx.uk/modules/saveAndReturn/service/validateSession.ts b/api.planx.uk/modules/saveAndReturn/service/validateSession.ts index 981b671cd9..96147cb962 100644 --- a/api.planx.uk/modules/saveAndReturn/service/validateSession.ts +++ b/api.planx.uk/modules/saveAndReturn/service/validateSession.ts @@ -1,5 +1,5 @@ import { gql } from "graphql-request"; -import omit from "lodash.omit"; +import { omit } from "lodash"; import { getMostRecentPublishedFlow } from "../../../helpers"; import { sortBreadcrumbs } from "@opensystemslab/planx-core"; import { ComponentType } from "@opensystemslab/planx-core/types"; diff --git a/api.planx.uk/package.json b/api.planx.uk/package.json index b18cb7196b..e6ce579b22 100644 --- a/api.planx.uk/package.json +++ b/api.planx.uk/package.json @@ -33,7 +33,6 @@ "jsondiffpatch": "^0.5.0", "jsonwebtoken": "^9.0.2", "lodash": "^4.17.21", - "lodash.omit": "^4.5.0", "mime": "^3.0.0", "multer": "^1.4.5-lts.1", "nanoid": "^3.3.7", @@ -83,7 +82,6 @@ "@types/jsdom": "^21.1.6", "@types/jsonwebtoken": "^9.0.5", "@types/lodash": "^4.14.202", - "@types/lodash.omit": "^4.5.9", "@types/mime": "^3.0.4", "@types/multer": "^1.4.11", "@types/node": "^18.18.1", diff --git a/api.planx.uk/pnpm-lock.yaml b/api.planx.uk/pnpm-lock.yaml index f1b1c73a3a..c220248b53 100644 --- a/api.planx.uk/pnpm-lock.yaml +++ b/api.planx.uk/pnpm-lock.yaml @@ -98,9 +98,6 @@ dependencies: lodash: specifier: ^4.17.21 version: 4.17.21 - lodash.omit: - specifier: ^4.5.0 - version: 4.5.0 mime: specifier: ^3.0.0 version: 3.0.0 @@ -187,9 +184,6 @@ devDependencies: '@types/lodash': specifier: ^4.14.202 version: 4.14.202 - '@types/lodash.omit': - specifier: ^4.5.9 - version: 4.5.9 '@types/mime': specifier: ^3.0.4 version: 3.0.4 @@ -1942,12 +1936,6 @@ packages: resolution: {integrity: sha512-lZuNAY9xeJt7Bx4t4dx0rYCDqGPW8RXhQZK1td7d4H6E9zYbLoOtjBvfwdTKpsyxQI/2jv+armjX/RW+ZNpXOQ==} dev: true - /@types/lodash.omit@4.5.9: - resolution: {integrity: sha512-zuAVFLUPJMOzsw6yawshsYGgq2hWUHtsZgeXHZmSFhaQQFC6EQ021uDKHkSjOpNhSvtNSU9165/o3o/Q51GpTw==} - dependencies: - '@types/lodash': 4.14.202 - dev: true - /@types/lodash@4.14.202: resolution: {integrity: sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==}