@uppy/utils
Advanced tools
Comparing version 4.0.6 to 4.0.7
# @uppy/utils | ||
## 4.0.7 | ||
Released: 2022-04-27 | ||
Included in: Uppy v2.9.4 | ||
- @uppy/utils: Fix getFileType for dicom images (Merlijn Vos / #3610) | ||
## 4.0.6 | ||
@@ -4,0 +11,0 @@ |
@@ -25,2 +25,3 @@ // ___Why not add the mime-types package? | ||
mov: 'video/quicktime', | ||
dicom: 'application/dicom', | ||
doc: 'application/msword', | ||
@@ -27,0 +28,0 @@ docm: 'application/vnd.ms-word.document.macroenabled.12', |
{ | ||
"name": "@uppy/utils", | ||
"description": "Shared utility functions for Uppy Core and plugins maintained by the Uppy team.", | ||
"version": "4.0.6", | ||
"version": "4.0.7", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -35,2 +35,6 @@ const getFileType = require('./getFileType') | ||
} | ||
const fileDicom = { | ||
name: 'bar.dicom', | ||
data: 'sdfsfhfh329fhwihs', | ||
} | ||
const toUpper = (file) => ({ ...file, name: file.name.toUpperCase() }) | ||
@@ -43,2 +47,4 @@ expect(getFileType(fileMP3)).toEqual('audio/mp3') | ||
expect(getFileType(toUpper(fileMKV))).toEqual('video/x-matroska') | ||
expect(getFileType(fileDicom)).toEqual('application/dicom') | ||
expect(getFileType(toUpper(fileDicom))).toEqual('application/dicom') | ||
}) | ||
@@ -45,0 +51,0 @@ |
@@ -26,2 +26,3 @@ // ___Why not add the mime-types package? | ||
mov: 'video/quicktime', | ||
dicom: 'application/dicom', | ||
doc: 'application/msword', | ||
@@ -28,0 +29,0 @@ docm: 'application/vnd.ms-word.document.macroenabled.12', |
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
234373
3127