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.4.3 to 2.4.4

es/attr-accept.js

8

es/AjaxUploader.js

@@ -14,3 +14,3 @@ import _extends from 'babel-runtime/helpers/extends';

import getUid from './uid';
import attrAccept from 'attr-accept';
import attrAccept from './attr-accept';

@@ -36,3 +36,3 @@ var AjaxUploader = function (_Component) {

}, _this.onClick = function () {
var el = _this.refs.file;
var el = _this.fileInput;
if (!el) {

@@ -57,2 +57,4 @@ return;

e.preventDefault();
}, _this.saveFileInput = function (node) {
_this.fileInput = node;
}, _temp), _possibleConstructorReturn(_this, _ret);

@@ -218,3 +220,3 @@ }

type: 'file',
ref: 'file',
ref: this.saveFileInput,
key: this.state.uid,

@@ -221,0 +223,0 @@ style: { display: 'none' },

@@ -90,2 +90,4 @@ import _defineProperty from 'babel-runtime/helpers/defineProperty';

}
}, _this.saveIframe = function (node) {
_this.iframe = node;
}, _temp), _possibleConstructorReturn(_this, _ret);

@@ -108,3 +110,3 @@ }

value: function getIframeNode() {
return this.refs.iframe;
return this.iframe;
}

@@ -271,3 +273,3 @@ }, {

React.createElement('iframe', {
ref: 'iframe',
ref: this.saveIframe,
onLoad: this.onLoad,

@@ -274,0 +276,0 @@ style: iframeStyle

@@ -29,2 +29,4 @@ import _extends from 'babel-runtime/helpers/extends';

Component: null
}, _this.saveUploader = function (node) {
_this.uploader = node;
}, _temp), _possibleConstructorReturn(_this, _ret);

@@ -51,3 +53,3 @@ }

value: function abort(file) {
this.refs.inner.abort(file);
this.uploader.abort(file);
}

@@ -60,3 +62,3 @@ }, {

if (_ComponentUploader) {
return React.createElement(_ComponentUploader, _extends({}, this.props, { ref: 'inner' }));
return React.createElement(_ComponentUploader, _extends({}, this.props, { ref: this.saveUploader }));
}

@@ -66,3 +68,3 @@ return null;

var ComponentUploader = this.getComponent();
return React.createElement(ComponentUploader, _extends({}, this.props, { ref: 'inner' }));
return React.createElement(ComponentUploader, _extends({}, this.props, { ref: this.saveUploader }));
}

@@ -69,0 +71,0 @@ }]);

@@ -51,3 +51,3 @@ 'use strict';

var _attrAccept = require('attr-accept');
var _attrAccept = require('./attr-accept');

@@ -79,3 +79,3 @@ var _attrAccept2 = _interopRequireDefault(_attrAccept);

}, _this.onClick = function () {
var el = _this.refs.file;
var el = _this.fileInput;
if (!el) {

@@ -100,2 +100,4 @@ return;

e.preventDefault();
}, _this.saveFileInput = function (node) {
_this.fileInput = node;
}, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret);

@@ -261,3 +263,3 @@ }

type: 'file',
ref: 'file',
ref: this.saveFileInput,
key: this.state.uid,

@@ -264,0 +266,0 @@ style: { display: 'none' },

@@ -133,2 +133,4 @@ 'use strict';

}
}, _this.saveIframe = function (node) {
_this.iframe = node;
}, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret);

@@ -151,3 +153,3 @@ }

value: function getIframeNode() {
return this.refs.iframe;
return this.iframe;
}

@@ -314,3 +316,3 @@ }, {

_react2['default'].createElement('iframe', {
ref: 'iframe',
ref: this.saveIframe,
onLoad: this.onLoad,

@@ -317,0 +319,0 @@ style: iframeStyle

@@ -63,2 +63,4 @@ 'use strict';

Component: null
}, _this.saveUploader = function (node) {
_this.uploader = node;
}, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret);

@@ -85,3 +87,3 @@ }

value: function abort(file) {
this.refs.inner.abort(file);
this.uploader.abort(file);
}

@@ -94,3 +96,3 @@ }, {

if (_ComponentUploader) {
return _react2['default'].createElement(_ComponentUploader, (0, _extends3['default'])({}, this.props, { ref: 'inner' }));
return _react2['default'].createElement(_ComponentUploader, (0, _extends3['default'])({}, this.props, { ref: this.saveUploader }));
}

@@ -100,3 +102,3 @@ return null;

var ComponentUploader = this.getComponent();
return _react2['default'].createElement(ComponentUploader, (0, _extends3['default'])({}, this.props, { ref: 'inner' }));
return _react2['default'].createElement(ComponentUploader, (0, _extends3['default'])({}, this.props, { ref: this.saveUploader }));
}

@@ -103,0 +105,0 @@ }]);

{
"name": "rc-upload",
"version": "2.4.3",
"version": "2.4.4",
"description": "upload ui component for react",

@@ -46,4 +46,4 @@ "keywords": [

"rc-tools": "6.x",
"react": "15.x",
"react-dom": "15.x",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"sinon": "2.0.0-pre.2"

@@ -55,3 +55,2 @@ },

"dependencies": {
"attr-accept": "^1.1.0",
"babel-runtime": "6.x",

@@ -58,0 +57,0 @@ "classnames": "^2.2.5",

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