fix(core): update
This commit is contained in:
parent
72d1e1e5a2
commit
2cacfcf990
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartbucket',
|
name: '@push.rocks/smartbucket',
|
||||||
version: '3.0.0',
|
version: '3.0.1',
|
||||||
description: 'A TypeScript library for simple cloud independent object storage with support for buckets, directories, and files.'
|
description: 'A TypeScript library for simple cloud independent object storage with support for buckets, directories, and files.'
|
||||||
}
|
}
|
||||||
|
@ -96,14 +96,14 @@ export class Bucket {
|
|||||||
.getObject(this.name, optionsArg.path)
|
.getObject(this.name, optionsArg.path)
|
||||||
.catch((e) => console.log(e));
|
.catch((e) => console.log(e));
|
||||||
const replaySubject = new plugins.smartrx.rxjs.ReplaySubject<Buffer>();
|
const replaySubject = new plugins.smartrx.rxjs.ReplaySubject<Buffer>();
|
||||||
const duplexStream = new plugins.smartstream.SmartDuplex<Buffer, Buffer>({
|
const duplexStream = new plugins.smartstream.SmartDuplex<Buffer, void>({
|
||||||
writeFunction: async (chunk) => {
|
writeFunction: async (chunk) => {
|
||||||
replaySubject.next(chunk);
|
replaySubject.next(chunk);
|
||||||
return chunk;
|
return;
|
||||||
},
|
},
|
||||||
finalFunction: async (cb) => {
|
finalFunction: async (cb) => {
|
||||||
replaySubject.complete();
|
replaySubject.complete();
|
||||||
return Buffer.from('');
|
return;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -71,6 +71,7 @@ export class Directory {
|
|||||||
);
|
);
|
||||||
const fileArray: File[] = [];
|
const fileArray: File[] = [];
|
||||||
const duplexStream = new plugins.smartstream.SmartDuplex<plugins.minio.BucketItem, void>({
|
const duplexStream = new plugins.smartstream.SmartDuplex<plugins.minio.BucketItem, void>({
|
||||||
|
objectMode: true,
|
||||||
writeFunction: async (bucketItem) => {
|
writeFunction: async (bucketItem) => {
|
||||||
if (bucketItem.prefix) {
|
if (bucketItem.prefix) {
|
||||||
return;
|
return;
|
||||||
@ -113,6 +114,7 @@ export class Directory {
|
|||||||
);
|
);
|
||||||
const directoryArray: Directory[] = [];
|
const directoryArray: Directory[] = [];
|
||||||
const duplexStream = new plugins.smartstream.SmartDuplex<plugins.minio.BucketItem, void>({
|
const duplexStream = new plugins.smartstream.SmartDuplex<plugins.minio.BucketItem, void>({
|
||||||
|
objectMode: true,
|
||||||
writeFunction: async (bucketItem) => {
|
writeFunction: async (bucketItem) => {
|
||||||
if (bucketItem.name) {
|
if (bucketItem.name) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user