diff --git a/package.json b/package.json index 7b0011af8f..e102fda627 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "emojibase-regex": "6.0.1", "escape-html": "^1.0.3", "file-saver": "^2.0.5", - "filesize": "6.1.0", + "filesize": "10.0.5", "flux": "4.0.3", "focus-visible": "^5.2.0", "gfm.css": "^1.1.2", diff --git a/src/components/structures/UploadBar.tsx b/src/components/structures/UploadBar.tsx index 673afb1b13..2bc7a16842 100644 --- a/src/components/structures/UploadBar.tsx +++ b/src/components/structures/UploadBar.tsx @@ -16,7 +16,7 @@ limitations under the License. import React from 'react'; import { Room } from "matrix-js-sdk/src/models/room"; -import filesize from "filesize"; +import { filesize } from "filesize"; import { IEventRelation } from 'matrix-js-sdk/src/matrix'; import { Optional } from "matrix-events-sdk"; diff --git a/src/components/views/dialogs/UploadConfirmDialog.tsx b/src/components/views/dialogs/UploadConfirmDialog.tsx index bd68171240..647c809aeb 100644 --- a/src/components/views/dialogs/UploadConfirmDialog.tsx +++ b/src/components/views/dialogs/UploadConfirmDialog.tsx @@ -16,7 +16,7 @@ limitations under the License. */ import React from 'react'; -import filesize from "filesize"; +import { filesize } from "filesize"; import { Icon as FileIcon } from '../../../../res/img/feather-customised/files.svg'; import { _t } from '../../../languageHandler'; diff --git a/src/components/views/dialogs/UploadFailureDialog.tsx b/src/components/views/dialogs/UploadFailureDialog.tsx index 8a25671ea0..ed7e9398a9 100644 --- a/src/components/views/dialogs/UploadFailureDialog.tsx +++ b/src/components/views/dialogs/UploadFailureDialog.tsx @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import filesize from 'filesize'; +import { filesize } from 'filesize'; import React from 'react'; import { _t } from '../../../languageHandler'; diff --git a/src/components/views/messages/MFileBody.tsx b/src/components/views/messages/MFileBody.tsx index 8f8b6d03b5..28e82ef42e 100644 --- a/src/components/views/messages/MFileBody.tsx +++ b/src/components/views/messages/MFileBody.tsx @@ -15,7 +15,7 @@ limitations under the License. */ import React, { createRef } from 'react'; -import filesize from 'filesize'; +import { filesize } from 'filesize'; import { logger } from "matrix-js-sdk/src/logger"; import { _t } from '../../../languageHandler'; diff --git a/src/utils/FileUtils.ts b/src/utils/FileUtils.ts index 948f023d7e..152f721709 100644 --- a/src/utils/FileUtils.ts +++ b/src/utils/FileUtils.ts @@ -15,7 +15,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import filesize from 'filesize'; +import { filesize } from 'filesize'; import { IMediaEventContent } from '../customisations/models/IMediaEventContent'; import { _t } from '../languageHandler'; diff --git a/yarn.lock b/yarn.lock index c7f316c78e..6123df1a93 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4565,10 +4565,10 @@ file-saver@^2.0.5: resolved "https://registry.yarnpkg.com/file-saver/-/file-saver-2.0.5.tgz#d61cfe2ce059f414d899e9dd6d4107ee25670c38" integrity sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA== -filesize@6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/filesize/-/filesize-6.1.0.tgz#e81bdaa780e2451d714d71c0d7a4f3238d37ad00" - integrity sha512-LpCHtPQ3sFx67z+uh2HnSyWSLLu5Jxo21795uRDuar/EOuYWXib5EmPaGIBuSnRqH2IODiKA2k5re/K9OnN/Yg== +filesize@10.0.5: + version "10.0.5" + resolved "https://registry.yarnpkg.com/filesize/-/filesize-10.0.5.tgz#d77553eb00a525f4cc7983047d2197cda6fff321" + integrity sha512-qrzyt8gLh86nsyYiC3ibI5KyIYRCWg2yqIklYrWF4a0qNfekik4OQfn7AoPJG2hRrPMSlH6fET4VEITweZAzjA== fill-range@^7.0.1: version "7.0.1"