bare-fs 4.5.1 → 4.5.3

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/binding.c CHANGED
@@ -2128,9 +2128,11 @@ bare_fs_exports(js_env_t *env, js_value_t *exports) {
2128
2128
  V("read", bare_fs_read)
2129
2129
  V("readSync", bare_fs_read_sync)
2130
2130
  V("readv", bare_fs_readv)
2131
+ V("readvSync", bare_fs_readv_sync)
2131
2132
  V("write", bare_fs_write)
2132
2133
  V("writeSync", bare_fs_write_sync)
2133
2134
  V("writev", bare_fs_writev)
2135
+ V("writevSync", bare_fs_writev_sync)
2134
2136
  V("ftruncate", bare_fs_ftruncate)
2135
2137
  V("ftruncateSync", bare_fs_ftruncate_sync)
2136
2138
  V("chmod", bare_fs_chmod)
package/index.d.ts CHANGED
@@ -38,8 +38,7 @@ interface Callback<A extends unknown[] = []> {
38
38
  }
39
39
 
40
40
  export interface Dir<T extends string | Buffer = string | Buffer>
41
- extends Iterable<Dirent>,
42
- AsyncIterable<Dirent> {
41
+ extends Iterable<Dirent>, AsyncIterable<Dirent> {
43
42
  readonly path: string
44
43
 
45
44
  read(): Promise<Dirent<T> | null>
@@ -172,7 +171,8 @@ export interface WatcherEvents<T extends string | Buffer = string | Buffer> exte
172
171
  }
173
172
 
174
173
  export interface Watcher<T extends string | Buffer = string | Buffer>
175
- extends EventEmitter<WatcherEvents<T>>,
174
+ extends
175
+ EventEmitter<WatcherEvents<T>>,
176
176
  AsyncIterable<{ eventType: WatcherEventType; filename: T }> {
177
177
  close(): void
178
178
  ref(): void
package/index.js CHANGED
@@ -1866,8 +1866,8 @@ class Dir {
1866
1866
  }
1867
1867
 
1868
1868
  class Dirent {
1869
- constructor(path, name, type) {
1870
- this.path = path
1869
+ constructor(parentPath, name, type) {
1870
+ this.parentPath = parentPath
1871
1871
  this.name = name
1872
1872
  this.type = type
1873
1873
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-fs",
3
- "version": "4.5.1",
3
+ "version": "4.5.3",
4
4
  "description": "Native file system operations for Javascript",
5
5
  "exports": {
6
6
  "./package": "./package.json",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file