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

rc-upload

Package Overview
Dependencies
Maintainers
4
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 2.2.0 to 2.3.0

4

HISTORY.md
# History
----
### 2.3.0 / 2016-12-12
- expose file list as argument to `beforeUpload` [!57](https://github.com/react-component/upload/pull/57)
### 2.2.0 / 2016-10-13

@@ -5,0 +9,0 @@

24

lib/AjaxUploader.js

@@ -98,6 +98,6 @@ 'use strict';

file.uid = (0, _uid2["default"])();
this.upload(file);
this.upload(file, postFiles);
}
},
upload: function upload(file) {
upload: function upload(file, fileList) {
var _this = this;

@@ -114,3 +114,3 @@

var before = props.beforeUpload(file);
var before = props.beforeUpload(file, fileList);
if (before && before.then) {

@@ -195,11 +195,11 @@ before.then(function (processedFile) {

var _props = this.props;
var Tag = _props.component;
var prefixCls = _props.prefixCls;
var className = _props.className;
var disabled = _props.disabled;
var style = _props.style;
var multiple = _props.multiple;
var accept = _props.accept;
var children = _props.children;
var _props = this.props,
Tag = _props.component,
prefixCls = _props.prefixCls,
className = _props.className,
disabled = _props.disabled,
style = _props.style,
multiple = _props.multiple,
accept = _props.accept,
children = _props.children;

@@ -206,0 +206,0 @@ var cls = (0, _classnames2["default"])((_classNames = {}, (0, _defineProperty3["default"])(_classNames, prefixCls, true), (0, _defineProperty3["default"])(_classNames, prefixCls + '-disabled', disabled), (0, _defineProperty3["default"])(_classNames, className, className), _classNames));

@@ -82,4 +82,4 @@ 'use strict';

}
var props = this.props;
var file = this.file;
var props = this.props,
file = this.file;

@@ -243,9 +243,9 @@ var response = void 0;

var _props = this.props;
var Tag = _props.component;
var disabled = _props.disabled;
var className = _props.className;
var prefixCls = _props.prefixCls;
var children = _props.children;
var style = _props.style;
var _props = this.props,
Tag = _props.component,
disabled = _props.disabled,
className = _props.className,
prefixCls = _props.prefixCls,
children = _props.children,
style = _props.style;

@@ -252,0 +252,0 @@ var iframeStyle = (0, _extends3["default"])({}, IFRAME_STYLE, {

{
"name": "rc-upload",
"version": "2.2.0",
"version": "2.3.0",
"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