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.3.7 to 2.3.8

9

es/IframeUploader.js

@@ -231,9 +231,12 @@ import _defineProperty from 'babel-runtime/helpers/defineProperty';

}
var inputs = [];
var inputs = document.createDocumentFragment();
for (var key in data) {
if (data.hasOwnProperty(key)) {
inputs.push('<input name="' + key + '" value="' + data[key] + '"/>');
var input = document.createElement('input');
input.setAttribute('name', key);
input.value = data[key];
inputs.appendChild(input);
}
}
dataSpan.innerHTML = inputs.join('');
dataSpan.appendChild(inputs);
formNode.submit();

@@ -240,0 +243,0 @@ dataSpan.innerHTML = '';

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

value: function getComponent() {
return typeof FormData !== 'undefined' ? AjaxUpload : IframeUpload;
return typeof File !== 'undefined' ? AjaxUpload : IframeUpload;
}

@@ -48,0 +48,0 @@ }, {

# History
----
### 2.3.8 / 2017-06-21
- fix issue #80 & #81 [#82](https://github.com/react-component/upload/pull/82)
### 2.3.5 / 2017-05-01

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

@@ -274,9 +274,12 @@ 'use strict';

}
var inputs = [];
var inputs = document.createDocumentFragment();
for (var key in data) {
if (data.hasOwnProperty(key)) {
inputs.push('<input name="' + key + '" value="' + data[key] + '"/>');
var input = document.createElement('input');
input.setAttribute('name', key);
input.value = data[key];
inputs.appendChild(input);
}
}
dataSpan.innerHTML = inputs.join('');
dataSpan.appendChild(inputs);
formNode.submit();

@@ -283,0 +286,0 @@ dataSpan.innerHTML = '';

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

value: function getComponent() {
return typeof FormData !== 'undefined' ? _AjaxUploader2['default'] : _IframeUploader2['default'];
return typeof File !== 'undefined' ? _AjaxUploader2['default'] : _IframeUploader2['default'];
}

@@ -82,0 +82,0 @@ }, {

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