@componentor/fs 3.0.29 → 3.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +3 -0
- package/dist/index.js +26 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -545,6 +545,9 @@ declare class VFSFileSystem {
|
|
|
545
545
|
futimes(fd: number, atime: Date | number, mtime: Date | number, callback: (err: Error | null) => void): void;
|
|
546
546
|
fchmod(fd: number, mode: number, callback: (err: Error | null) => void): void;
|
|
547
547
|
fchown(fd: number, uid: number, gid: number, callback: (err: Error | null) => void): void;
|
|
548
|
+
lchmod(filePath: string, mode: number, callback: (err: Error | null) => void): void;
|
|
549
|
+
lchown(filePath: string, uid: number, gid: number, callback: (err: Error | null) => void): void;
|
|
550
|
+
lutimes(filePath: string, atime: Date | number, mtime: Date | number, callback: (err: Error | null) => void): void;
|
|
548
551
|
}
|
|
549
552
|
declare class VFSPromises {
|
|
550
553
|
private _async;
|
package/dist/index.js
CHANGED
|
@@ -3082,9 +3082,9 @@ var VFSFileSystem = class {
|
|
|
3082
3082
|
}
|
|
3083
3083
|
try {
|
|
3084
3084
|
const bytesRead = this.readvSync(fd, buffers, pos);
|
|
3085
|
-
cb(null, bytesRead, buffers);
|
|
3085
|
+
setTimeout(() => cb(null, bytesRead, buffers), 0);
|
|
3086
3086
|
} catch (err) {
|
|
3087
|
-
cb(err);
|
|
3087
|
+
setTimeout(() => cb(err), 0);
|
|
3088
3088
|
}
|
|
3089
3089
|
}
|
|
3090
3090
|
writev(fd, buffers, positionOrCallback, callback) {
|
|
@@ -3099,9 +3099,9 @@ var VFSFileSystem = class {
|
|
|
3099
3099
|
}
|
|
3100
3100
|
try {
|
|
3101
3101
|
const bytesWritten = this.writevSync(fd, buffers, pos);
|
|
3102
|
-
cb(null, bytesWritten, buffers);
|
|
3102
|
+
setTimeout(() => cb(null, bytesWritten, buffers), 0);
|
|
3103
3103
|
} catch (err) {
|
|
3104
|
-
cb(err);
|
|
3104
|
+
setTimeout(() => cb(err), 0);
|
|
3105
3105
|
}
|
|
3106
3106
|
}
|
|
3107
3107
|
// ---- statfs methods ----
|
|
@@ -3502,17 +3502,17 @@ var VFSFileSystem = class {
|
|
|
3502
3502
|
fdatasync(fd, callback) {
|
|
3503
3503
|
try {
|
|
3504
3504
|
this.fdatasyncSync(fd);
|
|
3505
|
-
callback(null);
|
|
3505
|
+
setTimeout(() => callback(null), 0);
|
|
3506
3506
|
} catch (err) {
|
|
3507
|
-
callback(err);
|
|
3507
|
+
setTimeout(() => callback(err), 0);
|
|
3508
3508
|
}
|
|
3509
3509
|
}
|
|
3510
3510
|
fsync(fd, callback) {
|
|
3511
3511
|
try {
|
|
3512
3512
|
this.fsyncSync(fd);
|
|
3513
|
-
callback(null);
|
|
3513
|
+
setTimeout(() => callback(null), 0);
|
|
3514
3514
|
} catch (err) {
|
|
3515
|
-
callback(err);
|
|
3515
|
+
setTimeout(() => callback(err), 0);
|
|
3516
3516
|
}
|
|
3517
3517
|
}
|
|
3518
3518
|
fstat(fd, optionsOrCallback, callback) {
|
|
@@ -3599,6 +3599,24 @@ var VFSFileSystem = class {
|
|
|
3599
3599
|
fchown(fd, uid, gid, callback) {
|
|
3600
3600
|
setTimeout(() => callback(null), 0);
|
|
3601
3601
|
}
|
|
3602
|
+
lchmod(filePath, mode, callback) {
|
|
3603
|
+
this.promises.lchmod(filePath, mode).then(
|
|
3604
|
+
() => setTimeout(() => callback(null), 0),
|
|
3605
|
+
(err) => setTimeout(() => callback(err), 0)
|
|
3606
|
+
);
|
|
3607
|
+
}
|
|
3608
|
+
lchown(filePath, uid, gid, callback) {
|
|
3609
|
+
this.promises.lchown(filePath, uid, gid).then(
|
|
3610
|
+
() => setTimeout(() => callback(null), 0),
|
|
3611
|
+
(err) => setTimeout(() => callback(err), 0)
|
|
3612
|
+
);
|
|
3613
|
+
}
|
|
3614
|
+
lutimes(filePath, atime, mtime, callback) {
|
|
3615
|
+
this.promises.lutimes(filePath, atime, mtime).then(
|
|
3616
|
+
() => setTimeout(() => callback(null), 0),
|
|
3617
|
+
(err) => setTimeout(() => callback(err), 0)
|
|
3618
|
+
);
|
|
3619
|
+
}
|
|
3602
3620
|
};
|
|
3603
3621
|
var VFSPromises = class {
|
|
3604
3622
|
_async;
|