diff --git a/CHANGELOG.md b/CHANGELOG.md index 8395e5c..afbe67c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,12 @@ 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 ### Fixed 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" 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);