@ethersphere/bee-dashboard 0.35.1 → 0.35.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/assets/{__vite-browser-external-BmZ7Lxtg.js → __vite-browser-external-9jrN1CIx.js} +2 -2
- package/build/assets/download.browser-DkW-1Tu7.js +1 -0
- package/build/assets/{download.node-C7FKEca1.js → download.node-DYTXAdrY.js} +1 -1
- package/build/assets/{fs.node-DO9PavmO.js → fs.node-DwBlG7zh.js} +2 -2
- package/build/assets/index-BWr_7okq.js +126 -0
- package/build/assets/vendor-ethers-Dmh4iz5c.js +87 -0
- package/build/index.html +2 -2
- package/lib/{App-CtEEza9I.mjs → App-BaED7J22.mjs} +19605 -12545
- package/lib/{App-BsgbFuqW.js → App-C_kvJWIL.js} +19603 -12543
- package/lib/App.cjs.js +1 -1
- package/lib/App.js +1 -1
- package/lib/{download.browser-BhXh2eCY.js → download.browser-Brcsou-R.js} +1 -1
- package/lib/{download.browser-JHhkjxaR.mjs → download.browser-CuzNogtF.mjs} +1 -1
- package/lib/{download.node-CzhxALxQ.js → download.node-Bnd9C4co.js} +1 -1
- package/lib/{download.node-Bf2R_PzI.mjs → download.node-C_QRIakM.mjs} +1 -1
- package/lib/{fs.node-DrM1ewLt.js → fs.node-BOfQnDum.js} +1 -1
- package/lib/{fs.node-CR5kFsrm.mjs → fs.node-p28LxQ49.mjs} +1 -1
- package/lib/{upload.node-DRiLZjhW.js → upload.node-BOc26jHW.js} +3 -3
- package/lib/{upload.node-BUOo237h.mjs → upload.node-BsycYU0Z.mjs} +3 -3
- package/package.json +3 -3
- package/build/assets/download.browser-BISIRUf5.js +0 -1
- package/build/assets/index-BmV9k6jK.js +0 -116
- package/build/assets/vendor-ethers-BjcsqZe1.js +0 -25
package/lib/App.cjs.js
CHANGED
package/lib/App.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const App = require("./App-
|
|
3
|
+
const App = require("./App-C_kvJWIL.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 { T as Types, R as Reference, P as PublicKey } from "./App-
|
|
1
|
+
import { T as Types, R as Reference, P as PublicKey } from "./App-BaED7J22.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-
|
|
3
|
+
const App = require("./App-C_kvJWIL.js");
|
|
4
4
|
async function downloadNode(bee, resources, options, requestOptions) {
|
|
5
5
|
const dataPromises = [];
|
|
6
6
|
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-
|
|
3
|
+
const App = require("./App-C_kvJWIL.js");
|
|
4
4
|
const contentTypes = /* @__PURE__ */ new Map([
|
|
5
5
|
[".mp4", "video/mp4"],
|
|
6
6
|
[".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-
|
|
3
|
+
const App = require("./App-C_kvJWIL.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-
|
|
17
|
+
const { isDir } = await Promise.resolve().then(() => require("./fs.node-BOfQnDum.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-
|
|
26
|
+
const { readFile } = await Promise.resolve().then(() => require("./fs.node-BOfQnDum.js"));
|
|
27
27
|
const { data, name, contentType } = await readFile(resolvedPath);
|
|
28
28
|
return await bee.uploadFile(batchId, data, name, {
|
|
29
29
|
...uploadOptions,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BatchId, F as FileError } from "./App-
|
|
1
|
+
import { B as BatchId, F as FileError } from "./App-BaED7J22.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-
|
|
15
|
+
const { isDir } = await import("./fs.node-p28LxQ49.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-
|
|
24
|
+
const { readFile } = await import("./fs.node-p28LxQ49.mjs");
|
|
25
25
|
const { data, name, contentType } = await readFile(resolvedPath);
|
|
26
26
|
return await bee.uploadFile(batchId, data, name, {
|
|
27
27
|
...uploadOptions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethersphere/bee-dashboard",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.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": {
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@emotion/react": "^11.14.0",
|
|
38
38
|
"@emotion/styled": "^11.14.1",
|
|
39
|
-
"@ethersphere/bee-js": "^
|
|
39
|
+
"@ethersphere/bee-js": "^12.3.1",
|
|
40
40
|
"@formbricks/js": "^4.3.0",
|
|
41
41
|
"@mui/icons-material": "^7.3.7",
|
|
42
42
|
"@mui/material": "^7.3.7",
|
|
43
|
-
"@solarpunkltd/file-manager-lib": "^1.0.
|
|
43
|
+
"@solarpunkltd/file-manager-lib": "^1.0.9",
|
|
44
44
|
"axios": "^0.30.2",
|
|
45
45
|
"bignumber.js": "^9.3.1",
|
|
46
46
|
"dotted-map": "^2.2.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as t,R as d,P as m}from"./vendor-ethers-BjcsqZe1.js";import"./vendor-react-mui-Dv6xxk4a.js";async function u(r,e,a,s,o){s&&(s=f(s));const n=await fetch(`${e}/${a}/${r.toString()}`,{method:"GET",headers:{...o?.headers,...l(s)},signal:o?.signal});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);if(!n.body)throw new Error("ReadableStream is not supported in this environment.");return n.body}function l(r){const e={};if(!r)return e;const a=t.asObject(r);return a.redundancyStrategy&&(e["swarm-redundancy-strategy"]=String(a.redundancyStrategy)),t.isBoolean(a.fallback)&&(e["swarm-redundancy-fallback-mode"]=a.fallback.toString()),a.timeoutMs&&(e["swarm-chunk-retrieval-timeout"]=String(a.timeoutMs)),e}function f(r){const e=t.asObject(r,{name:"DownloadOptions"});return{redundancyStrategy:t.asOptional(a=>t.asInteger(a,{name:"redundancyStrategy"}),e.redundancyStrategy),fallback:t.asOptional(a=>t.asBoolean(a,{name:"fallback"}),e.fallback),timeoutMs:t.asOptional(a=>t.asInteger(a,{name:"timeoutMs",min:0}),e.timeoutMs),actPublisher:t.asOptional(a=>new m(a),e.actPublisher),actHistoryAddress:t.asOptional(a=>new d(a),e.actHistoryAddress),actTimestamp:t.asOptional(a=>t.asNumber(a,{name:"actTimestamp"}),e.actTimestamp)}}async function b(r,e,a,s,o){const n=[];for(const i of r){const c=await u(i,e,a,s,o);n.push(c)}return n}export{b as downloadBrowser};
|