@nxtedition/mime 1.0.5 → 1.1.1
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/index.d.ts +2 -0
- package/lib/index.js +4 -0
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -171,6 +171,8 @@ export function lookup(name ) {
|
|
|
171
171
|
return mime.getType(name)
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
+
export { lookup as getType }
|
|
175
|
+
|
|
174
176
|
export function extension(mimeType ) {
|
|
175
177
|
if (typeof mimeType !== 'string' || mimeType.length === 0) {
|
|
176
178
|
return null
|
|
@@ -182,3 +184,5 @@ export function extension(mimeType ) {
|
|
|
182
184
|
|
|
183
185
|
return mime.getExtension(mimeType) || null
|
|
184
186
|
}
|
|
187
|
+
|
|
188
|
+
export { extension as getExtension }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxtedition/mime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"rimraf": "^6.1.3",
|
|
31
31
|
"typescript": "^5.9.3"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "a95ef1b72677b853fd7943f7071c266f1789e134"
|
|
34
34
|
}
|