@nxtedition/mime 1.0.5 → 1.1.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/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
1
  export declare function lookup(name: string): string | null;
2
+ export { lookup as getType };
2
3
  export declare function extension(mimeType: string): string | null;
4
+ export { extension as getExtension };
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.0.5",
3
+ "version": "1.1.0",
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": "ae6ea1975fe8e26070091bbd4fac1d8a1cef94b6"
33
+ "gitHead": "733dcb203c07da0f564ad4626228c3da556c27b2"
34
34
  }