datasync-blob 1.1.30 → 1.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,7 @@ class DsBlob extends _react.Component {
17
17
  data: props.data || "",
18
18
  binaryData: props.binaryData || null
19
19
  };
20
- this.debugging = true;
20
+ this.debugging = false;
21
21
  }
22
22
 
23
23
  //-----------------------------------------
@@ -145,15 +145,14 @@ class DsBlob extends _react.Component {
145
145
  reduceBase64Image = e => {
146
146
  let imageSource = e.path && e.path[0] || e.srcElement; //Safari compliancy
147
147
 
148
- if (true || this.debugging) {
149
- alert(`Debugging : pixel is ${width} x ${height}`);
150
- console.log("imageSource = ", imageSource);
151
- }
152
148
  var canvas = document.createElement('canvas'),
153
149
  context,
154
150
  width = imageSource.width,
155
151
  height = imageSource.height;
156
-
152
+ if (this.debugging) {
153
+ alert(`Debugging : pixel is ${width} x ${height}`);
154
+ console.log("imageSource = ", imageSource);
155
+ }
157
156
  //Exact size props are set
158
157
  if (this.props.width && this.props.height) {
159
158
  //Check image size
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datasync-blob",
3
- "version": "1.1.30",
3
+ "version": "1.1.32",
4
4
  "description": "Datasync Blob component",
5
5
  "main": "./dist/components/DsBlob.js",
6
6
  "files": [