From 08cf42b39afabc80ea130051700fa258dee2cfd9 Mon Sep 17 00:00:00 2001 From: adarleyjrr <50996706+adarleyjrr@users.noreply.github.com> Date: Tue, 16 Jul 2024 14:30:20 -0400 Subject: [PATCH 1/2] fix: for csv maker awaitable event logic --- CHANGELOG.md | 2 ++ src/helpers/csv/index.ts | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8395e5c..f795bdd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Fixes awaitable event logic in CSV maker promise + ## [3.0.1] - 2024-05-16 ### Fixed diff --git a/src/helpers/csv/index.ts b/src/helpers/csv/index.ts index 6d1d53a..db363e0 100644 --- a/src/helpers/csv/index.ts +++ b/src/helpers/csv/index.ts @@ -143,7 +143,6 @@ export const makeCsv = async (dir: string, name: string, content: Input, opts: O .on('error', reject) .on('finish', () => { writeStream.end(); - resolve(); }); writeStream.on('error', reject).on('finish', resolve); From ef7c53d8d808e7ce52de9f702e4f84445737265d Mon Sep 17 00:00:00 2001 From: adarleyjrr <50996706+adarleyjrr@users.noreply.github.com> Date: Tue, 16 Jul 2024 14:32:30 -0400 Subject: [PATCH 2/2] build: bumping version 3.0.2 --- CHANGELOG.md | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f795bdd..afbe67c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +## [3.0.2] - 2024-07-16 + +### Fixed + - Fixes awaitable event logic in CSV maker promise ## [3.0.1] - 2024-05-16 diff --git a/package.json b/package.json index e87355b..1baa7b2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@perimetre/helpers", "description": "Our bundle with all of our utilities and reusable helpers", - "version": "3.0.1", + "version": "3.0.2", "repository": { "type": "git", "url": "git+https://github.com/perimetre/helpers.git"