@zenfs/core 0.12.1 → 0.12.2

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.
@@ -19,6 +19,7 @@ declare const IndexFS_base: (abstract new (...args: any[]) => {
19
19
  linkSync(srcpath: string, dstpath: string, cred: Cred): void;
20
20
  sync(path: string, data: Uint8Array, stats: Readonly<Stats>): Promise<void>;
21
21
  syncSync(path: string, data: Uint8Array, stats: Readonly<Stats>): void;
22
+ _type?: number | undefined;
22
23
  ready(): Promise<void>;
23
24
  stat(path: string, cred: Cred): Promise<Stats>;
24
25
  statSync(path: string, cred: Cred): Stats;
@@ -166,7 +166,7 @@ export class UnlockedOverlayFS extends FileSystem {
166
166
  }
167
167
  // Create an OverlayFile.
168
168
  const file = this._readable.openFileSync(path, parseFlag('r'), cred);
169
- const stats = Stats.clone(file.statSync());
169
+ const stats = new Stats(file.statSync());
170
170
  const data = new Uint8Array(stats.size);
171
171
  file.readSync(data);
172
172
  return new PreloadFile(this, path, flag, stats, data);
@@ -55,6 +55,7 @@ declare const PortFS_base: (abstract new (...args: any[]) => {
55
55
  readdirSync(path: string, cred: Cred): string[];
56
56
  linkSync(srcpath: string, dstpath: string, cred: Cred): void;
57
57
  syncSync(path: string, data: Uint8Array, stats: Readonly<Stats>): void;
58
+ _type?: number | undefined;
58
59
  rename(oldPath: string, newPath: string, cred: Cred): Promise<void>;
59
60
  stat(path: string, cred: Cred): Promise<Stats>;
60
61
  openFile(path: string, flag: string, cred: Cred): Promise<File>;