From be99bdae66c4059989b696e4d85fb8e188e9aed7 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 7 Jan 2025 04:36:32 +0100 Subject: [PATCH] fix(fs): Fix TypeScript type issue in fs module --- changelog.md | 5 +++++ ts/00_commitinfo_data.ts | 2 +- ts/fs.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index d1dc6f3..110d18c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2025-01-07 - 11.1.3 - fix(fs) +Fix TypeScript type issue in fs module + +- Corrected a TypeScript type in the fs module's checkFileStability function. + ## 2025-01-07 - 11.1.2 - fix(fs) Fix issues in file stability check and directory existence verification in fs module diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 3a94637..4bd6217 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartfile', - version: '11.1.2', + version: '11.1.3', description: 'Provides comprehensive tools for efficient file management in Node.js using TypeScript, including handling streams, virtual directories, and various file operations.' } diff --git a/ts/fs.ts b/ts/fs.ts index f536ac5..3cd6ef1 100644 --- a/ts/fs.ts +++ b/ts/fs.ts @@ -433,7 +433,7 @@ export const waitForFileToBeReady = ( const checkFileStability = async () => { try { - const stats = await plugins.smartpromise.fromCallback((cb) => + const stats = await plugins.smartpromise.fromCallback((cb) => plugins.fs.stat(filePathArg, cb) ); if (stats.size === lastFileSize) {