Socket
Socket
Sign inDemoInstall

react-s3-uploader

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-s3-uploader - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

2

package.json
{
"name": "react-s3-uploader",
"version": "3.2.0",
"version": "3.2.1",
"description": "React component that renders a file input and automatically uploads to an S3 bucket",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -59,3 +59,18 @@ "use strict";

render: function() {
return React.DOM.input(objectAssign({}, this.props, {type: 'file', onChange: this.uploadFile}));
return React.DOM.input(this.getInputProps());
},
getInputProps() {
var temporaryProps = objectAssign({}, this.props, {type: 'file', onChange: this.uploadFile});
var inputProps = {};
var invalidProps = Object.keys(ReactS3Uploader.propTypes);
for(var key in temporaryProps) {
if(temporaryProps.hasOwnProperty(key) && invalidProps.indexOf(key) === -1) {
inputProps[key] = temporaryProps[key];
}
}
return inputProps;
}

@@ -62,0 +77,0 @@

@@ -177,2 +177,6 @@ react-s3-uploader

##### 3.2.1
* Avoid react warning by not passing unnecessary props to Dom.input [#75]
##### 3.2.0

@@ -179,0 +183,0 @@

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