Skip to content

Commit 7e4c2ad

Browse files
author
SethK
committed
Merge branch 'release/v3.30.1'
2 parents 993cc4e + cc91216 commit 7e4c2ad

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
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.
44

5+
## [3.30.1](https://github.com/filestack/filestack-js/compare/v3.30.0...v3.30.1) (2024-02-07)
6+
7+
### Updgrade
8+
* **picker:** Upgraded picker to v1.26.1.
9+
510
## [3.30.0](https://github.com/filestack/filestack-js/compare/v3.29.0...v3.30.0) (2024-01-18)
611

712
### Updgrade

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "filestack-js",
3-
"version": "3.30.0",
3+
"version": "3.30.1",
44
"description": "Official JavaScript library for Filestack",
55
"main": "build/main/index.js",
66
"module": "build/module/index.js",

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* @private
2020
*/
21-
const PICKER_VERSION = '1.26.0';
21+
const PICKER_VERSION = '1.26.1';
2222

2323
/**
2424
* @private

src/lib/utils/index.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,18 @@ export const getMimetype = async(file: Uint8Array | Buffer, name?: string): Prom
108108
} catch(e) {
109109
console.warn("An exception occurred while processing the buffer:", e.message);
110110
}
111-
const excludedMimetypes = ['text/plain', 'application/octet-stream', 'application/x-ms', 'application/x-msi', 'application/zip'];
112-
113-
if (type && excludedMimetypes.indexOf(type.mime) === -1) {
114-
return type.mime;
115-
}
116-
117111
if (name && name.indexOf('.') > -1) {
118112
const mime = extensionToMime(name);
119113

120114
if (mime) {
121115
return mime;
122116
}
123117
}
118+
const excludedMimetypes = ['text/plain', 'application/octet-stream', 'application/x-ms', 'application/x-msi', 'application/zip'];
119+
120+
if (type && excludedMimetypes.indexOf(type.mime) === -1) {
121+
return type.mime;
122+
}
124123

125124
try {
126125
if (isutf8(file)) {

0 commit comments

Comments
 (0)