Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alaska-field-image

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alaska-field-image - npm Package Compare versions

Comparing version 0.10.1 to 0.10.2

8

index.js

@@ -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');

25

lib/view.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc