@openfin/multer-s3
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -30,3 +30,3 @@ "use strict"; | ||
return resolve({ | ||
contentType: STORAGE_DEFAULTS.contentType, | ||
contentType: "", | ||
reStream | ||
@@ -66,2 +66,11 @@ }); | ||
} | ||
if (kindOf(vopts.contentType) === "string") { | ||
this.contentType = () => Promise.resolve(vopts.contentType); | ||
} | ||
else if (kindOf(vopts.contentType) == "function") { | ||
this.contentType = vopts.contentType; | ||
} | ||
else { | ||
throw new Error("contentType must be a string, function or null/undefined"); | ||
} | ||
if (kindOf(vopts.key) === "function") { | ||
@@ -68,0 +77,0 @@ this.key = vopts.key; |
{ | ||
"name": "@openfin/multer-s3", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
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
39312
394