Skip to content

Commit

Permalink
Merge pull request #3 from shgysk8zer0/feature/mimes
Browse files Browse the repository at this point in the history
Add `mimes.js`
  • Loading branch information
shgysk8zer0 committed Sep 25, 2023
2 parents 7b33423 + 2d12781 commit c0eccfe
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [v1.0.2] - 2023-09-25

### Added
- Add missing `mimes.js`
- Add a few missing extensions

### Fixed
- Export things correctly

## [v1.0.1] - 2023-09-24

### Fixed
Expand Down
12 changes: 11 additions & 1 deletion exts.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const TEXT = ['.txt'];
export const PLAIN_TEXT = TEXT;
export const HTML = ['.html', '.htm'];
export const CSS = ['.css'];
export const JS = ['.js'];
export const JS = ['.js', '.mjs', '.cjs'];
export const JSON = ['.json'];
export const JSON_LD = ['.jsonld'];
export const WEB_APP_MANIFEST = ['.webmanifest'];
Expand All @@ -18,16 +18,23 @@ export const ATOM_XML = ['.atom'];
export const ATOM = ATOM_XML;
export const XSLT = ['.xslt'];
export const XHTML = ['.xhtml'];
export const MATH_ML = ['.mml'];
export const MARKDOWN = ['.md'];
export const YAML = ['.yml', '.yaml'];

// Images
export const JPEG = ['.jpeg', '.jpg'];
export const PNG = ['.png'];
export const GIF = ['.gif'];
export const WEBP = ['.webp'];
export const SVG = ['.svg'];
export const AVIF = ['.avif'];
export const GIMP = ['.xcf'];

// iOS Images
export const HEIC = ['.heic'];
export const HEIF = ['.heif'];

// Audio
export const OGG_AUDIO = ['.ogg', '.oga'];
export const OGA = OGG_AUDIO;
Expand All @@ -36,12 +43,15 @@ export const AAC = ['.aac'];
export const FLAC = ['.flac'];
export const WAV = ['.wav'];
export const MIDI = ['.midi'];
export const M4A = ['.m4a'];

// Video
export const WEBM = ['.webm'];
export const OGG_VIDEO = ['.ogg', '.ogv'];
export const OGV = OGG_VIDEO;
export const MP4 = ['.mp4'];
export const M4V = MP4;
export const QUICKTIME = ['.mov'];
export const WEBVTT = ['.vtt'];

// Fonts
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
"name": "@shgysk8zer0/consts",
"version": "1.0.1",
"version": "1.0.2",
"description": "A collection of constants for files, HTTP, dates, etc.",
"type": "module",
"exports": {
"./*": {
"./*.js": {
"import": "./*.js"
},
"./*.js": {
"import": "./*"
"./*.mjs": {
"import": "./*.js"
},
"./*": {
"import": "./*.js"
}
},
"engines": {
Expand Down

0 comments on commit c0eccfe

Please sign in to comment.