mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +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:
@@ -57,6 +57,7 @@
|
||||
"cmdk": "^1.0.0",
|
||||
"css-spring": "^4.1.0",
|
||||
"dayjs": "^1.11.10",
|
||||
"file-type": "^19.1.0",
|
||||
"foxact": "^0.2.33",
|
||||
"fractional-indexing": "^3.2.0",
|
||||
"fuse.js": "^7.0.0",
|
||||
|
||||
@@ -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