From da822445f05775a64031143e0aff2f875c514d41 Mon Sep 17 00:00:00 2001 From: Axel Pettersson Date: Mon, 18 Sep 2023 13:47:41 +0200 Subject: [PATCH] Format --- packages/party-data/index.ts | 6 +++--- packages/party-data/parties/s.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/party-data/index.ts b/packages/party-data/index.ts index 19ce43f7f..964727ffa 100644 --- a/packages/party-data/index.ts +++ b/packages/party-data/index.ts @@ -37,7 +37,7 @@ export function writePartyData( const fileName = partyFileName(abbreviation); if (!fs.existsSync(fileName)) { - fs.writeFileSync(fileName, JSON.stringify(data, null, 2)); + fs.writeFileSync(fileName, JSON.stringify(data, null, 2) + "\n"); return; } const storedData = JSON.parse( @@ -74,7 +74,7 @@ export function writePartyData( result.fetchDate = incomingData.fetchDate; storedData[link] = result; } - fs.writeFileSync(fileName, JSON.stringify(storedData, null, 2)); + fs.writeFileSync(fileName, JSON.stringify(storedData, null, 2) + "\n"); } export function updateStandpoint(abbreviation: string, standpoint: Standpoint) { @@ -83,7 +83,7 @@ export function updateStandpoint(abbreviation: string, standpoint: Standpoint) { fs.readFileSync(fileName).toString(), ) as PartyData; storedData[standpoint.url] = standpoint; - fs.writeFileSync(fileName, JSON.stringify(storedData, null, 2)); + fs.writeFileSync(fileName, JSON.stringify(storedData, null, 2) + "\n"); } function readSubjectData() { diff --git a/packages/party-data/parties/s.json b/packages/party-data/parties/s.json index 88e5d1b3e..5887f3fef 100644 --- a/packages/party-data/parties/s.json +++ b/packages/party-data/parties/s.json @@ -2029,4 +2029,4 @@ "fetchDate": "2023-09-17T17:52:38.986Z", "party": "s" } -} \ No newline at end of file +}