diff --git a/src/logger.ts b/src/logger.ts index 6151223..57bad90 100644 --- a/src/logger.ts +++ b/src/logger.ts @@ -16,4 +16,4 @@ const defaultLogger: Logger = { }, }; -export { Logger, defaultLogger } +export { Logger, defaultLogger }; diff --git a/src/sandbox.ts b/src/sandbox.ts index 3c85d64..5aa4736 100644 --- a/src/sandbox.ts +++ b/src/sandbox.ts @@ -217,7 +217,7 @@ async function createSandbox(logger: Logger = defaultLogger): Promise { options ); }, - exec: (command: string, options: CommandOptions & RetryOptions) => + exec: (command: string, options: CommandOptions & RetryOptions = {}) => retry( () => new Promise((resolve, reject) => { @@ -257,7 +257,7 @@ async function createSandbox(logger: Logger = defaultLogger): Promise { logger, options ), - spawn: (command: string, options: CommandOptions) => { + spawn: (command: string, options: CommandOptions = {}) => { logger.log(`Spawning "${command}" command...`); const env = options.env || {};