@bestinslot/wallet-kit 0.14.3 → 0.14.4

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.
@@ -78,8 +78,8 @@ export declare function getPaymentWallet(): BISWallet | undefined;
78
78
  */
79
79
  export declare function getSignFn(provider: BISWalletProvider): SignFunction;
80
80
  /**
81
- * Signs a message using the currently connected wallet provider, then verifies it
82
- * against the backend. Returns the signature, or throws if signing or verification fails.
81
+ * Signs a message using the currently connected wallet provider, then verifies its BIP-322
82
+ * signature. Returns the signature, or throws if signing or verification fails.
83
83
  *
84
84
  * @param message The message to sign.
85
85
  * @param walletType The wallet purpose to sign with ('payment' | 'ordinals' | 'all').
@@ -51,6 +51,14 @@ export type EndpointsConfig = {
51
51
  * @throws {Error} If a key is unknown or a value is not an absolute http(s) URL.
52
52
  */
53
53
  export declare function setEndpoints(config: EndpointsConfig): void;
54
+ /**
55
+ * Checks that a value is an absolute http(s) URL.
56
+ *
57
+ * @param label The setting the value belongs to, used as the error prefix.
58
+ * @param value The URL to check.
59
+ * @throws {Error} If the value is not a valid URL or uses another protocol.
60
+ */
61
+ export declare function assertHttpUrl(label: string, value: string): void;
54
62
  /**
55
63
  * Returns the effective base URLs for a network: the defaults with any
56
64
  * {@link setEndpoints} overrides applied. Testnet has no `sequencerRead`,
@@ -6,6 +6,8 @@ export * as balances from './api/balances';
6
6
  export * from './api/helpers';
7
7
  export { getEndpoints, getNetwork, setEndpoints, setNetwork, subscribeToNetwork, } from './core/store-network';
8
8
  export type { Endpoints, EndpointsConfig } from './core/store-network';
9
+ export { getProviders, setProviders } from './core/chain-providers';
10
+ export type { NetworkProviders, ProvidersConfig } from './core/chain-providers';
9
11
  export type { PaymentOpts } from './types/common';
10
12
  export * as bitcoinjs from 'bitcoinjs-lib';
11
13
  export * as Buff from '@cmdcode/buff-utils';
package/dist/vue.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ref as s, onScopeDispose as u, watch as i } from "vue";
2
- import { e as r, U as c, k as a } from "./mint-CSk_3TfL.js";
3
- function n() {
2
+ import { e as r, Z as c, l as a } from "./mint-eUvlNox0.js";
3
+ function w() {
4
4
  const o = s(r()), t = c((e) => {
5
5
  o.value !== e && (o.value = e);
6
6
  });
@@ -9,5 +9,5 @@ function n() {
9
9
  }), o;
10
10
  }
11
11
  export {
12
- n as useNetwork
12
+ w as useNetwork
13
13
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bestinslot/wallet-kit",
3
3
  "type": "module",
4
- "version": "0.14.3",
4
+ "version": "0.14.4",
5
5
  "private": false,
6
6
  "description": "A lightweight JavaScript library for connecting Bitcoin wallets with a unified API.",
7
7
  "license": "MIT",