@omnisat/lasereyes 0.0.140-rc.2 → 0.0.140-rc.3
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 +12 -10
- package/dist/index.umd.cjs +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -48859,13 +48859,14 @@ let kre = class extends Bi {
|
|
|
48859
48859
|
}
|
|
48860
48860
|
async signMessage(t, r) {
|
|
48861
48861
|
var n;
|
|
48862
|
-
|
|
48862
|
+
let o = {};
|
|
48863
|
+
if (typeof r == "string" ? o = { toSignAddress: r } : r && (o = r), !!this.$store.get().provider && this.$providerMap[this.$store.get().provider])
|
|
48863
48864
|
try {
|
|
48864
|
-
return await ((n = this.$providerMap[this.$store.get().provider]) == null ? void 0 : n.signMessage(t,
|
|
48865
|
-
} catch (
|
|
48866
|
-
throw
|
|
48865
|
+
return await ((n = this.$providerMap[this.$store.get().provider]) == null ? void 0 : n.signMessage(t, o));
|
|
48866
|
+
} catch (a) {
|
|
48867
|
+
throw a instanceof Error && a.message.toLowerCase().includes("not implemented") ? new Error(
|
|
48867
48868
|
"The connected wallet doesn't support message signing..."
|
|
48868
|
-
) :
|
|
48869
|
+
) : a;
|
|
48869
48870
|
}
|
|
48870
48871
|
}
|
|
48871
48872
|
async signPsbt(t, r = !1, n = !1) {
|
|
@@ -97790,13 +97791,14 @@ class Tve {
|
|
|
97790
97791
|
}
|
|
97791
97792
|
async signMessage(t, r) {
|
|
97792
97793
|
var n;
|
|
97793
|
-
|
|
97794
|
+
let o = {};
|
|
97795
|
+
if (typeof r == "string" ? o = { toSignAddress: r } : r && (o = r), !!this.$store.get().provider && this.$providerMap[this.$store.get().provider])
|
|
97794
97796
|
try {
|
|
97795
|
-
return await ((n = this.$providerMap[this.$store.get().provider]) == null ? void 0 : n.signMessage(t,
|
|
97796
|
-
} catch (
|
|
97797
|
-
throw
|
|
97797
|
+
return await ((n = this.$providerMap[this.$store.get().provider]) == null ? void 0 : n.signMessage(t, o));
|
|
97798
|
+
} catch (a) {
|
|
97799
|
+
throw a instanceof Error && a.message.toLowerCase().includes("not implemented") ? new Error(
|
|
97798
97800
|
"The connected wallet doesn't support message signing..."
|
|
97799
|
-
) :
|
|
97801
|
+
) : a;
|
|
97800
97802
|
}
|
|
97801
97803
|
}
|
|
97802
97804
|
async signPsbt(t, r = !1, n = !1) {
|