update deps

This commit is contained in:
syuilo
2022-03-07 23:51:34 +09:00
parent 513c83e374
commit 45c5f0c60a
5 changed files with 579 additions and 449 deletions

View File

@ -2,7 +2,7 @@ import * as fs from 'node:fs';
import * as crypto from 'node:crypto';
import * as stream from 'node:stream';
import * as util from 'node:util';
import fileType from 'file-type';
import { fileTypeFromFile } from 'file-type';
import isSvg from 'is-svg';
import probeImageSize from 'probe-image-size';
import sharp from 'sharp';
@ -109,7 +109,7 @@ export async function detectType(path: string): Promise<{
return TYPE_OCTET_STREAM;
}
const type = await fileType.fromFile(path);
const type = await fileTypeFromFile(path);
if (type) {
// XMLはSVGかもしれない