From 34a223203615d54d773a46ed9ef4bcbea7072fa5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 18:52:00 +0000 Subject: [PATCH 1/2] fix(deps): update dependency filesize to v10 --- package-lock.json | 20 +++++++++++++++----- package.json | 2 +- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1ded4fb1..22f8e775 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "dompurify": "^2.3.1", "email-prop-type": "^3.0.1", "file-saver": "^2.0.5", - "filesize": "^8.0.6", + "filesize": "^10.0.0", "font-awesome": "4.7.0", "history": "5.3.0", "html-react-parser": "^1.3.0", @@ -10094,11 +10094,12 @@ } }, "node_modules/filesize": { - "version": "8.0.7", - "resolved": "https://registry.npmjs.org/filesize/-/filesize-8.0.7.tgz", - "integrity": "sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ==", + "version": "10.1.6", + "resolved": "https://registry.npmjs.org/filesize/-/filesize-10.1.6.tgz", + "integrity": "sha512-sJslQKU2uM33qH5nqewAwVB2QgR6w1aMNsYUp3aN5rMRyXEwJGmZvaWzeJFNTOXWlHQyBFCWrdj3fV/fsTOX8w==", + "license": "BSD-3-Clause", "engines": { - "node": ">= 0.4.0" + "node": ">= 10.4.0" } }, "node_modules/fill-range": { @@ -19088,6 +19089,15 @@ "node": ">=14" } }, + "node_modules/react-dev-utils/node_modules/filesize": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/filesize/-/filesize-8.0.7.tgz", + "integrity": "sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ==", + "license": "BSD-3-Clause", + "engines": { + "node": ">= 0.4.0" + } + }, "node_modules/react-dev-utils/node_modules/loader-utils": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.3.1.tgz", diff --git a/package.json b/package.json index 7f696989..5818767b 100755 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "dompurify": "^2.3.1", "email-prop-type": "^3.0.1", "file-saver": "^2.0.5", - "filesize": "^8.0.6", + "filesize": "^10.0.0", "font-awesome": "4.7.0", "history": "5.3.0", "html-react-parser": "^1.3.0", From 8108df7d3408e6b7e07edd5213409a194ab69ee8 Mon Sep 17 00:00:00 2001 From: milad-emami Date: Tue, 5 Nov 2024 17:20:29 +0330 Subject: [PATCH 2/2] fix: update filesize import to use named export --- src/components/FilePopoverContent/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/FilePopoverContent/index.jsx b/src/components/FilePopoverContent/index.jsx index f5c13054..fa58e5c0 100644 --- a/src/components/FilePopoverContent/index.jsx +++ b/src/components/FilePopoverContent/index.jsx @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from '@edx/frontend-platform/i18n'; -import filesize from 'filesize'; +import { filesize } from 'filesize'; import messages from './messages';