From 545f5d35f5cc988d31a354e59e971edd62ee430c Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Mon, 20 Dec 2021 19:36:54 +0100 Subject: [PATCH] fix(core): update --- ts/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ts/index.ts b/ts/index.ts index 4f4ef23..b4d0dec 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -52,6 +52,12 @@ export class Smarts3 { } } + public async createBucket(bucketNameArg: string) { + const smartbucketInstance = new plugins.smartbucket.SmartBucket(await this.getS3Descriptor()); + const bucket = await smartbucketInstance.createBucket(bucketNameArg); + return bucket; + } + public async stop() { await this.s3Instance.close(); }