@bitgo/wasm-utxo 4.14.0 → 4.14.1

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.
@@ -73,10 +73,10 @@ function findDescriptorForAnyDerivationPath(script, derivationPaths, descriptorM
73
73
  return undefined;
74
74
  }
75
75
  function getDerivationPaths(v) {
76
- if ("bip32Derivation" in v && v.bip32Derivation) {
76
+ if ("bip32Derivation" in v && v.bip32Derivation && v.bip32Derivation.length > 0) {
77
77
  return v.bip32Derivation.map((v) => v.path);
78
78
  }
79
- if ("tapBip32Derivation" in v && v.tapBip32Derivation) {
79
+ if ("tapBip32Derivation" in v && v.tapBip32Derivation && v.tapBip32Derivation.length > 0) {
80
80
  return v.tapBip32Derivation.map((v) => v.path).filter((v) => v !== "" && v !== "m");
81
81
  }
82
82
  return undefined;
Binary file
@@ -69,10 +69,10 @@ function findDescriptorForAnyDerivationPath(script, derivationPaths, descriptorM
69
69
  return undefined;
70
70
  }
71
71
  function getDerivationPaths(v) {
72
- if ("bip32Derivation" in v && v.bip32Derivation) {
72
+ if ("bip32Derivation" in v && v.bip32Derivation && v.bip32Derivation.length > 0) {
73
73
  return v.bip32Derivation.map((v) => v.path);
74
74
  }
75
- if ("tapBip32Derivation" in v && v.tapBip32Derivation) {
75
+ if ("tapBip32Derivation" in v && v.tapBip32Derivation && v.tapBip32Derivation.length > 0) {
76
76
  return v.tapBip32Derivation.map((v) => v.path).filter((v) => v !== "" && v !== "m");
77
77
  }
78
78
  return undefined;
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitgo/wasm-utxo",
3
3
  "description": "WebAssembly wrapper for rust-bitcoin (beta)",
4
- "version": "4.14.0",
4
+ "version": "4.14.1",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",