fix(core): update

This commit is contained in:
2024-02-10 04:36:34 +01:00
parent f3a0ff1f63
commit 150bf944de
5 changed files with 24 additions and 33 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartbucket',
version: '2.0.3',
version: '2.0.4',
description: 'simple cloud independent object storage'
}

View File

@ -1,23 +1,15 @@
import * as plugins from './smartbucket.plugins.js';
import { Bucket } from './smartbucket.classes.bucket.js';
export interface ISmartBucketConfig {
endpoint: string;
port?: number;
useSsl?: boolean;
accessKey: string;
accessSecret: string;
}
export class SmartBucket {
public config: ISmartBucketConfig;
public config: plugins.tsclass.storage.IS3Descriptor;
public minioClient: plugins.minio.Client;
/**
* the constructor of SmartBucket
*/
constructor(configArg: ISmartBucketConfig) {
constructor(configArg: plugins.tsclass.storage.IS3Descriptor) {
this.config = configArg;
this.minioClient = new plugins.minio.Client({
endPoint: this.config.endpoint,

View File

@ -3,6 +3,7 @@ import * as path from 'path';
export { path };
// @push.rocks scope
import * as smartpath from '@push.rocks/smartpath';
import * as smartpromise from '@push.rocks/smartpromise';
import * as smartrx from '@push.rocks/smartrx';
@ -10,6 +11,13 @@ import * as smartstream from '@push.rocks/smartstream';
export { smartpath, smartpromise, smartrx, smartstream };
// @tsclass
import * as tsclass from '@tsclass/tsclass';
export {
tsclass,
}
// third party scope
import * as minio from 'minio';