From 73689ee29bd271f0a63636f84ee5cbe30bc97375 Mon Sep 17 00:00:00 2001 From: rory Date: Mon, 6 May 2024 13:43:28 -0700 Subject: [PATCH] feat: support json file type --- src/fileTypes.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fileTypes.ts b/src/fileTypes.ts index c0e06045..f0b3e697 100644 --- a/src/fileTypes.ts +++ b/src/fileTypes.ts @@ -5,6 +5,7 @@ const mimeTypes = Object.freeze({ doc: 'application/msword', docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', images: 'image/*', + json: 'application/json', pdf: 'application/pdf', plainText: 'text/plain', ppt: 'application/vnd.ms-powerpoint', @@ -22,6 +23,7 @@ const utis = Object.freeze({ doc: 'com.microsoft.word.doc', docx: 'org.openxmlformats.wordprocessingml.document', images: 'public.image', + json: 'public.json', pdf: 'com.adobe.pdf', plainText: 'public.plain-text', ppt: 'com.microsoft.powerpoint.ppt', @@ -40,6 +42,7 @@ const extensions = Object.freeze({ doc: '.doc', docx: '.docx', images: '.jpeg .jpg .png', + json: '.json', pdf: '.pdf', plainText: '.txt', ppt: '.ppt',