@1sat/sweep-ui 0.0.3 → 0.0.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"SweepApp.d.ts","sourceRoot":"","sources":["../../src/components/SweepApp.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIhD,MAAM,WAAW,aAAa;IAC7B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;CAChC;AAED,wBAAgB,QAAQ,CAAC,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE,aAAa,2CAgQ1F"}
1
+ {"version":3,"file":"SweepApp.d.ts","sourceRoot":"","sources":["../../src/components/SweepApp.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIhD,MAAM,WAAW,aAAa;IAC7B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;CAChC;AAED,wBAAgB,QAAQ,CAAC,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE,aAAa,2CAiQ1F"}
package/dist/index.js CHANGED
@@ -497,7 +497,7 @@ async function scanAddress(address, onProgress) {
497
497
  limit: 0
498
498
  });
499
499
  onProgress?.({ phase: "categorize", detail: "Loading token details..." });
500
- return await categorizeOutputs(allOutputs);
500
+ return await categorizeOutputs(allOutputs ?? []);
501
501
  }
502
502
  async function scanAddresses(addresses, onProgress) {
503
503
  const unique = [...new Set(addresses)];
@@ -2156,6 +2156,7 @@ function SweepApp({ legacyKeys: initialKeys, wallet: externalWallet }) {
2156
2156
  else if (result.locked.length > 0)
2157
2157
  setActiveTab("locks");
2158
2158
  } catch (e) {
2159
+ console.error("Scan failed:", e);
2159
2160
  toast.error(e instanceof Error ? e.message : "Scan failed");
2160
2161
  } finally {
2161
2162
  setScanning(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1sat/sweep-ui",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Sweep UI components for migrating legacy BSV assets",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -22,6 +22,7 @@
22
22
  "@1sat/actions": "0.0.64",
23
23
  "@1sat/client": "0.0.17",
24
24
  "@1sat/connect": "0.0.27",
25
+ "@1sat/sweep-ui": "0.0.3",
25
26
  "@1sat/types": "0.0.14",
26
27
  "@1sat/utils": "0.0.12",
27
28
  "bitcoin-backup": "^0.0.11",
@@ -102,6 +102,7 @@ export function SweepApp({ legacyKeys: initialKeys, wallet: externalWallet }: Sw
102
102
  else if (result.bsv20Tokens.length > 0) setActiveTab("bsv20");
103
103
  else if (result.locked.length > 0) setActiveTab("locks");
104
104
  } catch (e) {
105
+ console.error("Scan failed:", e);
105
106
  toast.error(e instanceof Error ? e.message : "Scan failed");
106
107
  } finally {
107
108
  setScanning(false);
@@ -199,7 +199,7 @@ export async function scanAddress(
199
199
  });
200
200
 
201
201
  onProgress?.({ phase: "categorize", detail: "Loading token details..." });
202
- return await categorizeOutputs(allOutputs);
202
+ return await categorizeOutputs(allOutputs ?? []);
203
203
  }
204
204
 
205
205
  export async function scanAddresses(