From e44b7875e6e6c46158076685237bed480f00867e Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Mon, 20 Dec 2021 16:33:13 +0100 Subject: [PATCH] fix(core): update --- package.json | 2 +- ts/index.ts | 10 ++++++++++ ts/smarts3.plugins.ts | 6 ++++-- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index bde462d..7d598ec 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "@gitzone/tsbuild": "^2.1.25", "@gitzone/tsbundle": "^1.0.78", "@gitzone/tstest": "^1.0.44", - "@pushrocks/smartbucket": "^1.0.44", "@pushrocks/tapbundle": "^3.2.9", "@types/node": "^17.0.0", "tslint": "^6.1.3", @@ -37,6 +36,7 @@ "readme.md" ], "dependencies": { + "@pushrocks/smartbucket": "^1.0.44", "@pushrocks/smartfile": "^9.0.3", "@types/s3rver": "^3.7.0", "s3rver": "^3.7.1" diff --git a/ts/index.ts b/ts/index.ts index f0575d1..fd46e64 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -40,6 +40,16 @@ export class Smarts3 { console.log('s3 server is running'); } + public async getLocalS3Descriptor(): Promise { + return { + accessKey: this.dataForClient.s3AccessKey, + accessSecret: this.dataForClient.s3AccessSecret, + endpoint: 'localhost', + port: this.dataForClient.port, + useSsl: this.dataForClient.useSsl, + } + } + public async stop() { await this.s3Instance.close(); } diff --git a/ts/smarts3.plugins.ts b/ts/smarts3.plugins.ts index 9378cca..95a113f 100644 --- a/ts/smarts3.plugins.ts +++ b/ts/smarts3.plugins.ts @@ -6,10 +6,12 @@ export { } // pushrocks scope -import * as samrtfile from '@pushrocks/smartfile'; +import * as smartbucket from '@pushrocks/smartbucket'; +import * as smartfile from '@pushrocks/smartfile'; export { - samrtfile as smartfile + smartbucket, + smartfile, } // thirdparty scope