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.7.1 to 1.7.2

4

HISTORY.md

@@ -0,1 +1,5 @@

### 1.7.2 2016-01-13
- add prop withCredentials config
### 1.7.0 2015-10-27

@@ -2,0 +6,0 @@

4

lib/AjaxUploader.js

@@ -28,3 +28,4 @@ 'use strict';

data: _react.PropTypes.object,
beforeUpload: _react.PropTypes.func
beforeUpload: _react.PropTypes.func,
withCredentials: _react.PropTypes.bool
},

@@ -109,2 +110,3 @@

data: data,
withCredentials: props.withCredentials,
onProgress: function onProgress(e) {

@@ -111,0 +113,0 @@ props.onProgress(e, file);

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

if ('withCredentials' in xhr) {
if (option.withCredentials && 'withCredentials' in xhr) {
xhr.withCredentials = true;

@@ -67,0 +67,0 @@ }

@@ -38,3 +38,4 @@ 'use strict';

multiple: _react.PropTypes.bool,
beforeUpload: _react.PropTypes.func
beforeUpload: _react.PropTypes.func,
withCredentials: _react.PropTypes.bool
},

@@ -53,3 +54,4 @@

multiple: false,
beforeUpload: null
beforeUpload: null,
withCredentials: false
};

@@ -56,0 +58,0 @@ },

{
"name": "rc-upload",
"version": "1.7.1",
"version": "1.7.2",
"description": "upload ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

@@ -67,2 +67,3 @@ # rc-upload

|beforeUpload| function |null| before upload check, return false or a rejected Promise will stop upload, only for modern browsers|
| withCredentials | boolean | false | ajax upload with cookie send |

@@ -69,0 +70,0 @@ #### onError arguments

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