mam 1.11.956 → 1.11.958

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.
Files changed (2) hide show
  1. package/node.d.ts +13 -13
  2. package/package.json +1 -1
package/node.d.ts CHANGED
@@ -804,8 +804,8 @@ declare namespace $ {
804
804
  dir: string;
805
805
  }> {
806
806
  }
807
- const $mol_run_spawn: (...args: Parameters<(typeof $node)["child_process"]["spawn"]>) => import("node:child_process").ChildProcess;
808
- const $mol_run_spawn_sync: (...args: Parameters<(typeof $node)["child_process"]["spawnSync"]>) => import("node:child_process").SpawnSyncReturns<string | NonSharedBuffer>;
807
+ const $mol_run_spawn: (...args: Parameters<(typeof $node)["child_process"]["spawn"]>) => import("child_process").ChildProcess;
808
+ const $mol_run_spawn_sync: (...args: Parameters<(typeof $node)["child_process"]["spawnSync"]>) => import("child_process").SpawnSyncReturns<string | NonSharedBuffer>;
809
809
  type $mol_run_options = {
810
810
  command: readonly string[] | string;
811
811
  dir: string;
@@ -814,10 +814,10 @@ declare namespace $ {
814
814
  };
815
815
  class $mol_run extends $mol_object {
816
816
  static async_enabled(): boolean;
817
- static spawn(options: $mol_run_options): import("node:child_process").SpawnSyncReturns<string | NonSharedBuffer> | $mol_run_error_context;
817
+ static spawn(options: $mol_run_options): import("child_process").SpawnSyncReturns<string | NonSharedBuffer> | $mol_run_error_context;
818
818
  static spawn_async({ dir, sync, timeout, command, env }: $mol_run_options & {
819
819
  sync?: boolean;
820
- }): import("node:child_process").SpawnSyncReturns<string | NonSharedBuffer> | (Promise<$mol_run_error_context> & {
820
+ }): import("child_process").SpawnSyncReturns<string | NonSharedBuffer> | (Promise<$mol_run_error_context> & {
821
821
  destructor: () => void;
822
822
  });
823
823
  static error_message(res?: $mol_run_error_context): string;
@@ -832,7 +832,7 @@ declare namespace $ {
832
832
  uri(): string;
833
833
  options(): import("node:worker_threads").WorkerOptions;
834
834
  worker_data(): unknown;
835
- worker(): Promise<import("node:worker_threads").Worker & {
835
+ worker(): Promise<import("worker_threads").Worker & {
836
836
  destructor: () => void;
837
837
  }>;
838
838
  restarts(next?: null): number;
@@ -1408,7 +1408,7 @@ declare namespace $ {
1408
1408
  declare namespace $ {
1409
1409
  class $mol_storage_node extends $mol_storage {
1410
1410
  static persisted(): boolean;
1411
- static stats(): import("node:fs").StatsFs;
1411
+ static stats(): import("fs").StatsFs;
1412
1412
  static total(): number;
1413
1413
  static used(): number;
1414
1414
  static free(): number;
@@ -1862,9 +1862,9 @@ declare namespace $ {
1862
1862
  class $mol_server extends $mol_object {
1863
1863
  express(): import("express-serve-static-core").Express;
1864
1864
  internal_ip(): string;
1865
- http(): import("node:http").Server<typeof import("node:http").IncomingMessage, typeof import("node:http").ServerResponse>;
1865
+ http(): import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>;
1866
1866
  connections: Set<import("ws").default>;
1867
- socket(): import("ws").Server<typeof import("ws").default, typeof import("node:http").IncomingMessage>;
1867
+ socket(): import("ws").Server<typeof import("ws").default, typeof import("http").IncomingMessage>;
1868
1868
  expressHandlers(): readonly $mol_server_middleware[];
1869
1869
  expressCompressor(): $mol_server_middleware;
1870
1870
  expressCors(): $mol_server_middleware;
@@ -1893,8 +1893,8 @@ declare namespace $ {
1893
1893
  expressIndexRequest(req: typeof $node.express.request, res: typeof $node.express.response): true | undefined;
1894
1894
  port(): number;
1895
1895
  lines(next?: Map<import("ws").default, string>): Map<import("ws").default, string>;
1896
- socket(): import("ws").Server<typeof import("ws").default, typeof import("node:http").IncomingMessage>;
1897
- start(): import("ws").Server<typeof import("ws").default, typeof import("node:http").IncomingMessage>;
1896
+ socket(): import("ws").Server<typeof import("ws").default, typeof import("http").IncomingMessage>;
1897
+ start(): import("ws").Server<typeof import("ws").default, typeof import("http").IncomingMessage>;
1898
1898
  protected bundles_count(reset?: null): number;
1899
1899
  /**
1900
1900
  * Держать в памяти собранные бандлы плохо, т.к. gc их может долго не утилизировать и node сожрет память и упадет.
@@ -1910,13 +1910,13 @@ declare namespace $ {
1910
1910
  bundle_changed_at(path: string): Date;
1911
1911
  notify([line, path]: [InstanceType<$node['ws']['WebSocket']>, string]): boolean;
1912
1912
  slave_commands(next?: string[]): string[];
1913
- slave_servers(): ((import("node:child_process").ChildProcessByStdio<import("node:stream").Writable, null, null> & {
1913
+ slave_servers(): ((import("child_process").ChildProcessByStdio<import("stream").Writable, null, null> & {
1914
1914
  destructor: () => void;
1915
1915
  }) | null)[];
1916
- slave_server(cmd: string): (import("node:child_process").ChildProcessByStdio<import("node:stream").Writable, null, null> & {
1916
+ slave_server(cmd: string): (import("child_process").ChildProcessByStdio<import("stream").Writable, null, null> & {
1917
1917
  destructor: () => void;
1918
1918
  }) | null;
1919
- repl(): import("node:readline").Interface;
1919
+ repl(): import("readline").Interface;
1920
1920
  }
1921
1921
  }
1922
1922
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mam",
3
- "version": "1.11.956",
3
+ "version": "1.11.958",
4
4
  "exports": {
5
5
  "node": {
6
6
  "import": "./node.mjs",