From 989936cc439d99b2a5f332ed98a55ea45f46cbcb Mon Sep 17 00:00:00 2001 From: Bradley Farias Date: Tue, 8 Aug 2017 16:34:51 -0500 Subject: [PATCH] Add extension .mjs to application/javascript closes #88 --- HISTORY.md | 1 + db.json | 2 +- src/custom-types.json | 6 +++++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 1d0f08ce8..a40799d75 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,7 @@ unreleased ========== * Add `application/vnd.ms-outlook` + * Add extension `.mjs` to `application/javascript` * Add glTF types and extensions * Add new upstream MIME types * Add `text/x-org` diff --git a/db.json b/db.json index c4012f43c..54daf7d96 100644 --- a/db.json +++ b/db.json @@ -504,7 +504,7 @@ "source": "iana", "charset": "UTF-8", "compressible": true, - "extensions": ["js"] + "extensions": ["js","mjs"] }, "application/jf2feed+json": { "source": "iana", diff --git a/src/custom-types.json b/src/custom-types.json index cb292d937..f36d132ec 100644 --- a/src/custom-types.json +++ b/src/custom-types.json @@ -78,7 +78,11 @@ }, "application/javascript": { "charset": "UTF-8", - "compressible": true + "compressible": true, + "extensions": ["mjs"], + "sources": [ + "https://tools.ietf.org/html/draft-bfarias-javascript-mjs-00" + ] }, "application/json": { "charset": "UTF-8",