Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
207320ff26 | |||
be99bdae66 |
@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# 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)
|
## 2025-01-07 - 11.1.2 - fix(fs)
|
||||||
Fix issues in file stability check and directory existence verification in fs module
|
Fix issues in file stability check and directory existence verification in fs module
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/smartfile",
|
"name": "@push.rocks/smartfile",
|
||||||
"private": false,
|
"private": false,
|
||||||
"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.",
|
"description": "Provides comprehensive tools for efficient file management in Node.js using TypeScript, including handling streams, virtual directories, and various file operations.",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartfile',
|
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.'
|
description: 'Provides comprehensive tools for efficient file management in Node.js using TypeScript, including handling streams, virtual directories, and various file operations.'
|
||||||
}
|
}
|
||||||
|
2
ts/fs.ts
2
ts/fs.ts
@ -433,7 +433,7 @@ export const waitForFileToBeReady = (
|
|||||||
|
|
||||||
const checkFileStability = async () => {
|
const checkFileStability = async () => {
|
||||||
try {
|
try {
|
||||||
const stats = await plugins.smartpromise.fromCallback((cb) =>
|
const stats = await plugins.smartpromise.fromCallback<plugins.fs.Stats>((cb) =>
|
||||||
plugins.fs.stat(filePathArg, cb)
|
plugins.fs.stat(filePathArg, cb)
|
||||||
);
|
);
|
||||||
if (stats.size === lastFileSize) {
|
if (stats.size === lastFileSize) {
|
||||||
|
Reference in New Issue
Block a user