Skip to content

Commit

Permalink
chore(deps-dev): bump prettier from 3.1.1 to 3.2.4 in /api.planx.uk (#…
Browse files Browse the repository at this point in the history
…2734)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dafydd Llŷr Pearson <[email protected]>
  • Loading branch information
dependabot[bot] and DafyddLlyr authored Feb 1, 2024
1 parent 372043a commit 79b18df
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 22 deletions.
12 changes: 4 additions & 8 deletions api.planx.uk/modules/gis/service/digitalLand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@ async function go(
if (res && res.count > 0 && res.entities) {
res.entities.forEach((entity: { dataset: any }) => {
// get the planx variable that corresponds to this entity's 'dataset', should never be null because our initial request is filtered on 'dataset'
const key = Object.keys(baseSchema).find(
(key) =>
baseSchema[key]["digital-land-datasets"]?.includes(entity.dataset),
const key = Object.keys(baseSchema).find((key) =>
baseSchema[key]["digital-land-datasets"]?.includes(entity.dataset),
);
// because there can be many digital land datasets per planx variable, check if this key is already in our result
if (key && Object.keys(formattedResult).includes(key)) {
Expand Down Expand Up @@ -255,11 +254,8 @@ async function go(
.then((responses) => {
responses.forEach((response: any) => {
// get the planx variable that corresponds to this 'dataset', should never be null because we only requested known datasets
const key = Object.keys(baseSchema).find(
(key) =>
baseSchema[key]["digital-land-datasets"]?.includes(
response.dataset,
),
const key = Object.keys(baseSchema).find((key) =>
baseSchema[key]["digital-land-datasets"]?.includes(response.dataset),
);
if (key) metadata[key] = response;
});
Expand Down
4 changes: 2 additions & 2 deletions api.planx.uk/modules/saveAndReturn/service/validateSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ async function reconcileSessionData({

const findParentNode = (nodeId: string): string | undefined => {
const [parentId, _] =
Object.entries(currentFlow).find(
([_, node]) => node.edges?.includes(nodeId),
Object.entries(currentFlow).find(([_, node]) =>
node.edges?.includes(nodeId),
) || [];
return parentId;
};
Expand Down
2 changes: 1 addition & 1 deletion api.planx.uk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"lint-staged": "^15.0.2",
"nock": "^13.4.0",
"node-dev": "^8.0.0",
"prettier": "^3.1.1",
"prettier": "^3.2.4",
"rimraf": "^5.0.5",
"supertest": "^6.3.3",
"ts-jest": "^29.1.1",
Expand Down
11 changes: 2 additions & 9 deletions api.planx.uk/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api.planx.uk/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"rootDir": ".",
"skipLibCheck": true,
"strict": true,
"target": "es2021"
"target": "es2021",
},
"exclude": ["node_modules", "dist"]
"exclude": ["node_modules", "dist"],
}

0 comments on commit 79b18df

Please sign in to comment.