Comparing version 3.1.1 to 3.1.2
@@ -170,6 +170,5 @@ /* | ||
function probeContentType(path) { | ||
if (!_mimeTypes2['default'].lookup(path)) { | ||
var contentType = _mimeTypes2['default'].lookup(path); | ||
if (!contentType) { | ||
contentType = 'application/octet-stream'; | ||
} else { | ||
contentType = _mimeTypes2['default'].lookup(filePath); | ||
} | ||
@@ -176,0 +175,0 @@ return contentType; |
@@ -147,3 +147,3 @@ /* | ||
return getConcater(function (xmlString) { | ||
if (!xmlString) { | ||
var getError = function getError() { | ||
// Message should be instantiated for each S3Errors. | ||
@@ -157,4 +157,13 @@ var e = new errors.S3Error(message); | ||
return e; | ||
}; | ||
if (!xmlString) { | ||
return getError(); | ||
} | ||
return xmlParsers.parseError(xmlString, headerInfo); | ||
var e = undefined; | ||
try { | ||
e = xmlParsers.parseError(xmlString, headerInfo); | ||
} catch (ex) { | ||
return getError(); | ||
} | ||
return e; | ||
}, true); | ||
@@ -161,0 +170,0 @@ } |
@@ -71,5 +71,5 @@ # JavaScript Client API Reference [![Slack](https://slack.minio.io/slack?type=svg)](https://slack.minio.io) | ||
|`secure` | _bool_ |If set to true, https is used instead of http. Default is https if not set. | | ||
|`region` | _string_ |Set this value to override auto bucket region discovery. (Optional)| | ||
__Example__ | ||
@@ -137,4 +137,2 @@ | ||
__Example__ | ||
@@ -141,0 +139,0 @@ |
{ | ||
"name": "minio", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "S3 Compatible Cloud Storage client", | ||
@@ -5,0 +5,0 @@ "main": "./dist/main/minio.js", |
@@ -16,3 +16,3 @@ # Minio JavaScript Library for Amazon S3 Compatible Cloud Storage [![Slack](https://slack.minio.io/slack?type=svg)](https://slack.minio.io) | ||
npm install --save minio@3.1.1 | ||
npm install --save minio@3.1.2 | ||
@@ -19,0 +19,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
2868175
64
70054
3