diff --git a/libs/table/cells/SizeCell.tsx b/libs/table/cells/SizeCell.tsx
index 223482c25..f1f358203 100644
--- a/libs/table/cells/SizeCell.tsx
+++ b/libs/table/cells/SizeCell.tsx
@@ -5,13 +5,13 @@
*
* Copyright Oxide Computer Company
*/
-import fileSize from 'filesize'
+import { filesize } from 'filesize'
import type { Cell } from './Cell'
/** Human-readable format for size in bytes */
export const SizeCell = ({ value: bytes }: Cell) => {
- const size = fileSize(bytes, { base: 2, output: 'object' })
+ const size = filesize(bytes, { base: 2, output: 'object' })
return (
{size.value} {size.unit}
diff --git a/libs/ui/lib/file-input/FileInput.tsx b/libs/ui/lib/file-input/FileInput.tsx
index 3c188b44c..bc0e92497 100644
--- a/libs/ui/lib/file-input/FileInput.tsx
+++ b/libs/ui/lib/file-input/FileInput.tsx
@@ -6,7 +6,7 @@
* Copyright Oxide Computer Company
*/
import cn from 'classnames'
-import filesize from 'filesize'
+import { filesize } from 'filesize'
import {
forwardRef,
useRef,
diff --git a/package-lock.json b/package-lock.json
index 659741cc7..acdb6b0d0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -25,7 +25,7 @@
"@tanstack/react-table": "^8.11.3",
"classnames": "^2.5.1",
"date-fns": "^2.30.0",
- "filesize": "^8.0.7",
+ "filesize": "^10.1.0",
"lodash.throttle": "^4.1.1",
"match-sorter": "^6.3.1",
"mousetrap": "^1.6.5",
@@ -10431,11 +10431,11 @@
}
},
"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.0",
+ "resolved": "https://registry.npmjs.org/filesize/-/filesize-10.1.0.tgz",
+ "integrity": "sha512-GTLKYyBSDz3nPhlLVPjPWZCnhkd9TrrRArNcy8Z+J2cqScB7h2McAzR6NBX6nYOoWafql0roY8hrocxnZBv9CQ==",
"engines": {
- "node": ">= 0.4.0"
+ "node": ">= 10.4.0"
}
},
"node_modules/fill-range": {
@@ -29053,9 +29053,9 @@
}
},
"filesize": {
- "version": "8.0.7",
- "resolved": "https://registry.npmjs.org/filesize/-/filesize-8.0.7.tgz",
- "integrity": "sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ=="
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/filesize/-/filesize-10.1.0.tgz",
+ "integrity": "sha512-GTLKYyBSDz3nPhlLVPjPWZCnhkd9TrrRArNcy8Z+J2cqScB7h2McAzR6NBX6nYOoWafql0roY8hrocxnZBv9CQ=="
},
"fill-range": {
"version": "7.0.1",
diff --git a/package.json b/package.json
index e0c45d27f..39ff3a960 100644
--- a/package.json
+++ b/package.json
@@ -46,7 +46,7 @@
"@tanstack/react-table": "^8.11.3",
"classnames": "^2.5.1",
"date-fns": "^2.30.0",
- "filesize": "^8.0.7",
+ "filesize": "^10.1.0",
"lodash.throttle": "^4.1.1",
"match-sorter": "^6.3.1",
"mousetrap": "^1.6.5",