react-upload-gallery
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -497,2 +497,3 @@ "use strict"; | ||
accept, | ||
acceptType, | ||
warning, | ||
@@ -512,3 +513,3 @@ ImageURL, | ||
images = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : []; | ||
_this$props2 = this.props, rules = _this$props2.rules, accept = _this$props2.accept; | ||
_this$props2 = this.props, rules = _this$props2.rules, accept = _this$props2.accept, acceptType = _this$props2.acceptType; | ||
images = images.concat(this.state.images); | ||
@@ -530,3 +531,3 @@ /* | ||
if (!(0, _Utils.isAccepted)(file.type, accept.map(function (type) { | ||
return "image/".concat(type); | ||
return "".concat(acceptType, "/").concat(type); | ||
}))) { | ||
@@ -539,3 +540,3 @@ warning("accept"); | ||
if (!(rules !== null)) { | ||
_context4.next = 15; | ||
_context4.next = 16; | ||
break; | ||
@@ -562,12 +563,12 @@ } | ||
} | ||
/** | ||
* dimensions | ||
* | ||
*/ | ||
if (!(acceptType === "image")) { | ||
_context4.next = 16; | ||
break; | ||
} | ||
_context4.next = 12; | ||
_context4.next = 13; | ||
return (0, _Utils.getImageDimensions)(ImageURL); | ||
case 12: | ||
case 13: | ||
image = _context4.sent; | ||
@@ -591,6 +592,6 @@ | ||
case 15: | ||
case 16: | ||
return _context4.abrupt("return", ImageURL); | ||
case 16: | ||
case 17: | ||
case "end": | ||
@@ -597,0 +598,0 @@ return _context4.stop(); |
{ | ||
"name": "react-upload-gallery", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Muhammet INAN", |
85252
1836