diff --git a/std/media_types/db_c50e0d1.json b/std/media_types/db.json similarity index 99% rename from std/media_types/db_c50e0d1.json rename to std/media_types/db.json index 8444e8b39a..513d1bd5a3 100644 --- a/std/media_types/db_c50e0d1.json +++ b/std/media_types/db.json @@ -1537,6 +1537,9 @@ "application/tve-trigger": { "source": "iana" }, + "application/typescript": { + "extensions": ["ts"] + }, "application/tzif": { "source": "iana" }, @@ -7718,10 +7721,6 @@ "video/mp2p": { "source": "iana" }, - "video/mp2t": { - "source": "iana", - "extensions": ["ts"] - }, "video/mp4": { "source": "iana", "compressible": false, diff --git a/std/media_types/deps.ts b/std/media_types/deps.ts index 2a56d20795..b09c258176 100644 --- a/std/media_types/deps.ts +++ b/std/media_types/deps.ts @@ -11,5 +11,5 @@ interface DB { }; } -import _db from "./db_c50e0d1.json"; +import _db from "./db.json"; export const db: DB = _db; diff --git a/std/media_types/test.ts b/std/media_types/test.ts index c3caf71df1..0bf39e298e 100644 --- a/std/media_types/test.ts +++ b/std/media_types/test.ts @@ -27,6 +27,7 @@ test(function testContentType(): void { "text/html; charset=iso-8859-1" ); assertEquals(contentType(".htaccess"), undefined); + assertEquals(contentType("file.ts"), "application/typescript"); }); test(function testExtension(): void {