@ethersphere/bee-dashboard 0.36.1 → 0.36.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.html CHANGED
@@ -9,7 +9,7 @@
9
9
  <link rel="apple-touch-icon" href="/logo192.png" />
10
10
  <link rel="manifest" href="/manifest.json" />
11
11
  <title>Bee Dashboard</title>
12
- <script type="module" crossorigin src="/assets/index-T9boIyrz.js"></script>
12
+ <script type="module" crossorigin src="/assets/index-QjfIOSmO.js"></script>
13
13
  <link rel="modulepreload" crossorigin href="/assets/vendor-react-mui-tUcmOwCz.js">
14
14
  <link rel="modulepreload" crossorigin href="/assets/vendor-ethers-DdwEM-gK.js">
15
15
  <link rel="stylesheet" crossorigin href="/assets/index-DMp5phAM.css">
@@ -88891,10 +88891,10 @@ P?.name || "";
88891
88891
  const bytesEndpoint = "bytes";
88892
88892
  async function processDownload(bee, resources, options, requestOptions) {
88893
88893
  if (O$1) {
88894
- const { downloadNode } = await Promise.resolve().then(() => require("./download.node-sjp1kwLg.js"));
88894
+ const { downloadNode } = await Promise.resolve().then(() => require("./download.node-DNc4t8KE.js"));
88895
88895
  return await downloadNode(bee, Object.values(resources), options, requestOptions);
88896
88896
  }
88897
- const { downloadBrowser } = await Promise.resolve().then(() => require("./download.browser-CkVF14pl.js"));
88897
+ const { downloadBrowser } = await Promise.resolve().then(() => require("./download.browser-DVvlVttp.js"));
88898
88898
  return await downloadBrowser(Object.values(resources), bee.url, bytesEndpoint, options, requestOptions);
88899
88899
  }
88900
88900
  class EventEmitterBase {
@@ -88951,7 +88951,7 @@ async function processUpload(bee, driveInfo, fileOptions, uploadOptions, request
88951
88951
  return processedOptions.file;
88952
88952
  }
88953
88953
  if (O$1) {
88954
- const { processUploadNode } = await Promise.resolve().then(() => require("./upload.node-DBWX-yGw.js"));
88954
+ const { processUploadNode } = await Promise.resolve().then(() => require("./upload.node-FJ4naJB8.js"));
88955
88955
  const nodeOptions = processedOptions.options;
88956
88956
  return processUploadNode(bee, driveInfo, nodeOptions, uploadOptions, requestOptions);
88957
88957
  }
@@ -102561,78 +102561,74 @@ function AssetSummary({ reference: reference2 }) {
102561
102561
  /* @__PURE__ */ jsxRuntimeExports.jsx(DocumentationText, { children: "Files are accessed through your configured Bee API endpoint." })
102562
102562
  ] });
102563
102563
  }
102564
- function LinearProgressWithLabel(props) {
102564
+ function LinearProgressWithLabel({ indeterminate, value, linearProgressProps, label }) {
102565
+ const displayLabel = label ?? (indeterminate ? "Syncing..." : `${Math.round(value)}%`);
102565
102566
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { display: "flex", alignItems: "center", children: [
102566
- /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { width: "100%", mr: 1, children: /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgress, { variant: "determinate", ...props }) }),
102567
- /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { minWidth: 35, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "body2", color: "textSecondary", children: `${Math.round(props.value)}%` }) })
102567
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { width: "100%", mr: 1, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
102568
+ LinearProgress,
102569
+ {
102570
+ ...linearProgressProps,
102571
+ variant: indeterminate ? "indeterminate" : "determinate",
102572
+ value
102573
+ }
102574
+ ) }),
102575
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { minWidth: 35, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "body2", color: "textSecondary", children: displayLabel }) })
102568
102576
  ] });
102569
102577
  }
102570
- const SYNC_CHECK_INTERVAL_MS = 2e3;
102578
+ const PROBE_RETRY_DELAY_MS = 500;
102579
+ const PROBE_TIMEOUT_MS = 10 * 1e3;
102571
102580
  function AssetSyncing({ reference: reference2 }) {
102572
102581
  const { beeApi } = React.useContext(Context$8);
102573
- const syncTimer = React.useRef(null);
102574
- const retrieveCheckRef = React.useRef(false);
102575
- const [isRetrieveChecking, setIsRetrieveChecking] = React.useState(false);
102576
102582
  const [syncProgress, setSyncProgress] = React.useState(0);
102577
- const syncCheck = React.useCallback(async () => {
102583
+ const [probeFailed, setProbeFailed] = React.useState(false);
102584
+ React.useEffect(() => {
102585
+ setSyncProgress(0);
102586
+ setProbeFailed(false);
102578
102587
  if (!beeApi || !reference2) return;
102579
- let allTags = [];
102580
- let offset2 = 0;
102581
- const limit = 1e3;
102582
- let tagsBatch;
102583
- do {
102584
- tagsBatch = await beeApi.getAllTags({ limit, offset: offset2 });
102585
- allTags = allTags.concat(tagsBatch);
102586
- offset2 += limit;
102587
- } while (tagsBatch.length === limit);
102588
- const tag = allTags.find((t2) => t2.address === reference2);
102589
- if (tag && tag.split > 0) {
102590
- const progress = (tag.seen + tag.synced) / tag.split * 100;
102591
- setSyncProgress(progress);
102592
- } else if (!tag && !retrieveCheckRef.current) {
102593
- retrieveCheckRef.current = true;
102588
+ let isMounted = true;
102589
+ let retryTimer = null;
102590
+ let currentAbortController = null;
102591
+ const check = async (isRetry) => {
102592
+ const abortController = new AbortController();
102593
+ currentAbortController = abortController;
102594
+ const abortTimer = setTimeout(() => abortController.abort(), PROBE_TIMEOUT_MS);
102594
102595
  try {
102595
- if (await beeApi.isReferenceRetrievable(reference2)) {
102596
- setSyncProgress(100);
102597
- }
102596
+ await beeApi.probeData(reference2, { signal: abortController.signal });
102597
+ if (isMounted) setSyncProgress(100);
102598
102598
  } catch {
102599
+ if (!isMounted) return;
102600
+ if (!isRetry) {
102601
+ retryTimer = setTimeout(() => check(true), PROBE_RETRY_DELAY_MS);
102602
+ } else {
102603
+ setProbeFailed(true);
102604
+ }
102599
102605
  } finally {
102600
- retrieveCheckRef.current = false;
102606
+ clearTimeout(abortTimer);
102601
102607
  }
102602
- }
102603
- }, [beeApi, reference2]);
102604
- React.useEffect(() => {
102605
- syncTimer.current = setInterval(syncCheck, SYNC_CHECK_INTERVAL_MS);
102608
+ };
102609
+ check(false);
102606
102610
  return () => {
102607
- if (syncTimer.current) {
102608
- clearInterval(syncTimer.current);
102609
- syncTimer.current = null;
102611
+ isMounted = false;
102612
+ currentAbortController?.abort();
102613
+ if (retryTimer) {
102614
+ clearTimeout(retryTimer);
102610
102615
  }
102611
102616
  };
102612
- }, [reference2, syncCheck]);
102613
- React.useEffect(() => {
102614
- if (syncProgress === 100 && syncTimer.current) {
102615
- clearInterval(syncTimer.current);
102616
- syncTimer.current = null;
102617
- }
102618
- }, [syncProgress]);
102619
- React.useEffect(() => {
102620
- if (beeApi && reference2 && !isRetrieveChecking && syncProgress > 10 && syncProgress < 100) {
102621
- setIsRetrieveChecking(true);
102622
- beeApi.isReferenceRetrievable(reference2).then((isRetriavable) => {
102623
- if (isRetriavable) {
102624
- setSyncProgress(100);
102625
- }
102626
- setIsRetrieveChecking(false);
102627
- });
102628
- }
102629
- }, [syncProgress, isRetrieveChecking, beeApi, reference2]);
102617
+ }, [beeApi, reference2]);
102630
102618
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
102631
102619
  /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { mb: 2, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(DocumentationText, { children: [
102632
102620
  "Files are not immediately accessible on the Swarm network. Please wait until your upload is synced to the network.",
102633
102621
  " "
102634
102622
  ] }) }),
102635
- /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { mb: 4, children: /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgressWithLabel, { value: syncProgress }) })
102623
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { mb: 4, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
102624
+ LinearProgressWithLabel,
102625
+ {
102626
+ value: syncProgress,
102627
+ indeterminate: syncProgress < 100 && !probeFailed,
102628
+ label: probeFailed ? "Unknown" : void 0
102629
+ }
102630
+ ) }),
102631
+ probeFailed && /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { mb: 2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(DocumentationText, { children: "Upload succeeded, but we couldn't confirm it locally. Try refreshing this page — your file has very likely still been uploaded successfully." }) })
102636
102632
  ] });
102637
102633
  }
102638
102634
  function DownloadActionBar({
@@ -103861,7 +103857,7 @@ function Index$1() {
103861
103857
  ] })
103862
103858
  ] });
103863
103859
  }
103864
- const version = "0.36.1";
103860
+ const version = "0.36.2";
103865
103861
  var withoutCountries$1 = { exports: {} };
103866
103862
  function globals(defs2) {
103867
103863
  defs2("EPSG:4326", "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees");
@@ -88874,10 +88874,10 @@ P?.name || "";
88874
88874
  const bytesEndpoint = "bytes";
88875
88875
  async function processDownload(bee, resources, options, requestOptions) {
88876
88876
  if (O$1) {
88877
- const { downloadNode } = await import("./download.node-CmYlr7RX.mjs");
88877
+ const { downloadNode } = await import("./download.node-BvTcf4pA.mjs");
88878
88878
  return await downloadNode(bee, Object.values(resources), options, requestOptions);
88879
88879
  }
88880
- const { downloadBrowser } = await import("./download.browser-D4xwSLDm.mjs");
88880
+ const { downloadBrowser } = await import("./download.browser-1J0WA0ZY.mjs");
88881
88881
  return await downloadBrowser(Object.values(resources), bee.url, bytesEndpoint, options, requestOptions);
88882
88882
  }
88883
88883
  class EventEmitterBase {
@@ -88934,7 +88934,7 @@ async function processUpload(bee, driveInfo, fileOptions, uploadOptions, request
88934
88934
  return processedOptions.file;
88935
88935
  }
88936
88936
  if (O$1) {
88937
- const { processUploadNode } = await import("./upload.node-9Q7y6klc.mjs");
88937
+ const { processUploadNode } = await import("./upload.node-BHNhyWDJ.mjs");
88938
88938
  const nodeOptions = processedOptions.options;
88939
88939
  return processUploadNode(bee, driveInfo, nodeOptions, uploadOptions, requestOptions);
88940
88940
  }
@@ -102544,78 +102544,74 @@ function AssetSummary({ reference: reference2 }) {
102544
102544
  /* @__PURE__ */ jsxRuntimeExports.jsx(DocumentationText, { children: "Files are accessed through your configured Bee API endpoint." })
102545
102545
  ] });
102546
102546
  }
102547
- function LinearProgressWithLabel(props) {
102547
+ function LinearProgressWithLabel({ indeterminate, value, linearProgressProps, label }) {
102548
+ const displayLabel = label ?? (indeterminate ? "Syncing..." : `${Math.round(value)}%`);
102548
102549
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { display: "flex", alignItems: "center", children: [
102549
- /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { width: "100%", mr: 1, children: /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgress, { variant: "determinate", ...props }) }),
102550
- /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { minWidth: 35, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "body2", color: "textSecondary", children: `${Math.round(props.value)}%` }) })
102550
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { width: "100%", mr: 1, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
102551
+ LinearProgress,
102552
+ {
102553
+ ...linearProgressProps,
102554
+ variant: indeterminate ? "indeterminate" : "determinate",
102555
+ value
102556
+ }
102557
+ ) }),
102558
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { minWidth: 35, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "body2", color: "textSecondary", children: displayLabel }) })
102551
102559
  ] });
102552
102560
  }
102553
- const SYNC_CHECK_INTERVAL_MS = 2e3;
102561
+ const PROBE_RETRY_DELAY_MS = 500;
102562
+ const PROBE_TIMEOUT_MS = 10 * 1e3;
102554
102563
  function AssetSyncing({ reference: reference2 }) {
102555
102564
  const { beeApi } = useContext(Context$8);
102556
- const syncTimer = useRef(null);
102557
- const retrieveCheckRef = useRef(false);
102558
- const [isRetrieveChecking, setIsRetrieveChecking] = useState(false);
102559
102565
  const [syncProgress, setSyncProgress] = useState(0);
102560
- const syncCheck = useCallback(async () => {
102566
+ const [probeFailed, setProbeFailed] = useState(false);
102567
+ useEffect(() => {
102568
+ setSyncProgress(0);
102569
+ setProbeFailed(false);
102561
102570
  if (!beeApi || !reference2) return;
102562
- let allTags = [];
102563
- let offset2 = 0;
102564
- const limit = 1e3;
102565
- let tagsBatch;
102566
- do {
102567
- tagsBatch = await beeApi.getAllTags({ limit, offset: offset2 });
102568
- allTags = allTags.concat(tagsBatch);
102569
- offset2 += limit;
102570
- } while (tagsBatch.length === limit);
102571
- const tag = allTags.find((t2) => t2.address === reference2);
102572
- if (tag && tag.split > 0) {
102573
- const progress = (tag.seen + tag.synced) / tag.split * 100;
102574
- setSyncProgress(progress);
102575
- } else if (!tag && !retrieveCheckRef.current) {
102576
- retrieveCheckRef.current = true;
102571
+ let isMounted = true;
102572
+ let retryTimer = null;
102573
+ let currentAbortController = null;
102574
+ const check = async (isRetry) => {
102575
+ const abortController = new AbortController();
102576
+ currentAbortController = abortController;
102577
+ const abortTimer = setTimeout(() => abortController.abort(), PROBE_TIMEOUT_MS);
102577
102578
  try {
102578
- if (await beeApi.isReferenceRetrievable(reference2)) {
102579
- setSyncProgress(100);
102580
- }
102579
+ await beeApi.probeData(reference2, { signal: abortController.signal });
102580
+ if (isMounted) setSyncProgress(100);
102581
102581
  } catch {
102582
+ if (!isMounted) return;
102583
+ if (!isRetry) {
102584
+ retryTimer = setTimeout(() => check(true), PROBE_RETRY_DELAY_MS);
102585
+ } else {
102586
+ setProbeFailed(true);
102587
+ }
102582
102588
  } finally {
102583
- retrieveCheckRef.current = false;
102589
+ clearTimeout(abortTimer);
102584
102590
  }
102585
- }
102586
- }, [beeApi, reference2]);
102587
- useEffect(() => {
102588
- syncTimer.current = setInterval(syncCheck, SYNC_CHECK_INTERVAL_MS);
102591
+ };
102592
+ check(false);
102589
102593
  return () => {
102590
- if (syncTimer.current) {
102591
- clearInterval(syncTimer.current);
102592
- syncTimer.current = null;
102594
+ isMounted = false;
102595
+ currentAbortController?.abort();
102596
+ if (retryTimer) {
102597
+ clearTimeout(retryTimer);
102593
102598
  }
102594
102599
  };
102595
- }, [reference2, syncCheck]);
102596
- useEffect(() => {
102597
- if (syncProgress === 100 && syncTimer.current) {
102598
- clearInterval(syncTimer.current);
102599
- syncTimer.current = null;
102600
- }
102601
- }, [syncProgress]);
102602
- useEffect(() => {
102603
- if (beeApi && reference2 && !isRetrieveChecking && syncProgress > 10 && syncProgress < 100) {
102604
- setIsRetrieveChecking(true);
102605
- beeApi.isReferenceRetrievable(reference2).then((isRetriavable) => {
102606
- if (isRetriavable) {
102607
- setSyncProgress(100);
102608
- }
102609
- setIsRetrieveChecking(false);
102610
- });
102611
- }
102612
- }, [syncProgress, isRetrieveChecking, beeApi, reference2]);
102600
+ }, [beeApi, reference2]);
102613
102601
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
102614
102602
  /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { mb: 2, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(DocumentationText, { children: [
102615
102603
  "Files are not immediately accessible on the Swarm network. Please wait until your upload is synced to the network.",
102616
102604
  " "
102617
102605
  ] }) }),
102618
- /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { mb: 4, children: /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgressWithLabel, { value: syncProgress }) })
102606
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { mb: 4, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
102607
+ LinearProgressWithLabel,
102608
+ {
102609
+ value: syncProgress,
102610
+ indeterminate: syncProgress < 100 && !probeFailed,
102611
+ label: probeFailed ? "Unknown" : void 0
102612
+ }
102613
+ ) }),
102614
+ probeFailed && /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { mb: 2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(DocumentationText, { children: "Upload succeeded, but we couldn't confirm it locally. Try refreshing this page — your file has very likely still been uploaded successfully." }) })
102619
102615
  ] });
102620
102616
  }
102621
102617
  function DownloadActionBar({
@@ -103844,7 +103840,7 @@ function Index$1() {
103844
103840
  ] })
103845
103841
  ] });
103846
103842
  }
103847
- const version = "0.36.1";
103843
+ const version = "0.36.2";
103848
103844
  var withoutCountries$1 = { exports: {} };
103849
103845
  function globals(defs2) {
103850
103846
  defs2("EPSG:4326", "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees");
package/lib/App.cjs.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
- const App = require("./App-7cAV7lii.js");
2
+ const App = require("./App-B3D1R6YS.js");
3
3
  module.exports = App.App;
package/lib/App.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A } from "./App-_sIcw37E.mjs";
1
+ import { A } from "./App-CwQdMHYW.mjs";
2
2
  export {
3
3
  A as default
4
4
  };
@@ -3,6 +3,8 @@ import { ReactElement } from 'react';
3
3
  interface Props {
4
4
  linearProgressProps?: LinearProgressProps;
5
5
  value: number;
6
+ indeterminate?: boolean;
7
+ label?: string;
6
8
  }
7
- export declare function LinearProgressWithLabel(props: Props): ReactElement;
9
+ export declare function LinearProgressWithLabel({ indeterminate, value, linearProgressProps, label }: Props): ReactElement;
8
10
  export {};
@@ -1,4 +1,4 @@
1
- import { T as Types, R as Reference, P as PublicKey } from "./App-_sIcw37E.mjs";
1
+ import { T as Types, R as Reference, P as PublicKey } from "./App-CwQdMHYW.mjs";
2
2
  async function downloadReadableFetch(resource, apiUrl, endpoint, options, requestOptions) {
3
3
  if (options) {
4
4
  options = prepareDownloadOptions(options);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const App = require("./App-7cAV7lii.js");
3
+ const App = require("./App-B3D1R6YS.js");
4
4
  async function downloadReadableFetch(resource, apiUrl, endpoint, options, requestOptions) {
5
5
  if (options) {
6
6
  options = prepareDownloadOptions(options);
@@ -1,4 +1,4 @@
1
- import { s as settlePromises } from "./App-_sIcw37E.mjs";
1
+ import { s as settlePromises } from "./App-CwQdMHYW.mjs";
2
2
  async function downloadNode(bee, resources, options, requestOptions) {
3
3
  const dataPromises = [];
4
4
  for (const resource of resources) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const App = require("./App-7cAV7lii.js");
3
+ const App = require("./App-B3D1R6YS.js");
4
4
  async function downloadNode(bee, resources, options, requestOptions) {
5
5
  const dataPromises = [];
6
6
  for (const resource of resources) {
@@ -1,4 +1,4 @@
1
- import { F as FileError } from "./App-_sIcw37E.mjs";
1
+ import { F as FileError } from "./App-CwQdMHYW.mjs";
2
2
  const contentTypes = /* @__PURE__ */ new Map([
3
3
  [".mp4", "video/mp4"],
4
4
  [".webm", "video/webm"],
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const App = require("./App-7cAV7lii.js");
3
+ const App = require("./App-B3D1R6YS.js");
4
4
  const contentTypes = /* @__PURE__ */ new Map([
5
5
  [".mp4", "video/mp4"],
6
6
  [".webm", "video/webm"],
@@ -1,4 +1,4 @@
1
- import { B as BatchId, F as FileError } from "./App-_sIcw37E.mjs";
1
+ import { B as BatchId, F as FileError } from "./App-CwQdMHYW.mjs";
2
2
  async function uploadNode(bee, batchId, nodeOptions, uploadOptions, requestOptions) {
3
3
  const uploadFilesRes = await uploadFileOrDirectory(bee, new BatchId(batchId), nodeOptions.path, { ...uploadOptions, act: false }, requestOptions);
4
4
  let uploadPreviewRes;
@@ -12,7 +12,7 @@ async function uploadNode(bee, batchId, nodeOptions, uploadOptions, requestOptio
12
12
  return await bee.uploadData(batchId, JSON.stringify(wrappedData), { ...uploadOptions, act: true }, requestOptions);
13
13
  }
14
14
  async function uploadFileOrDirectory(bee, batchId, resolvedPath, uploadOptions, requestOptions) {
15
- const { isDir } = await import("./fs.node-DCqDmotb.mjs");
15
+ const { isDir } = await import("./fs.node-C0eGUtLy.mjs");
16
16
  const isPathDir = await isDir(resolvedPath);
17
17
  if (isPathDir) {
18
18
  return uploadDirectory(bee, batchId, resolvedPath, uploadOptions, requestOptions);
@@ -21,7 +21,7 @@ async function uploadFileOrDirectory(bee, batchId, resolvedPath, uploadOptions,
21
21
  }
22
22
  async function uploadFile(bee, batchId, resolvedPath, uploadOptions, requestOptions) {
23
23
  try {
24
- const { readFile } = await import("./fs.node-DCqDmotb.mjs");
24
+ const { readFile } = await import("./fs.node-C0eGUtLy.mjs");
25
25
  const { data, name, contentType } = await readFile(resolvedPath);
26
26
  return await bee.uploadFile(batchId, data, name, {
27
27
  ...uploadOptions,
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const App = require("./App-7cAV7lii.js");
3
+ const App = require("./App-B3D1R6YS.js");
4
4
  async function uploadNode(bee, batchId, nodeOptions, uploadOptions, requestOptions) {
5
5
  const uploadFilesRes = await uploadFileOrDirectory(bee, new App.BatchId(batchId), nodeOptions.path, { ...uploadOptions, act: false }, requestOptions);
6
6
  let uploadPreviewRes;
@@ -14,7 +14,7 @@ async function uploadNode(bee, batchId, nodeOptions, uploadOptions, requestOptio
14
14
  return await bee.uploadData(batchId, JSON.stringify(wrappedData), { ...uploadOptions, act: true }, requestOptions);
15
15
  }
16
16
  async function uploadFileOrDirectory(bee, batchId, resolvedPath, uploadOptions, requestOptions) {
17
- const { isDir } = await Promise.resolve().then(() => require("./fs.node-DTMYb9kO.js"));
17
+ const { isDir } = await Promise.resolve().then(() => require("./fs.node-DnKAgPam.js"));
18
18
  const isPathDir = await isDir(resolvedPath);
19
19
  if (isPathDir) {
20
20
  return uploadDirectory(bee, batchId, resolvedPath, uploadOptions, requestOptions);
@@ -23,7 +23,7 @@ async function uploadFileOrDirectory(bee, batchId, resolvedPath, uploadOptions,
23
23
  }
24
24
  async function uploadFile(bee, batchId, resolvedPath, uploadOptions, requestOptions) {
25
25
  try {
26
- const { readFile } = await Promise.resolve().then(() => require("./fs.node-DTMYb9kO.js"));
26
+ const { readFile } = await Promise.resolve().then(() => require("./fs.node-DnKAgPam.js"));
27
27
  const { data, name, contentType } = await readFile(resolvedPath);
28
28
  return await bee.uploadFile(batchId, data, name, {
29
29
  ...uploadOptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethersphere/bee-dashboard",
3
- "version": "0.36.1",
3
+ "version": "0.36.2",
4
4
  "description": "An app which helps users to setup their Bee node and do actions like cash out cheques",
5
5
  "homepage": ".",
6
6
  "bin": {