From 914e6639cc410edce9e6278c714d391e2ae4bb17 Mon Sep 17 00:00:00 2001 From: ThorodanBrom Date: Sat, 1 Jun 2024 12:44:08 +0530 Subject: [PATCH] Added `.gpkg` extension for `application/geopackage+sqlite3` --- HISTORY.md | 1 + db.json | 3 ++- scripts/fetch-iana.js | 2 +- src/iana-types.json | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 9edbecdc..b0eefdd3 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,6 +1,7 @@ unreleased ========== + * Add extension `gpkg.` to `application/geopackage+sqlite3` * Add extension `.sql` to `application/sql` * Add extensions `.aac` and `.adts` to `audio/aac` * Add extensions `.js` and `.mjs` to `text/javascript` diff --git a/db.json b/db.json index 582ac487..05767884 100644 --- a/db.json +++ b/db.json @@ -641,7 +641,8 @@ "source": "iana" }, "application/geopackage+sqlite3": { - "source": "iana" + "source": "iana", + "extensions": ["gpkg"] }, "application/geoxacml+xml": { "source": "iana", diff --git a/scripts/fetch-iana.js b/scripts/fetch-iana.js index 60766210..de24c939 100644 --- a/scripts/fetch-iana.js +++ b/scripts/fetch-iana.js @@ -35,7 +35,7 @@ var MIME_TYPE_HAS_CHARSET_PARAMETER_REGEXP = /parameters\s*:[^.]*\bcharset\b/im ;(async function () { const results = Array.prototype.concat.apply([], [ - await get('application', { extensions: /(?:\/(?:automationml-amlx?\+.+|cwl|ecmascript|express|fdf|gzip|(?:ld|manifest)\+json|mp4|n-quads|n-triples|pgp-.+|sql|trig|vnd\.(?:age|apple\..+|dbf|mapbox-vector-tile|rar))|xfdf|\+xml)$/ }), + await get('application', { extensions: /(?:\/(?:automationml-amlx?\+.+|cwl|ecmascript|express|fdf|geopackage\+sqlite3|gzip|(?:ld|manifest)\+json|mp4|n-quads|n-triples|pgp-.+|sql|trig|vnd\.(?:age|apple\..+|dbf|mapbox-vector-tile|rar))|xfdf|\+xml)$/ }), await get('audio', { extensions: /\/(?:aac|mobile-xmf)$/ }), await get('font', { extensions: true }), await get('image', { extensions: true }), diff --git a/src/iana-types.json b/src/iana-types.json index b6244c13..a7c6c6b0 100644 --- a/src/iana-types.json +++ b/src/iana-types.json @@ -912,6 +912,7 @@ ] }, "application/geopackage+sqlite3": { + "extensions": ["gpkg"], "sources": [ "https://www.iana.org/assignments/media-types/application/geopackage+sqlite3" ]