file-type 19.2.0 → 19.3.0

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/core.d.ts CHANGED
@@ -164,6 +164,7 @@ export type FileExtension =
164
164
  | 'avro'
165
165
  | 'icc'
166
166
  | 'fbx'
167
+ | 'vsdx'
167
168
  ; // eslint-disable-line semi-style
168
169
 
169
170
  export type MimeType =
@@ -314,6 +315,7 @@ export type MimeType =
314
315
  | 'application/avro'
315
316
  | 'application/vnd.iccprofile'
316
317
  | 'application/x.autodesk.fbx'
318
+ | 'application/vnd.visio'
317
319
  ; // eslint-disable-line semi-style
318
320
 
319
321
  export type FileTypeResult = {
package/core.js CHANGED
@@ -381,6 +381,11 @@ export class FileTypeParser {
381
381
  ext: 'xlsx',
382
382
  mime: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
383
383
  };
384
+ case 'visio':
385
+ return {
386
+ ext: 'vsdx',
387
+ mime: 'application/vnd.visio',
388
+ };
384
389
  default:
385
390
  break;
386
391
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "file-type",
3
- "version": "19.2.0",
3
+ "version": "19.3.0",
4
4
  "description": "Detect the file type of a Uint8Array/ArrayBuffer",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/file-type",
@@ -205,7 +205,8 @@
205
205
  "ace",
206
206
  "avro",
207
207
  "icc",
208
- "fbx"
208
+ "fbx",
209
+ "vsdx"
209
210
  ],
210
211
  "dependencies": {
211
212
  "strtok3": "^8.0.0",
package/readme.md CHANGED
@@ -505,6 +505,7 @@ console.log(fileType);
505
505
  - [`ttf`](https://en.wikipedia.org/wiki/TrueType) - TrueType font
506
506
  - [`vcf`](https://en.wikipedia.org/wiki/VCard) - vCard
507
507
  - [`voc`](https://wiki.multimedia.cx/index.php/Creative_Voice) - Creative Voice File
508
+ - [`vsdx`](https://en.wikipedia.org/wiki/Microsoft_Visio) - Microsoft Visio File
508
509
  - [`wasm`](https://en.wikipedia.org/wiki/WebAssembly) - WebAssembly intermediate compiled format
509
510
  - [`wav`](https://en.wikipedia.org/wiki/WAV) - Waveform Audio file
510
511
  - [`webm`](https://en.wikipedia.org/wiki/WebM) - Web video file
package/supported.js CHANGED
@@ -151,6 +151,7 @@ export const extensions = [
151
151
  'avro',
152
152
  'icc',
153
153
  'fbx',
154
+ 'vsdx',
154
155
  ];
155
156
 
156
157
  export const mimeTypes = [
@@ -301,4 +302,5 @@ export const mimeTypes = [
301
302
  'application/avro',
302
303
  'application/vnd.iccprofile',
303
304
  'application/x.autodesk.fbx', // Invented by us
305
+ 'application/vnd.visio',
304
306
  ];