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

rc-upload

Package Overview
Dependencies
Maintainers
3
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-upload - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

lib/uid.js

5

lib/AjaxUploader.js
'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',

2

lib/IframeUploader.js
'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": [

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