Skip to content

Commit

Permalink
fix: swap mime type library
Browse files Browse the repository at this point in the history
  • Loading branch information
dallen4 committed Jan 11, 2025
1 parent 588b85e commit 947d972
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/lib/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
importKeyFromBase64,
} from '@shared/lib/crypto/operations';
import { writeFileFromBuffer, readFileAsBuffer } from './files';
import Mime from 'mime-type';
import mime from 'mime';
import { generateIV } from '@shared/lib/util';
import { SECRET_VALUE_DELIMITER } from './constants';

Expand All @@ -20,7 +20,7 @@ export const encryptFile = async (
const fileBuffer = await readFileAsBuffer(path);

const name = path.split('/').pop()!;
const type = new Mime({}, 0).lookup(path);
const type = mime.getType(path);
const encryptedFile = await encrypt(key, iv, fileBuffer);

return {
Expand Down

0 comments on commit 947d972

Please sign in to comment.