-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update file-type to resolve vulnerability (#205)
The `file-type` package has a vulnerability that persists until v16.5.4. This commit updates the package to v16.5.4 to avoid the vulnerability. However, the package update required changes in how we use the package in our code which resulted in incompatible updates to a couple of functions that are part of our public API. Though it is unlikely these functions are being widely used, this change will need to go into a new major version. BREAKING CHANGE: two synchronous public functions are now asynchronous The function `getContentType` formerly returned a string but now returns a Promise that resolves to a string. The function `buildRequestFileObject` formerly returned a `FileObject` but now returns a Promise that resolves to a `FileObject`. Fixes #204 Signed-off-by: Dustin Popp <dpopp07@gmail.com>
- Loading branch information
Showing
7 changed files
with
233 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.