@sats-connect/core 0.5.0 → 0.5.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.
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -261,6 +261,7 @@ var v2 = __toESM(require("valibot"));
|
|
|
261
261
|
var BitcoinNetworkType = /* @__PURE__ */ ((BitcoinNetworkType2) => {
|
|
262
262
|
BitcoinNetworkType2["Mainnet"] = "Mainnet";
|
|
263
263
|
BitcoinNetworkType2["Testnet"] = "Testnet";
|
|
264
|
+
BitcoinNetworkType2["Testnet4"] = "Testnet4";
|
|
264
265
|
BitcoinNetworkType2["Signet"] = "Signet";
|
|
265
266
|
BitcoinNetworkType2["Regtest"] = "Regtest";
|
|
266
267
|
return BitcoinNetworkType2;
|
|
@@ -1293,8 +1294,8 @@ var urlNetworkSuffix = {
|
|
|
1293
1294
|
["Signet" /* Signet */]: "-signet"
|
|
1294
1295
|
};
|
|
1295
1296
|
var ORDINALS_API_BASE_URL = (network = "Mainnet" /* Mainnet */) => {
|
|
1296
|
-
if (network === "Regtest" /* Regtest */) {
|
|
1297
|
-
throw new Error(
|
|
1297
|
+
if (network === "Regtest" /* Regtest */ || network === "Testnet4" /* Testnet4 */) {
|
|
1298
|
+
throw new Error(`Ordinals API does not support ${network} network`);
|
|
1298
1299
|
}
|
|
1299
1300
|
return `https://ordinals${urlNetworkSuffix[network]}.xverse.app/v1`;
|
|
1300
1301
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -62,6 +62,7 @@ import * as v2 from "valibot";
|
|
|
62
62
|
var BitcoinNetworkType = /* @__PURE__ */ ((BitcoinNetworkType2) => {
|
|
63
63
|
BitcoinNetworkType2["Mainnet"] = "Mainnet";
|
|
64
64
|
BitcoinNetworkType2["Testnet"] = "Testnet";
|
|
65
|
+
BitcoinNetworkType2["Testnet4"] = "Testnet4";
|
|
65
66
|
BitcoinNetworkType2["Signet"] = "Signet";
|
|
66
67
|
BitcoinNetworkType2["Regtest"] = "Regtest";
|
|
67
68
|
return BitcoinNetworkType2;
|
|
@@ -1094,8 +1095,8 @@ var urlNetworkSuffix = {
|
|
|
1094
1095
|
["Signet" /* Signet */]: "-signet"
|
|
1095
1096
|
};
|
|
1096
1097
|
var ORDINALS_API_BASE_URL = (network = "Mainnet" /* Mainnet */) => {
|
|
1097
|
-
if (network === "Regtest" /* Regtest */) {
|
|
1098
|
-
throw new Error(
|
|
1098
|
+
if (network === "Regtest" /* Regtest */ || network === "Testnet4" /* Testnet4 */) {
|
|
1099
|
+
throw new Error(`Ordinals API does not support ${network} network`);
|
|
1099
1100
|
}
|
|
1100
1101
|
return `https://ordinals${urlNetworkSuffix[network]}.xverse.app/v1`;
|
|
1101
1102
|
};
|