react-dropzone 14.3.0 → 14.3.2

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.
package/package.json CHANGED
@@ -118,7 +118,7 @@
118
118
  },
119
119
  "dependencies": {
120
120
  "attr-accept": "^2.2.4",
121
- "file-selector": "^1.2.0",
121
+ "file-selector": "^2.1.0",
122
122
  "prop-types": "^15.8.1"
123
123
  },
124
124
  "devDependencies": {
@@ -190,7 +190,7 @@
190
190
  "webpack-blocks": "^2.1.0"
191
191
  },
192
192
  "typings": "typings/react-dropzone.d.ts",
193
- "version": "14.3.0",
193
+ "version": "14.3.2",
194
194
  "engines": {
195
195
  "node": ">= 10.13"
196
196
  },
@@ -297,6 +297,7 @@ export function isMIMEType(v) {
297
297
  v === "video/*" ||
298
298
  v === "image/*" ||
299
299
  v === "text/*" ||
300
+ v === "application/*" ||
300
301
  /\w+\/[-+.\w]+/g.test(v)
301
302
  );
302
303
  }
@@ -461,6 +461,7 @@ describe("isMIMEType()", () => {
461
461
  expect(utils.isMIMEType("image/*")).toBe(true);
462
462
  expect(utils.isMIMEType("video/*")).toBe(true);
463
463
  expect(utils.isMIMEType("audio/*")).toBe(true);
464
+ expect(utils.isMIMEType("application/*")).toBe(true);
464
465
  expect(utils.isMIMEType("test/*")).toBe(false);
465
466
  expect(utils.isMIMEType("text")).toBe(false);
466
467
  expect(utils.isMIMEType("")).toBe(false);