filestack-js 3.30.0 → 3.30.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "filestack-js",
3
- "version": "3.30.0",
3
+ "version": "3.30.2",
4
4
  "description": "Official JavaScript library for Filestack",
5
5
  "main": "build/main/index.js",
6
6
  "module": "build/module/index.js",
package/src/config.ts CHANGED
@@ -18,7 +18,7 @@
18
18
  /**
19
19
  * @private
20
20
  */
21
- const PICKER_VERSION = '1.26.0';
21
+ const PICKER_VERSION = '1.26.2';
22
22
 
23
23
  /**
24
24
  * @private
@@ -98,6 +98,12 @@ export const ExtensionsMap = {
98
98
  'iso',
99
99
  'msp',
100
100
  'buffer',
101
+ 'psdata',
102
+ 'indt',
103
+ 'hpd',
104
+ 'mxd',
105
+ 'indd',
106
+ 'vsm',
101
107
  ],
102
108
  'application/oda': ['oda'],
103
109
  'application/oebps-package+xml': ['opf'],
@@ -108,12 +108,6 @@ export const getMimetype = async(file: Uint8Array | Buffer, name?: string): Prom
108
108
  } catch(e) {
109
109
  console.warn("An exception occurred while processing the buffer:", e.message);
110
110
  }
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
-
117
111
  if (name && name.indexOf('.') > -1) {
118
112
  const mime = extensionToMime(name);
119
113
 
@@ -121,6 +115,11 @@ export const getMimetype = async(file: Uint8Array | Buffer, name?: string): Prom
121
115
  return mime;
122
116
  }
123
117
  }
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
+ }
124
123
 
125
124
  try {
126
125
  if (isutf8(file)) {