Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added .gpkg extension for application/geopackage+sqlite3 from IANA #325

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
3 changes: 2 additions & 1 deletion db.json
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,8 @@
"source": "iana"
},
"application/geopackage+sqlite3": {
"source": "iana"
"source": "iana",
"extensions": ["gpkg"]
},
"application/geoxacml+xml": {
"source": "iana",
Expand Down
2 changes: 1 addition & 1 deletion scripts/fetch-iana.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
Expand Down
1 change: 1 addition & 0 deletions src/iana-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,7 @@
]
},
"application/geopackage+sqlite3": {
"extensions": ["gpkg"],
"sources": [
"https://www.iana.org/assignments/media-types/application/geopackage+sqlite3"
]
Expand Down