Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uppy/utils

Package Overview
Dependencies
Maintainers
8
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/utils - npm Package Compare versions

Comparing version 4.0.6 to 4.0.7

7

CHANGELOG.md
# @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 @@

1

lib/mimeTypes.js

@@ -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',

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc