m4k 0.2.5 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/util/mime.d.ts +1 -4
- package/lib/util/mime.js +1 -51
- package/package.json +6 -3
package/lib/util/mime.d.ts
CHANGED
package/lib/util/mime.js
CHANGED
|
@@ -1,52 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Mapping from file extensions to their corresponding MIME types
|
|
3
|
-
*/
|
|
4
|
-
export const mimeTypes = {
|
|
5
|
-
// Image formats
|
|
6
|
-
jpg: "image/jpeg",
|
|
7
|
-
jpeg: "image/jpeg",
|
|
8
|
-
png: "image/png",
|
|
9
|
-
gif: "image/gif",
|
|
10
|
-
webp: "image/webp",
|
|
11
|
-
avif: "image/avif",
|
|
12
|
-
heic: "image/heic",
|
|
13
|
-
heif: "image/heif",
|
|
14
|
-
svg: "image/svg+xml",
|
|
15
|
-
tiff: "image/tiff",
|
|
16
|
-
tif: "image/tiff",
|
|
17
|
-
bmp: "image/bmp",
|
|
18
|
-
ico: "image/x-icon",
|
|
19
|
-
// Video formats
|
|
20
|
-
mp4: "video/mp4",
|
|
21
|
-
asx: "video/x-ms-asf",
|
|
22
|
-
asf: "video/x-ms-asf",
|
|
23
|
-
mkv: "video/x-matroska",
|
|
24
|
-
mov: "video/quicktime",
|
|
25
|
-
avi: "video/x-msvideo",
|
|
26
|
-
wmv: "video/x-ms-wmv",
|
|
27
|
-
flv: "video/x-flv",
|
|
28
|
-
webm: "video/webm",
|
|
29
|
-
m4v: "video/x-m4v",
|
|
30
|
-
mng: "video/x-mng",
|
|
31
|
-
mpg: "video/mpeg",
|
|
32
|
-
mpeg: "video/mpeg",
|
|
33
|
-
ogv: "video/ogg",
|
|
34
|
-
"3gpp": "video/3gpp",
|
|
35
|
-
"3gp": "video/3gpp",
|
|
36
|
-
ts: "video/mp2t",
|
|
37
|
-
// Audio formats
|
|
38
|
-
mp3: "audio/mpeg",
|
|
39
|
-
wav: "audio/wav",
|
|
40
|
-
ogg: "audio/ogg",
|
|
41
|
-
oga: "audio/ogg",
|
|
42
|
-
m4a: "audio/mp4",
|
|
43
|
-
aac: "audio/aac",
|
|
44
|
-
flac: "audio/flac",
|
|
45
|
-
wma: "audio/x-ms-wma",
|
|
46
|
-
m4b: "audio/mp4",
|
|
47
|
-
m4p: "audio/mp4",
|
|
48
|
-
opus: "audio/opus",
|
|
49
|
-
aiff: "audio/aiff",
|
|
50
|
-
alac: "audio/alac",
|
|
51
|
-
};
|
|
1
|
+
export { mimeTypes } from "@m4k/common";
|
|
52
2
|
//# sourceMappingURL=mime.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "m4k",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -28,10 +28,13 @@
|
|
|
28
28
|
"typescript": "^5.8.3"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@m4k/common": "
|
|
31
|
+
"@m4k/common": "0.2.3"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"sharp": "^0.34.1"
|
|
35
35
|
},
|
|
36
|
-
"repository":
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git+https://github.com/sv2dev/m4k.git"
|
|
39
|
+
}
|
|
37
40
|
}
|