fix(core): update

This commit is contained in:
Philipp Kunz 2020-05-17 16:19:16 +00:00
parent 43d29947c5
commit 9dbd19d1a9
3 changed files with 7 additions and 7 deletions

6
package-lock.json generated
View File

@ -1179,9 +1179,9 @@
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw=="
},
"minio": {
"version": "7.0.12",
"resolved": "https://verdaccio.lossless.one/minio/-/minio-7.0.12.tgz",
"integrity": "sha512-mTa8bc2X1vcKwbzvNMNk/DHkuSrlfjlG3aA8IA1qihlH73XbwiloX/6skCabmDvrmmt6cx6pytaBJZmp4OMwnw==",
"version": "7.0.16",
"resolved": "https://verdaccio.lossless.one/minio/-/minio-7.0.16.tgz",
"integrity": "sha512-OgCJ3XVMzukSqoMFBiBDeyz30BxYTBM9yRLVRBCExTb+QKVxJh4DnUOS2/zw7OPeDyXXEvYSzDvg4FkCf1Cxyw==",
"requires": {
"async": "^3.1.0",
"block-stream2": "^2.0.0",

View File

@ -25,7 +25,7 @@
"@pushrocks/smartrx": "^2.0.5",
"@pushrocks/streamfunction": "^1.0.24",
"@types/minio": "^7.0.5",
"minio": "7.0.12"
"minio": "^7.0.16"
},
"private": false,
"files": [

View File

@ -57,7 +57,7 @@ export class Directory {
*/
public async listFiles(): Promise<File[]> {
const done = plugins.smartpromise.defer();
const fileNameStream = await this.bucketRef.smartbucketRef.minioClient.listObjectsV2(
const fileNameStream = await this.bucketRef.smartbucketRef.minioClient.listObjects(
this.bucketRef.name,
this.getBasePath()
);
@ -89,7 +89,7 @@ export class Directory {
*/
public async listDirectories(): Promise<Directory[]> {
const done = plugins.smartpromise.defer();
const completeDirStream = await this.bucketRef.smartbucketRef.minioClient.listObjectsV2(
const completeDirStream = await this.bucketRef.smartbucketRef.minioClient.listObjects(
this.bucketRef.name,
this.getBasePath(),
true
@ -122,7 +122,7 @@ export class Directory {
* gets an array that has all objects with a certain prefix;
*/
public async getTreeArray() {
const treeArray = await this.bucketRef.smartbucketRef.minioClient.listObjectsV2(
const treeArray = await this.bucketRef.smartbucketRef.minioClient.listObjects(
this.bucketRef.name,
this.getBasePath(),
true