react-dropzone
Advanced tools
Comparing version 3.2.2 to 3.2.3
@@ -93,3 +93,3 @@ import accept from 'attr-accept'; | ||
// We might want to disable the preview creation to support big files | ||
if (!this.disablePreview) { | ||
if (!this.props.disablePreview) { | ||
file.preview = window.URL.createObjectURL(file); | ||
@@ -96,0 +96,0 @@ } |
@@ -116,3 +116,3 @@ 'use strict'; | ||
// We might want to disable the preview creation to support big files | ||
if (!this.disablePreview) { | ||
if (!this.props.disablePreview) { | ||
file.preview = window.URL.createObjectURL(file); | ||
@@ -119,0 +119,0 @@ } |
{ | ||
"name": "react-dropzone", | ||
"version": "3.2.2", | ||
"version": "3.2.3", | ||
"description": "Simple HTML5 drag-drop zone with React.js", | ||
@@ -8,3 +8,4 @@ "main": "lib/index.js", | ||
"build": "babel index.js --out-dir ./lib", | ||
"prepublish": "npm run build" | ||
"prepublish": "npm test && npm run build", | ||
"test": "./node_modules/.bin/mocha --require ./mocha-environment.js './test.js'" | ||
}, | ||
@@ -27,2 +28,9 @@ "keywords": [ | ||
"author": "Param Aggarwal", | ||
"contributors": [ | ||
{ | ||
"name": "Andrey Okonetchnikov", | ||
"email": "andrej.okonetschnikow@gmail.com", | ||
"url": "http://okonet.ru" | ||
} | ||
], | ||
"license": "MIT", | ||
@@ -36,4 +44,10 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"babel": "^5.8.29" | ||
"babel": "^5.8.29", | ||
"chai": "^3.4.1", | ||
"jsdom": "^7.2.0", | ||
"mocha": "^2.3.4", | ||
"react": "^0.14.3", | ||
"react-addons-test-utils": "^0.14.3", | ||
"sinon": "^1.17.2" | ||
} | ||
} |
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
49858
23
476
7