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

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 2.0.0 to 3.0.0

5

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

@@ -34,4 +34,5 @@ "main": "index.js",

"peerDependencies": {
"react": "*"
"react": "*",
"react-dom": "*"
}
}

9

ReactS3Uploader.js
"use strict";
var React = require('react'),
ReactDOM = require('react-dom'),
S3Upload = require('./s3upload.js'),

@@ -38,3 +39,3 @@ objectAssign = require('object-assign');

new S3Upload({
fileElement: findDOMNode(this),
fileElement: ReactDOM.findDOMNode(this),
signingUrl: this.props.signingUrl,

@@ -53,3 +54,3 @@ onProgress: this.props.onProgress,

clear: function() {
clearInputFile(findDOMNode(this));
clearInputFile(ReactDOM.findDOMNode(this));
},

@@ -63,6 +64,2 @@

function findDOMNode(cmp) {
return React.findDOMNode ? React.findDOMNode(cmp) : cmp.getDOMNode();
}
// http://stackoverflow.com/a/24608023/194065

@@ -69,0 +66,0 @@ function clearInputFile(f){

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

##### 3.0
* Using `react-dom`
##### 2.0

@@ -127,0 +131,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