fix(structure): format
This commit is contained in:
12
ts/index.ts
12
ts/index.ts
@@ -22,8 +22,8 @@ export class Smarts3 {
|
||||
this.options = optionsArg;
|
||||
this.options = {
|
||||
...this.options,
|
||||
...optionsArg
|
||||
}
|
||||
...optionsArg,
|
||||
};
|
||||
}
|
||||
|
||||
public async start() {
|
||||
@@ -36,8 +36,8 @@ export class Smarts3 {
|
||||
port: this.options.port || 3000,
|
||||
address: '0.0.0.0',
|
||||
silent: false,
|
||||
directory: paths.bucketsDir
|
||||
})
|
||||
directory: paths.bucketsDir,
|
||||
});
|
||||
await this.s3Instance.run();
|
||||
console.log('s3 server is running');
|
||||
}
|
||||
@@ -49,7 +49,7 @@ export class Smarts3 {
|
||||
endpoint: 'localhost',
|
||||
port: this.options.port,
|
||||
useSsl: false,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public async createBucket(bucketNameArg: string) {
|
||||
@@ -61,4 +61,4 @@ export class Smarts3 {
|
||||
public async stop() {
|
||||
await this.s3Instance.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user