react-file-uploader
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -21,3 +21,2 @@ 'use strict'; | ||
jest.dontMock('classnames'); | ||
jest.dontMock('rand-token'); | ||
@@ -24,0 +23,0 @@ var FileUploader = require('../index'); |
@@ -21,4 +21,6 @@ 'use strict'; | ||
var _randToken = require('rand-token'); | ||
var _shortid = require('shortid'); | ||
var _shortid2 = _interopRequireDefault(_shortid); | ||
var _status = require('./constants/status'); | ||
@@ -116,3 +118,3 @@ | ||
for (var i = 0; i < fileList.length; i++) { | ||
fileList[i].id = (0, _randToken.suid)(4); | ||
fileList[i].id = _shortid2.default.generate(); | ||
fileList[i].status = _status2.default.PENDING; | ||
@@ -119,0 +121,0 @@ fileList[i].progress = 0; |
@@ -99,3 +99,3 @@ 'use strict'; | ||
style: _react.PropTypes.object, | ||
upload: _react.PropTypes.func.isRequired | ||
upload: _react.PropTypes.func | ||
}; | ||
@@ -102,0 +102,0 @@ |
{ | ||
"name": "react-file-uploader", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "A set of file-upload-components with React.js.", | ||
@@ -74,3 +74,2 @@ "main": "lib/index.js", | ||
"lodash": ">=3.10.1", | ||
"rand-token": "^0.2.1", | ||
"shortid": "^2.2.6", | ||
@@ -77,0 +76,0 @@ "superagent": "^1.4.0" |
@@ -5,3 +5,2 @@ /* eslint-disable no-undef, max-len */ | ||
jest.dontMock('classnames'); | ||
jest.dontMock('rand-token'); | ||
@@ -8,0 +7,0 @@ import React from 'react'; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7
256192
2040
+ Addedua-parser-js@0.7.40(transitive)
- Removedrand-token@^0.2.1
- Removedrand-token@0.2.1(transitive)
- Removedua-parser-js@0.7.39(transitive)