@omnisat/lasereyes 0.0.58 → 0.0.60

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/dist/index.js CHANGED
@@ -1552,7 +1552,8 @@ var LaserEyesProvider = ({
1552
1552
  if (!library)
1553
1553
  return;
1554
1554
  if (provider === UNISAT) {
1555
- return yield library == null ? void 0 : library.signMessage(message);
1555
+ const lib = window.unisat;
1556
+ return yield lib == null ? void 0 : lib.signMessage(message);
1556
1557
  } else if (provider === XVERSE) {
1557
1558
  const tempAddy = toSignAddress || paymentAddress;
1558
1559
  const response = yield (0, import_sats_connect.request)("signMessage", {
@@ -1642,7 +1643,8 @@ var LaserEyesProvider = ({
1642
1643
  throw new Error("Invalid PSBT format");
1643
1644
  }
1644
1645
  if (provider === UNISAT) {
1645
- const signedPsbt = yield library == null ? void 0 : library.signPsbt(psbtHex, {
1646
+ const lib = window.unisat;
1647
+ const signedPsbt = yield lib == null ? void 0 : lib.signPsbt(psbtHex, {
1646
1648
  autoFinalized: finalize
1647
1649
  });
1648
1650
  const psbtSignedPsbt = bitcoin2.Psbt.fromHex(signedPsbt);
package/dist/index.mjs CHANGED
@@ -1457,7 +1457,8 @@ var LaserEyesProvider = ({
1457
1457
  if (!library)
1458
1458
  return;
1459
1459
  if (provider === UNISAT) {
1460
- return yield library == null ? void 0 : library.signMessage(message);
1460
+ const lib = window.unisat;
1461
+ return yield lib == null ? void 0 : lib.signMessage(message);
1461
1462
  } else if (provider === XVERSE) {
1462
1463
  const tempAddy = toSignAddress || paymentAddress;
1463
1464
  const response = yield request("signMessage", {
@@ -1547,7 +1548,8 @@ var LaserEyesProvider = ({
1547
1548
  throw new Error("Invalid PSBT format");
1548
1549
  }
1549
1550
  if (provider === UNISAT) {
1550
- const signedPsbt = yield library == null ? void 0 : library.signPsbt(psbtHex, {
1551
+ const lib = window.unisat;
1552
+ const signedPsbt = yield lib == null ? void 0 : lib.signPsbt(psbtHex, {
1551
1553
  autoFinalized: finalize
1552
1554
  });
1553
1555
  const psbtSignedPsbt = bitcoin2.Psbt.fromHex(signedPsbt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnisat/lasereyes",
3
- "version": "0.0.58",
3
+ "version": "0.0.60",
4
4
  "sideEffects": false,
5
5
  "private": false,
6
6
  "license": "MIT",