@@ -19,7 +19,9 @@ export class Sandbox<Env = unknown> extends Container<Env> {
1919 ) ;
2020 } ,
2121 onCommandStart : ( command , args ) => {
22- console . log ( `[Container] Command started: ${ command } ${ args . join ( " " ) } ` ) ;
22+ console . log (
23+ `[Container] Command started: ${ command } ${ args . join ( " " ) } `
24+ ) ;
2325 } ,
2426 onError : ( error , command , args ) => {
2527 console . error ( `[Container] Command error: ${ error } ` ) ;
@@ -74,7 +76,7 @@ export class Sandbox<Env = unknown> extends Container<Env> {
7476
7577 async mkdir (
7678 path : string ,
77- options : { recursive ?: boolean ; stream ?: boolean }
79+ options : { recursive ?: boolean ; stream ?: boolean } = { }
7880 ) {
7981 if ( options ?. stream ) {
8082 return this . client . mkdirStream ( path , options . recursive ) ;
@@ -85,15 +87,15 @@ export class Sandbox<Env = unknown> extends Container<Env> {
8587 async writeFile (
8688 path : string ,
8789 content : string ,
88- options : { encoding ?: string ; stream ?: boolean }
90+ options : { encoding ?: string ; stream ?: boolean } = { }
8991 ) {
9092 if ( options ?. stream ) {
9193 return this . client . writeFileStream ( path , content , options . encoding ) ;
9294 }
9395 return this . client . writeFile ( path , content , options . encoding ) ;
9496 }
9597
96- async deleteFile ( path : string , options : { stream ?: boolean } ) {
98+ async deleteFile ( path : string , options : { stream ?: boolean } = { } ) {
9799 if ( options ?. stream ) {
98100 return this . client . deleteFileStream ( path ) ;
99101 }
@@ -103,7 +105,7 @@ export class Sandbox<Env = unknown> extends Container<Env> {
103105 async renameFile (
104106 oldPath : string ,
105107 newPath : string ,
106- options : { stream ?: boolean }
108+ options : { stream ?: boolean } = { }
107109 ) {
108110 if ( options ?. stream ) {
109111 return this . client . renameFileStream ( oldPath , newPath ) ;
@@ -114,7 +116,7 @@ export class Sandbox<Env = unknown> extends Container<Env> {
114116 async moveFile (
115117 sourcePath : string ,
116118 destinationPath : string ,
117- options : { stream ?: boolean }
119+ options : { stream ?: boolean } = { }
118120 ) {
119121 if ( options ?. stream ) {
120122 return this . client . moveFileStream ( sourcePath , destinationPath ) ;
@@ -124,7 +126,7 @@ export class Sandbox<Env = unknown> extends Container<Env> {
124126
125127 async readFile (
126128 path : string ,
127- options : { encoding ?: string ; stream ?: boolean }
129+ options : { encoding ?: string ; stream ?: boolean } = { }
128130 ) {
129131 if ( options ?. stream ) {
130132 return this . client . readFileStream ( path , options . encoding ) ;
0 commit comments