npm package diff

Package: @forge/cli-shared

Versions: 8.2.0-next.8 - 8.2.0-next.9

Modified: package/out/file-system/file-system-reader.js

Index: package/out/file-system/file-system-reader.js
===================================================================
--- package/out/file-system/file-system-reader.js
+++ package/out/file-system/file-system-reader.js
@@ -7,9 +7,8 @@
 const os_1 = require("os");
 const path_1 = tslib_1.__importStar(require("path"));
 const util_1 = require("util");
 const recursive_readdir_1 = tslib_1.__importDefault(require("recursive-readdir"));
-const get_folder_size_1 = tslib_1.__importDefault(require("get-folder-size"));
 const shared_1 = require("../shared");
 const FILE_NOT_FOUND_CODE = 'ENOENT';
 class FileSystemReader {
     fileExists(filePath) {
@@ -96,16 +95,14 @@
             return undefined;
         }
     }
     async getFolderSizeAsync(directory) {
-        return new Promise((resolve) => {
-            (0, get_folder_size_1.default)(directory, (err, size) => {
-                if (err) {
-                    resolve(undefined);
-                }
-                return resolve(size);
-            });
-        });
+        const getFolderSize = (await import('get-folder-size')).default;
+        const result = await getFolderSize(directory);
+        if (result.errors) {
+            return undefined;
+        }
+        return result.size;
     }
     handleFileError(error) {
         if (error && error.code === FILE_NOT_FOUND_CODE) {
             return undefined;

Modified: package/package.json

Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@forge/cli-shared",
-  "version": "8.2.0-next.8",
+  "version": "8.2.0-next.9",
   "description": "Common functionality for Forge CLI",
   "author": "Atlassian",
   "license": "SEE LICENSE IN LICENSE.txt",
   "main": "out/index.js",
@@ -27,9 +27,9 @@
     "env-paths": "^2.2.1",
     "figures": "^3.2.0",
     "fp-ts": "^2.16.2",
     "fs-extra": "^11.2.0",
-    "get-folder-size": "^2.0.1",
+    "get-folder-size": "^5.0.0",
     "glob": "^10.3.10",
     "graphql": "^16.8.1",
     "graphql-request": "6.1.0",
     "inquirer": "^8.2.6",

Modified: package/out/file-system/file-system-reader.d.ts.map

Index: package/out/file-system/file-system-reader.d.ts.map
===================================================================
--- package/out/file-system/file-system-reader.d.ts.map
+++ package/out/file-system/file-system-reader.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"file-system-reader.d.ts","sourceRoot":"","sources":["../../src/file-system/file-system-reader.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAA4B,MAAM,IAAI,CAAC;AAW9C,aAAK,cAAc,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,OAAO,CAAC;AAEjE,qBAAa,gBAAgB;IACpB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAIrC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAQxC,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAS5D,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,GAAG,cAAc,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAgBtG,QAAQ,CAAC,EAAE,OAAO,EAAE,SAAiB,EAAE,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAmB3G,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAI7C,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAQ9C,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IASxE,gBAAgB,IAAI,MAAM;IAI1B,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM;IAO3C,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAQvC,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAW/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