Compare commits

...

1 Commits

Author SHA1 Message Date
Simon Laux
da11148e1b fix: npm rpc: set default options for startDeltaChat
this fixes an "undefined" error
2024-05-20 18:09:55 +02:00

View File

@@ -123,7 +123,14 @@ export async function getRPCServerPath(
import { StdioDeltaChat } from "@deltachat/jsonrpc-client";
/** @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 server = spawn(pathToServerBinary, {
env: {