alaska-field-image
Advanced tools
Comparing version 0.10.1 to 0.10.2
@@ -113,3 +113,3 @@ /** | ||
let name = file.filename || ''; | ||
let ext = file.ext; | ||
let ext = (file.ext || '').toLowerCase(); | ||
let mimeType = file.mime || file.mimeType; | ||
@@ -149,2 +149,8 @@ let filePath; | ||
if (!ext && name) { | ||
ext = path.extname(name); | ||
if (ext) { | ||
ext = ext.substr(1).toLowerCase(); | ||
} | ||
} | ||
if (!ext) { | ||
@@ -151,0 +157,0 @@ ext = mime.extension(mimeType).replace('jpeg', 'jpg'); |
@@ -35,2 +35,9 @@ 'use strict'; | ||
var _React$PropTypes = _react2.default.PropTypes; | ||
var bool = _React$PropTypes.bool; | ||
var object = _React$PropTypes.object; | ||
var any = _React$PropTypes.any; | ||
var func = _React$PropTypes.func; | ||
var string = _React$PropTypes.string; | ||
var ImageFieldView = function (_React$Component) { | ||
@@ -255,14 +262,14 @@ _inherits(ImageFieldView, _React$Component); | ||
ImageFieldView.propTypes = { | ||
model: _react2.default.PropTypes.object, | ||
field: _react2.default.PropTypes.object, | ||
data: _react2.default.PropTypes.object, | ||
errorText: _react2.default.PropTypes.string, | ||
disabled: _react2.default.PropTypes.bool, | ||
value: _react2.default.PropTypes.any, | ||
onChange: _react2.default.PropTypes.func | ||
model: object, | ||
field: object, | ||
data: object, | ||
errorText: string, | ||
disabled: bool, | ||
value: any, | ||
onChange: func | ||
}; | ||
ImageFieldView.contextTypes = { | ||
settings: _react2.default.PropTypes.object, | ||
t: _react2.default.PropTypes.func | ||
settings: object, | ||
t: func | ||
}; | ||
exports.default = ImageFieldView; |
{ | ||
"name": "alaska-field-image", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"description": "Alaska image field", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
23497
475