Skip to content

Commit

Permalink
✨ support .mjs files as text/javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
dryan committed Aug 30, 2022
1 parent 7014057 commit e0b2a3e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions d3ploy/d3ploy.py
Expand Up @@ -24,7 +24,7 @@
from colorama import init as colorama_init
from tqdm import tqdm

VERSION = "4.1.4"
VERSION = "4.1.5"

VALID_ACLS = [
"private",
Expand Down Expand Up @@ -57,7 +57,7 @@
"image/x-icon": [".ico", ".cur"],
"text/css": [".css"],
"text/html": [".html", ".htm"],
"text/javascript": [".js"],
"text/javascript": [".js", ".mjs"],
"text/plain": [".txt"],
"video/webm": [".webm"],
}
Expand Down
3 changes: 3 additions & 0 deletions tests/files/js/sample.mjs
@@ -0,0 +1,3 @@
(function () {
console.log("Hello!");
})();
2 changes: 2 additions & 0 deletions tests/test.py
Expand Up @@ -52,6 +52,7 @@
"tests/files/img/f617c7af7f36296a37ddb419b828099c.gif",
"tests/files/img/http.svg",
"tests/files/js/sample.js",
"tests/files/js/sample.mjs",
"tests/files/sample.json",
"tests/files/sample.xml",
]
Expand All @@ -77,6 +78,7 @@
("img/http.svg", "image/svg+xml"),
("html/index.html", "text/html"),
("js/sample.js", "text/javascript"),
("js/sample.mjs", "text/javascript"),
("sample.json", "application/json"),
("sample.xml", "application/xml"),
]
Expand Down

0 comments on commit e0b2a3e

Please sign in to comment.