Compare commits

..

4 Commits

Author SHA1 Message Date
95065de1b5 1.0.44 2021-12-18 01:28:22 +01:00
ea9d0f58e9 fix(core): update 2021-12-18 01:28:22 +01:00
9592ab863a 1.0.43 2021-12-18 01:13:02 +01:00
b60ece389c fix(core): update 2021-12-18 01:13:02 +01:00
3 changed files with 5 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@pushrocks/smartbucket", "name": "@pushrocks/smartbucket",
"version": "1.0.42", "version": "1.0.44",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@pushrocks/smartbucket", "name": "@pushrocks/smartbucket",
"version": "1.0.42", "version": "1.0.44",
"license": "UNLICENSED", "license": "UNLICENSED",
"dependencies": { "dependencies": {
"@pushrocks/qenv": "^4.0.10", "@pushrocks/qenv": "^4.0.10",

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartbucket", "name": "@pushrocks/smartbucket",
"version": "1.0.42", "version": "1.0.44",
"description": "simple cloud independent object storage", "description": "simple cloud independent object storage",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts", "typings": "dist_ts/index.d.ts",

View File

@ -4,6 +4,7 @@ import { Bucket } from './smartbucket.classes.bucket';
export interface ISmartBucketConfig { export interface ISmartBucketConfig {
endpoint: string; endpoint: string;
port?: number; port?: number;
useSsl?: boolean;
accessKey: string; accessKey: string;
accessSecret: string; accessSecret: string;
} }
@ -21,7 +22,7 @@ export class SmartBucket {
this.minioClient = new plugins.minio.Client({ this.minioClient = new plugins.minio.Client({
endPoint: this.config.endpoint, endPoint: this.config.endpoint,
port: configArg.port || 443, port: configArg.port || 443,
useSSL: true, useSSL: configArg.useSsl !== undefined ? configArg.useSsl : true,
accessKey: this.config.accessKey, accessKey: this.config.accessKey,
secretKey: this.config.accessSecret, secretKey: this.config.accessSecret,
}); });