From 75492c3aa5f68af643310bdc811be5979a009fe0 Mon Sep 17 00:00:00 2001 From: Bert De Block Date: Sat, 1 Oct 2022 23:07:11 +0200 Subject: [PATCH] Update `filesize` to v10 --- lib/models/asset-size-printer.js | 2 +- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/models/asset-size-printer.js b/lib/models/asset-size-printer.js index 4053ea98cc..842ec4bbad 100644 --- a/lib/models/asset-size-printer.js +++ b/lib/models/asset-size-printer.js @@ -11,7 +11,7 @@ module.exports = class AssetPrinterSize { } print() { - const filesize = require('filesize'); + const { filesize } = require('filesize'); let ui = this.ui; return this.makeAssetSizesObject().then((files) => { diff --git a/package.json b/package.json index e392abcca9..6fdacf0155 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "execa": "^5.1.1", "exit": "^0.1.2", "express": "^4.18.1", - "filesize": "^9.0.11", + "filesize": "^10.0.5", "find-up": "^5.0.0", "find-yarn-workspace-root": "^2.0.0", "fixturify-project": "^2.1.1", diff --git a/yarn.lock b/yarn.lock index 503448cc5f..d096964e53 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3680,10 +3680,10 @@ file-uri-to-path@2: resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-2.0.0.tgz#7b415aeba227d575851e0a5b0c640d7656403fba" integrity sha512-hjPFI8oE/2iQPVe4gbrJ73Pp+Xfub2+WI2LlXDbsaJBwT5wuMh35WNWVYYTpnz895shtwfyutMFLFywpQAFdLg== -filesize@^9.0.11: - version "9.0.11" - resolved "https://registry.yarnpkg.com/filesize/-/filesize-9.0.11.tgz#4ac3a42c084232dd9b2a1da0107f32d42fcfa5e4" - integrity sha512-gTAiTtI0STpKa5xesyTA9hA3LX4ga8sm2nWRcffEa1L/5vQwb4mj2MdzMkoHoGv4QzfDshQZuYscQSf8c4TKOA== +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@^4.0.0: version "4.0.0"