react-s3-uploader
Advanced tools
Comparing version 2.0.0 to 3.0.0
{ | ||
"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": "*" | ||
} | ||
} |
"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 @@ |
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
17855
148
7
299