react-s3-uploader
Advanced tools
Comparing version 4.0.3 to 4.1.0
##### 4.1.0 | ||
* Using `create-react-class` and `prop-types` to fix deprecation warnings [#116] | ||
##### 4.0.3 | ||
@@ -3,0 +7,0 @@ |
{ | ||
"name": "react-s3-uploader", | ||
"version": "4.0.3", | ||
"version": "4.1.0", | ||
"description": "React component that renders a file input and automatically uploads to an S3 bucket", | ||
@@ -28,4 +28,6 @@ "main": "index.js", | ||
"aws-sdk": "2.x", | ||
"create-react-class": "^15.5.2", | ||
"node-uuid": "1.x", | ||
"object-assign": "^2.0.0" | ||
"object-assign": "^2.0.0", | ||
"prop-types": "^15.5.8" | ||
}, | ||
@@ -32,0 +34,0 @@ "peerDependencies": { |
@@ -5,25 +5,27 @@ "use strict"; | ||
ReactDOM = require('react-dom'), | ||
PropTypes = require('prop-types'), | ||
createReactClass = require('create-react-class'), | ||
S3Upload = require('./s3upload.js'), | ||
objectAssign = require('object-assign'); | ||
var ReactS3Uploader = React.createClass({ | ||
var ReactS3Uploader = createReactClass({ | ||
propTypes: { | ||
signingUrl: React.PropTypes.string, | ||
getSignedUrl: React.PropTypes.func, | ||
preprocess: React.PropTypes.func, | ||
onProgress: React.PropTypes.func, | ||
onFinish: React.PropTypes.func, | ||
onError: React.PropTypes.func, | ||
signingUrlMethod: React.PropTypes.string, | ||
signingUrlHeaders: React.PropTypes.object, | ||
signingUrlQueryParams: React.PropTypes.oneOfType([ | ||
React.PropTypes.object, | ||
React.PropTypes.func | ||
signingUrl: PropTypes.string, | ||
getSignedUrl: PropTypes.func, | ||
preprocess: PropTypes.func, | ||
onProgress: PropTypes.func, | ||
onFinish: PropTypes.func, | ||
onError: PropTypes.func, | ||
signingUrlMethod: PropTypes.string, | ||
signingUrlHeaders: PropTypes.object, | ||
signingUrlQueryParams: PropTypes.oneOfType([ | ||
PropTypes.object, | ||
PropTypes.func | ||
]), | ||
signingUrlWithCredentials: React.PropTypes.bool, | ||
uploadRequestHeaders: React.PropTypes.object, | ||
contentDisposition: React.PropTypes.string, | ||
server: React.PropTypes.string, | ||
scrubFilename: React.PropTypes.func | ||
signingUrlWithCredentials: PropTypes.bool, | ||
uploadRequestHeaders: PropTypes.object, | ||
contentDisposition: PropTypes.string, | ||
server: PropTypes.string, | ||
scrubFilename: PropTypes.func | ||
}, | ||
@@ -30,0 +32,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
23723
354
7
+ Addedcreate-react-class@^15.5.2
+ Addedprop-types@^15.5.8
+ Addedcreate-react-class@15.7.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedprop-types@15.8.1(transitive)
+ Addedreact-is@16.13.1(transitive)