@sats-connect/core 0.6.7 → 0.6.8-29e2ff0
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.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -553,7 +553,7 @@ declare const signPsbtParamsSchema: v.ObjectSchema<{
|
|
|
553
553
|
* The inputs to sign.
|
|
554
554
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
555
555
|
*/
|
|
556
|
-
readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
556
|
+
readonly signInputs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>, never>;
|
|
557
557
|
/**
|
|
558
558
|
* Whether to broadcast the transaction after signing.
|
|
559
559
|
**/
|
|
@@ -583,7 +583,7 @@ declare const signPsbtRequestMessageSchema: v.ObjectSchema<{
|
|
|
583
583
|
* The inputs to sign.
|
|
584
584
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
585
585
|
*/
|
|
586
|
-
readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
586
|
+
readonly signInputs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>, never>;
|
|
587
587
|
/**
|
|
588
588
|
* Whether to broadcast the transaction after signing.
|
|
589
589
|
**/
|
package/dist/index.d.ts
CHANGED
|
@@ -553,7 +553,7 @@ declare const signPsbtParamsSchema: v.ObjectSchema<{
|
|
|
553
553
|
* The inputs to sign.
|
|
554
554
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
555
555
|
*/
|
|
556
|
-
readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
556
|
+
readonly signInputs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>, never>;
|
|
557
557
|
/**
|
|
558
558
|
* Whether to broadcast the transaction after signing.
|
|
559
559
|
**/
|
|
@@ -583,7 +583,7 @@ declare const signPsbtRequestMessageSchema: v.ObjectSchema<{
|
|
|
583
583
|
* The inputs to sign.
|
|
584
584
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
585
585
|
*/
|
|
586
|
-
readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
586
|
+
readonly signInputs: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>, never>;
|
|
587
587
|
/**
|
|
588
588
|
* Whether to broadcast the transaction after signing.
|
|
589
589
|
**/
|
package/dist/index.js
CHANGED
|
@@ -1047,7 +1047,7 @@ var signPsbtParamsSchema = v15.object({
|
|
|
1047
1047
|
* The inputs to sign.
|
|
1048
1048
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
1049
1049
|
*/
|
|
1050
|
-
signInputs: v15.record(v15.string(), v15.array(v15.number())),
|
|
1050
|
+
signInputs: v15.optional(v15.record(v15.string(), v15.array(v15.number()))),
|
|
1051
1051
|
/**
|
|
1052
1052
|
* Whether to broadcast the transaction after signing.
|
|
1053
1053
|
**/
|
|
@@ -1847,6 +1847,9 @@ var import_bitcoin_address_validation = require("bitcoin-address-validation");
|
|
|
1847
1847
|
var import_buffer = require("buffer");
|
|
1848
1848
|
function convertSignInputsToInputType(signInputs) {
|
|
1849
1849
|
let result = [];
|
|
1850
|
+
if (!signInputs) {
|
|
1851
|
+
return result;
|
|
1852
|
+
}
|
|
1850
1853
|
for (let address in signInputs) {
|
|
1851
1854
|
let indexes = signInputs[address];
|
|
1852
1855
|
for (let index of indexes) {
|
package/dist/index.mjs
CHANGED
|
@@ -840,7 +840,7 @@ var signPsbtParamsSchema = v15.object({
|
|
|
840
840
|
* The inputs to sign.
|
|
841
841
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
842
842
|
*/
|
|
843
|
-
signInputs: v15.record(v15.string(), v15.array(v15.number())),
|
|
843
|
+
signInputs: v15.optional(v15.record(v15.string(), v15.array(v15.number()))),
|
|
844
844
|
/**
|
|
845
845
|
* Whether to broadcast the transaction after signing.
|
|
846
846
|
**/
|
|
@@ -1640,6 +1640,9 @@ import { AddressType as AddressType2, getAddressInfo } from "bitcoin-address-val
|
|
|
1640
1640
|
import { Buffer } from "buffer";
|
|
1641
1641
|
function convertSignInputsToInputType(signInputs) {
|
|
1642
1642
|
let result = [];
|
|
1643
|
+
if (!signInputs) {
|
|
1644
|
+
return result;
|
|
1645
|
+
}
|
|
1643
1646
|
for (let address in signInputs) {
|
|
1644
1647
|
let indexes = signInputs[address];
|
|
1645
1648
|
for (let index of indexes) {
|