datasync-blob 1.1.7 → 1.1.9

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.
Files changed (2) hide show
  1. package/dist/DsBlob.js +2 -2
  2. package/package.json +1 -1
package/dist/DsBlob.js CHANGED
@@ -95,7 +95,7 @@ export class DsBlob extends Component {
95
95
  this.onInputChange = (e) => {
96
96
  const errs = [];
97
97
  const files = Array.from(e.target.files || []);
98
- const types = ['image/png', 'image/jpeg', 'image/gif'];
98
+ const types = ['image/png', 'image/jpeg', 'image/gif', 'image/svg', 'image/webp'];
99
99
  const _1Mo = 1024 * 1024;
100
100
  const SizeLimit = 9;
101
101
  //Reset input cache value - to assure trigger if user select the same file again
@@ -110,7 +110,7 @@ export class DsBlob extends Component {
110
110
  files.forEach((file, i) => {
111
111
  let errCount = errs.length;
112
112
  if (types.every(type => file.type !== type)) {
113
- errs.push(`'${file.type}' : format non supporté`);
113
+ errs.push(`'${file.type}' : format non supporté !`);
114
114
  }
115
115
  if (file.size > (SizeLimit * _1Mo)) {
116
116
  errs.push(`'${file.name}' image trop volumineuse (max:${SizeLimit}Méga-octets)`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datasync-blob",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "Datasync Blob component",
5
5
  "main": "dist/DsBlob.js",
6
6
  "module": "dist/DsBlob.js",