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

melon

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

melon - npm Package Compare versions

Comparing version 0.3.7 to 0.3.8

2

package.json
{
"name": "melon",
"version": "0.3.7",
"version": "0.3.8",
"description": "ui components for react",

@@ -5,0 +5,0 @@ "main": "./src",

@@ -89,7 +89,4 @@ (function (global, factory) {

var _props = this.props;
var upload = _props.upload;
var onSelect = _props.onSelect;
var upload = this.props.upload;
var event = {

@@ -100,12 +97,7 @@ target: this,

if (upload) {
upload(event).then(function (result) {
return _this2.setFile(result);
}, function (error) {
return _this2.clearFile();
});
return;
}
onSelect(event);
upload(event).then(function (result) {
return _this2.setFile(result);
}, function (error) {
return _this2.clearFile();
});
};

@@ -125,8 +117,9 @@

});
} else {
this.setState({
isUploaded: false,
value: value
});
return;
}
this.setState({
isUploaded: false,
value: value
});
};

@@ -195,5 +188,5 @@

var value = _state2.value;
var _props2 = this.props;
var size = _props2.size;
var placeholder = _props2.placeholder;
var _props = this.props;
var size = _props.size;
var placeholder = _props.placeholder;

@@ -200,0 +193,0 @@

Sorry, the diff of this file is not supported yet

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