rc-upload
Advanced tools
Comparing version 1.3.2 to 1.3.3
'use strict'; | ||
var React = require('react'); | ||
var request = require('superagent'); | ||
var uid = require('./uid'); | ||
function uid() { | ||
return Math.random().toString().slice(2); | ||
} | ||
var AjaxUploader = React.createClass({ | ||
@@ -10,0 +7,0 @@ displayName: 'AjaxUploader', |
'use strict'; | ||
var React = require('react'); | ||
var uid = require('./uid'); | ||
@@ -89,2 +90,3 @@ var formStyle = { | ||
this.file.name = this.file.name || e.target.value; | ||
this.file.uid = uid(); | ||
this.props.onStart(this.file); | ||
@@ -91,0 +93,0 @@ React.findDOMNode(this.refs.form).submit(); |
{ | ||
"name": "rc-upload", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "upload ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9560
8
231