diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 6e108b2..d72beba 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartmime', - version: '2.0.1', + version: '2.0.2', description: 'A module for detecting MIME types with support for binary and text file distinctions.' } diff --git a/ts/index.ts b/ts/index.ts index b44cbca..e9fd99d 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -43,7 +43,7 @@ export const getEncoding = async (optionsArg: { /** * Synchronous version to get encoding based on the file extension */ -export const getPathEncodingSync = (path: string): 'binary' | 'utf8' => { +export const getEncodingForPathSync = (path: string): 'binary' | 'utf8' => { const mimeType = plugins.mime.getType(path); return binaryMimeTypes.includes(mimeType) ? 'binary' : 'utf8'; }; \ No newline at end of file