@zenfs/core 1.0.2 → 1.0.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.
@@ -42,7 +42,7 @@ export declare class Index extends Map<string, Stats> {
42
42
  */
43
43
  static parse(data: string): Index;
44
44
  }
45
- declare const IndexFS_base: import("../mixins/shared.js").Mixin<typeof FileSystem, {
45
+ declare const IndexFS_base: import("../index.js").Mixin<typeof FileSystem, {
46
46
  metadata(): import("../filesystem.js").FileSystemMetadata;
47
47
  rename(oldPath: string, newPath: string): Promise<void>;
48
48
  renameSync(oldPath: string, newPath: string): void;
@@ -51,7 +51,7 @@ interface FSRequest<TMethod extends FSMethod = FSMethod> extends RPC.Request {
51
51
  method: TMethod;
52
52
  args: Parameters<FSMethods[TMethod]>;
53
53
  }
54
- declare const PortFS_base: import("../../mixins/shared.js").Mixin<typeof FileSystem, {
54
+ declare const PortFS_base: import("../../index.js").Mixin<typeof FileSystem, {
55
55
  _sync?: FileSystem | undefined;
56
56
  queueDone(): Promise<void>;
57
57
  ready(): Promise<void>;
@@ -10,7 +10,7 @@ export function isMessage(arg) {
10
10
  }
11
11
  const executors = new Map();
12
12
  export function request(request, { port, timeout = 1000, fs } = {}) {
13
- const stack = new Error().stack.slice('Error:'.length);
13
+ const stack = '\n' + new Error().stack.slice('Error:'.length);
14
14
  if (!port) {
15
15
  throw ErrnoError.With('EINVAL');
16
16
  }