fix(core): update

This commit is contained in:
2022-03-31 01:45:46 +02:00
parent 95065de1b5
commit 784e54f021
14 changed files with 6599 additions and 13901 deletions

View File

@ -1,4 +1,4 @@
export * from './smartbucket.classes.smartbucket';
export * from './smartbucket.classes.bucket';
export * from './smartbucket.classes.directory';
export * from './smartbucket.classes.file';
export * from './smartbucket.classes.smartbucket.js';
export * from './smartbucket.classes.bucket.js';
export * from './smartbucket.classes.directory.js';
export * from './smartbucket.classes.file.js';

View File

@ -1,7 +1,6 @@
import * as plugins from './smartbucket.plugins';
import { SmartBucket } from './smartbucket.classes.smartbucket';
import { Directory } from './smartbucket.classes.directory';
import { Observable } from 'rxjs';
import * as plugins from './smartbucket.plugins.js';
import { SmartBucket } from './smartbucket.classes.smartbucket.js';
import { Directory } from './smartbucket.classes.directory.js';
export class Bucket {
public static async getBucketByName(smartbucketRef: SmartBucket, bucketNameArg: string) {
@ -107,7 +106,12 @@ export class Bucket {
return null;
}
fileStream.pipe(duplexStream);
const smartstream = new plugins.smartstream.Smartstream([
fileStream,
duplexStream,
plugins.smartstream.cleanPipe(),
]);
smartstream.run();
return replaySubject;
}

View File

@ -1,6 +1,6 @@
import * as plugins from './smartbucket.plugins';
import { Bucket } from './smartbucket.classes.bucket';
import { File } from './smartbucket.classes.file';
import * as plugins from './smartbucket.plugins.js';
import { Bucket } from './smartbucket.classes.bucket.js';
import { File } from './smartbucket.classes.file.js';
export class Directory {
public bucketRef: Bucket;
@ -169,7 +169,7 @@ export class Directory {
*/
public async move() {
// TODO
throw new Error('moving a directory is not yet implemented')
throw new Error('moving a directory is not yet implemented');
}
/**

View File

@ -1,5 +1,5 @@
import * as plugins from './smartbucket.plugins';
import { Directory } from './smartbucket.classes.directory';
import * as plugins from './smartbucket.plugins.js';
import { Directory } from './smartbucket.classes.directory.js';
export interface IFileMetaData {
name: string;

View File

@ -1,5 +1,5 @@
import * as plugins from './smartbucket.plugins';
import { Bucket } from './smartbucket.classes.bucket';
import * as plugins from './smartbucket.plugins.js';
import { Bucket } from './smartbucket.classes.bucket.js';
export interface ISmartBucketConfig {
endpoint: string;

View File

@ -7,8 +7,9 @@ import * as smartpath from '@pushrocks/smartpath';
import * as smartpromise from '@pushrocks/smartpromise';
import * as smartrx from '@pushrocks/smartrx';
import * as streamfunction from '@pushrocks/streamfunction';
import * as smartstream from '@pushrocks/smartstream';
export { smartpath, smartpromise, smartrx, streamfunction };
export { smartpath, smartpromise, smartrx, streamfunction, smartstream };
// third party scope
import * as minio from 'minio';