mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
fix: npm rpc: set default options for startDeltaChat
this fixes an "undefined" error
This commit is contained in:
@@ -123,7 +123,14 @@ export async function getRPCServerPath(
|
|||||||
import { StdioDeltaChat } from "@deltachat/jsonrpc-client";
|
import { StdioDeltaChat } from "@deltachat/jsonrpc-client";
|
||||||
|
|
||||||
/** @type {import("./index").FnTypes.startDeltaChat} */
|
/** @type {import("./index").FnTypes.startDeltaChat} */
|
||||||
export async function startDeltaChat(directory, options) {
|
export async function startDeltaChat(
|
||||||
|
directory,
|
||||||
|
options = {
|
||||||
|
skipSearchInPath: false,
|
||||||
|
disableEnvPath: false,
|
||||||
|
muteStdErr: false,
|
||||||
|
}
|
||||||
|
) {
|
||||||
const pathToServerBinary = await getRPCServerPath(options);
|
const pathToServerBinary = await getRPCServerPath(options);
|
||||||
const server = spawn(pathToServerBinary, {
|
const server = spawn(pathToServerBinary, {
|
||||||
env: {
|
env: {
|
||||||
|
|||||||
Reference in New Issue
Block a user