Comparing version 0.1.1 to 0.1.2
'use strict'; | ||
const path = require('path'); | ||
const { Readable, Writable } = require('stream'); | ||
const uuidV4 = require('uuid/v4'); | ||
@@ -19,3 +18,3 @@ | ||
* | ||
* @param {Readable} src | ||
* @param {Stream} src | ||
* @param {object} options | ||
@@ -28,4 +27,4 @@ * @returns {Promise} | ||
if (!(src instanceof Readable)) | ||
throw new TypeError('Source must be readable stream'); | ||
if (!src) | ||
throw new TypeError('Source must be stream'); | ||
@@ -60,4 +59,4 @@ return new Promise((resolve, reject) => { | ||
if (!(dst instanceof Writable)) | ||
throw new TypeError('Destination must be readable stream'); | ||
if (!dst) | ||
throw new TypeError('Destination must be stream'); | ||
@@ -64,0 +63,0 @@ return new Promise((resolve, reject) => { |
{ | ||
"name": "giga", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Easy streaming upload and download for storages(File System, AWS S3)", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12187
238