mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
fix: switch to file-type v19.1.0 (#7459)
The official `file-type` package has replaced the usage of node:buffer with Uint8Array. This change allows it to run safely in the browser now. Related to https://github.com/sindresorhus/file-type/issues/578
This commit is contained in:
@@ -16,9 +16,9 @@ import {
|
||||
ViewBarIcon,
|
||||
} from '@blocksuite/icons/rc';
|
||||
import type { BlockModel } from '@blocksuite/store';
|
||||
import { fileTypeFromBuffer } from '@sgtpooki/file-type';
|
||||
import { useService } from '@toeverything/infra';
|
||||
import clsx from 'clsx';
|
||||
import { fileTypeFromBuffer } from 'file-type';
|
||||
import { useErrorBoundary } from 'foxact/use-error-boundary';
|
||||
import type { PropsWithChildren, ReactElement } from 'react';
|
||||
import {
|
||||
|
||||
Reference in New Issue
Block a user