From 9118ca01234bb31ad0161a341dae3dd69205207e Mon Sep 17 00:00:00 2001 From: Rory Abraham <47436092+roryabraham@users.noreply.github.com> Date: Fri, 17 May 2024 09:26:28 -0700 Subject: [PATCH] feat: add file type for json (#718) --- 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',