Skip to content

Commit

Permalink
Merge pull request #10 from hapinessjs/next
Browse files Browse the repository at this point in the history
release(version): v2.0.2
  • Loading branch information
akanass authored Feb 14, 2019
2 parents 04cae68 + a3f21ce commit 919acc3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public getPartialObject(bucketName: string, objectName: string, offset: number,
public fGetObject(bucketName: string, objectName: string, filePath: string): Observable<boolean>;

/* Uploads an object from a stream/Buffer */
public putObject(bucketName: string, objectName: string, stream: Readable | string | Buffer, size?: number, metadata?: minio.ItemBucketMetadata | string): Observable<string>;
public putObject(bucketName: string, objectName: string, stream: Stream | string | Buffer, size?: number, metadata?: minio.ItemBucketMetadata | string): Observable<string>;

/* Uploads contents from a file to objectName */
public fPutObject(bucketName: string, objectName: string, filePath: string, metadata?: minio.ItemBucketMetadata | string): Observable<string>;
Expand Down Expand Up @@ -311,6 +311,8 @@ To set up your development environment:

## Change History

* v2.0.2 (2019-02-14 🌹)
* Update input types of putObject to Stream
* v2.0.1 (2019-01-29)
* fixed 'content-type' key in metadata.
* v2.0.0 (2018-10-16)
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hapiness/minio",
"version": "2.0.1",
"version": "2.0.2",
"description": "Hapiness module for minio",
"main": "commonjs/index.js",
"types": "index.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions src/module/services/minio.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as minio from 'minio';
import { EventEmitter } from 'events';
import { Readable, Stream } from 'stream';
import { Stream } from 'stream';
import { Injectable, Inject } from '@hapiness/core';

import { Observable } from 'rxjs';
Expand Down Expand Up @@ -239,7 +239,7 @@ export class MinioService {
*
* @param bucketName Name of the bucket
* @param objectName Name of the object
* @param stream Readable stream (from require('stream').Readable)
* @param stream Stream | string | Buffer
* @param size Size of the object (optional)
* @param metadata Metadata of the object or Content-Type (optional, default { contentType: application/octet-stream })
*
Expand All @@ -255,7 +255,7 @@ export class MinioService {
public putObject(
bucketName: string,
objectName: string,
stream: Readable | string | Buffer,
stream: Stream | string | Buffer,
size?: number,
metadata?: minio.ItemBucketMetadata | string
): Observable<string> {
Expand Down

0 comments on commit 919acc3

Please sign in to comment.