Skip to content

Commit

Permalink
Merge branch 'release/v3.30.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
SethK committed Feb 7, 2024
2 parents 993cc4e + cc91216 commit 7e4c2ad
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [3.30.1](https://github.com/filestack/filestack-js/compare/v3.30.0...v3.30.1) (2024-02-07)

### Updgrade
* **picker:** Upgraded picker to v1.26.1.

## [3.30.0](https://github.com/filestack/filestack-js/compare/v3.29.0...v3.30.0) (2024-01-18)

### Updgrade
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "filestack-js",
"version": "3.30.0",
"version": "3.30.1",
"description": "Official JavaScript library for Filestack",
"main": "build/main/index.js",
"module": "build/module/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* @private
*/
const PICKER_VERSION = '1.26.0';
const PICKER_VERSION = '1.26.1';

/**
* @private
Expand Down
11 changes: 5 additions & 6 deletions src/lib/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,18 @@ export const getMimetype = async(file: Uint8Array | Buffer, name?: string): Prom
} catch(e) {
console.warn("An exception occurred while processing the buffer:", e.message);
}
const excludedMimetypes = ['text/plain', 'application/octet-stream', 'application/x-ms', 'application/x-msi', 'application/zip'];

if (type && excludedMimetypes.indexOf(type.mime) === -1) {
return type.mime;
}

if (name && name.indexOf('.') > -1) {
const mime = extensionToMime(name);

if (mime) {
return mime;
}
}
const excludedMimetypes = ['text/plain', 'application/octet-stream', 'application/x-ms', 'application/x-msi', 'application/zip'];

if (type && excludedMimetypes.indexOf(type.mime) === -1) {
return type.mime;
}

try {
if (isutf8(file)) {
Expand Down

0 comments on commit 7e4c2ad

Please sign in to comment.