fix(core): update
This commit is contained in:
@@ -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';
|
||||
};
|
||||
Reference in New Issue
Block a user