Comparing version 7.0.15 to 7.0.16
@@ -14,2 +14,8 @@ "use strict"; | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
@@ -19,8 +25,6 @@ | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
// AnonymousRequestError is generated for anonymous keys on specific | ||
@@ -31,6 +35,8 @@ // APIs. NOTE: PresignedURL generation always requires access keys. | ||
var _super = _createSuper(AnonymousRequestError); | ||
function AnonymousRequestError(message) { | ||
_classCallCheck(this, AnonymousRequestError); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(AnonymousRequestError).call(this, message)); | ||
return _super.call(this, message); | ||
} | ||
@@ -47,6 +53,8 @@ | ||
var _super2 = _createSuper(InvalidArgumentError); | ||
function InvalidArgumentError(message) { | ||
_classCallCheck(this, InvalidArgumentError); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(InvalidArgumentError).call(this, message)); | ||
return _super2.call(this, message); | ||
} | ||
@@ -64,6 +72,8 @@ | ||
var _super3 = _createSuper(InvalidPortError); | ||
function InvalidPortError(message) { | ||
_classCallCheck(this, InvalidPortError); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(InvalidPortError).call(this, message)); | ||
return _super3.call(this, message); | ||
} | ||
@@ -81,6 +91,8 @@ | ||
var _super4 = _createSuper(InvalidEndpointError); | ||
function InvalidEndpointError(message) { | ||
_classCallCheck(this, InvalidEndpointError); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(InvalidEndpointError).call(this, message)); | ||
return _super4.call(this, message); | ||
} | ||
@@ -99,6 +111,8 @@ | ||
var _super5 = _createSuper(InvalidBucketNameError); | ||
function InvalidBucketNameError(message) { | ||
_classCallCheck(this, InvalidBucketNameError); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(InvalidBucketNameError).call(this, message)); | ||
return _super5.call(this, message); | ||
} | ||
@@ -117,6 +131,8 @@ | ||
var _super6 = _createSuper(InvalidObjectNameError); | ||
function InvalidObjectNameError(message) { | ||
_classCallCheck(this, InvalidObjectNameError); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(InvalidObjectNameError).call(this, message)); | ||
return _super6.call(this, message); | ||
} | ||
@@ -134,6 +150,8 @@ | ||
var _super7 = _createSuper(AccessKeyRequiredError); | ||
function AccessKeyRequiredError(message) { | ||
_classCallCheck(this, AccessKeyRequiredError); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(AccessKeyRequiredError).call(this, message)); | ||
return _super7.call(this, message); | ||
} | ||
@@ -151,6 +169,8 @@ | ||
var _super8 = _createSuper(SecretKeyRequiredError); | ||
function SecretKeyRequiredError(message) { | ||
_classCallCheck(this, SecretKeyRequiredError); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(SecretKeyRequiredError).call(this, message)); | ||
return _super8.call(this, message); | ||
} | ||
@@ -168,6 +188,8 @@ | ||
var _super9 = _createSuper(ExpiresParamError); | ||
function ExpiresParamError(message) { | ||
_classCallCheck(this, ExpiresParamError); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(ExpiresParamError).call(this, message)); | ||
return _super9.call(this, message); | ||
} | ||
@@ -184,6 +206,8 @@ | ||
var _super10 = _createSuper(InvalidDateError); | ||
function InvalidDateError(message) { | ||
_classCallCheck(this, InvalidDateError); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(InvalidDateError).call(this, message)); | ||
return _super10.call(this, message); | ||
} | ||
@@ -201,6 +225,8 @@ | ||
var _super11 = _createSuper(InvalidPrefixError); | ||
function InvalidPrefixError(message) { | ||
_classCallCheck(this, InvalidPrefixError); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(InvalidPrefixError).call(this, message)); | ||
return _super11.call(this, message); | ||
} | ||
@@ -217,6 +243,8 @@ | ||
var _super12 = _createSuper(InvalidBucketPolicyError); | ||
function InvalidBucketPolicyError(message) { | ||
_classCallCheck(this, InvalidBucketPolicyError); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(InvalidBucketPolicyError).call(this, message)); | ||
return _super12.call(this, message); | ||
} | ||
@@ -234,6 +262,8 @@ | ||
var _super13 = _createSuper(IncorrectSizeError); | ||
function IncorrectSizeError(message) { | ||
_classCallCheck(this, IncorrectSizeError); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(IncorrectSizeError).call(this, message)); | ||
return _super13.call(this, message); | ||
} | ||
@@ -250,6 +280,8 @@ | ||
var _super14 = _createSuper(InvalidXMLError); | ||
function InvalidXMLError(message) { | ||
_classCallCheck(this, InvalidXMLError); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(InvalidXMLError).call(this, message)); | ||
return _super14.call(this, message); | ||
} | ||
@@ -267,6 +299,8 @@ | ||
var _super15 = _createSuper(S3Error); | ||
function S3Error(message) { | ||
_classCallCheck(this, S3Error); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(S3Error).call(this, message)); | ||
return _super15.call(this, message); | ||
} | ||
@@ -273,0 +307,0 @@ |
@@ -18,2 +18,8 @@ "use strict"; | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
@@ -23,8 +29,6 @@ | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -125,2 +129,4 @@ | ||
var _super = _createSuper(TopicConfig); | ||
function TopicConfig(arn) { | ||
@@ -131,3 +137,3 @@ var _this; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(TopicConfig).call(this)); | ||
_this = _super.call(this); | ||
_this.Topic = arn; | ||
@@ -146,2 +152,4 @@ return _this; | ||
var _super2 = _createSuper(QueueConfig); | ||
function QueueConfig(arn) { | ||
@@ -152,3 +160,3 @@ var _this2; | ||
_this2 = _possibleConstructorReturn(this, _getPrototypeOf(QueueConfig).call(this)); | ||
_this2 = _super2.call(this); | ||
_this2.Queue = arn; | ||
@@ -167,2 +175,4 @@ return _this2; | ||
var _super3 = _createSuper(CloudFunctionConfig); | ||
function CloudFunctionConfig(arn) { | ||
@@ -173,3 +183,3 @@ var _this3; | ||
_this3 = _possibleConstructorReturn(this, _getPrototypeOf(CloudFunctionConfig).call(this)); | ||
_this3 = _super3.call(this); | ||
_this3.CloudFunction = arn; | ||
@@ -214,2 +224,4 @@ return _this3; | ||
var _super4 = _createSuper(NotificationPoller); | ||
function NotificationPoller(client, bucketName, prefix, suffix, events) { | ||
@@ -220,3 +232,3 @@ var _this4; | ||
_this4 = _possibleConstructorReturn(this, _getPrototypeOf(NotificationPoller).call(this)); | ||
_this4 = _super4.call(this); | ||
_this4.client = client; | ||
@@ -223,0 +235,0 @@ _this4.bucketName = bucketName; |
@@ -26,2 +26,8 @@ "use strict"; | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
@@ -31,8 +37,6 @@ | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
// We extend Transform because Writable does not implement ._flush(). | ||
@@ -42,2 +46,4 @@ var ObjectUploader = /*#__PURE__*/function (_Transform) { | ||
var _super = _createSuper(ObjectUploader); | ||
function ObjectUploader(client, bucketName, objectName, partSize, metaData, callback) { | ||
@@ -48,3 +54,3 @@ var _this; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(ObjectUploader).call(this)); | ||
_this = _super.call(this); | ||
_this.emptyStream = true; | ||
@@ -51,0 +57,0 @@ _this.client = client; |
@@ -414,3 +414,10 @@ "use strict"; | ||
var size = +content.Size[0]; | ||
var metadata = content.UserMetadata[0]; | ||
var metadata; | ||
if (content.UserMetadata != null) { | ||
metadata = content.UserMetadata[0]; | ||
} else { | ||
metadata = null; | ||
} | ||
result.objects.push({ | ||
@@ -417,0 +424,0 @@ name, |
{ | ||
"name": "minio", | ||
"version": "7.0.15", | ||
"version": "7.0.16", | ||
"description": "S3 Compatible Cloud Storage client", | ||
@@ -5,0 +5,0 @@ "main": "./dist/main/minio.js", |
223581
4261