From 477736da8200b10b9e9d23edb452375d8f805a62 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Thu, 6 Jun 2024 23:33:35 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/fs.ts | 7 +++---- ts/plugins.ts | 3 ++- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 8ba0378..ac4b21c 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.0.17', + version: '11.0.18', 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 5b3c646..4d9de90 100644 --- a/ts/fs.ts +++ b/ts/fs.ts @@ -486,7 +486,6 @@ export let toFs = async ( return await done.promise; }; - - - - +export const stat = async (filePathArg: string) => { + return plugins.fsPromises.stat(filePathArg); +} diff --git a/ts/plugins.ts b/ts/plugins.ts index 244a594..dd5bb60 100644 --- a/ts/plugins.ts +++ b/ts/plugins.ts @@ -1,9 +1,10 @@ // node native scope import * as fs from 'fs'; +import * as fsPromises from 'fs/promises'; import * as path from 'path'; import * as stream from 'stream'; -export { fs, path, stream }; +export { fs, fsPromises, path, stream }; // @pushrocks scope import * as lik from '@push.rocks/lik';