diff --git a/src/darwin.ts b/src/darwin.ts index d1f58a9..28cb975 100644 --- a/src/darwin.ts +++ b/src/darwin.ts @@ -4,14 +4,14 @@ import { Remitter } from "remitter"; import { OVMDarwinStatusName } from "./type"; import type { OVMDarwinOptions, OVMDarwinEventData, OVMDarwinInfo, OVMDarwinState } from "./type"; import { Restful } from "./event_restful"; -import { Request } from "./request"; +import { RequestDarwin } from "./request"; import path from "node:path"; import { tmpdir } from "node:os"; export class DarwinOVM { private readonly remitter = new Remitter(); private eventSocketPath: string; - private request: Request; + private request: RequestDarwin; private constructor(private options: OVMDarwinOptions) {} @@ -46,7 +46,7 @@ export class DarwinOVM { } private initRequest(): void { - this.request = new Request(this.options.socketDir, this.options.name); + this.request = new RequestDarwin(this.options.socketDir, this.options.name); } private async initPath(): Promise { diff --git a/src/request.ts b/src/request.ts index 68c7bb3..c44e655 100644 --- a/src/request.ts +++ b/src/request.ts @@ -32,7 +32,7 @@ const generateRequest = async (option: RequestOptions): Promise => { }); }; -export class Request { +export class RequestDarwin { private readonly socketPath: string; public constructor(socketDir: string, name: string) {