@ensnode/ensnode-sdk 0.0.0-next-20260603114334 → 0.0.0-next-20260603190454
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/LICENSE +1 -1
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/internal.d.cts +2 -2
- package/dist/internal.d.ts +2 -2
- package/package.json +5 -5
package/LICENSE
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -39,6 +39,7 @@ __export(index_exports, {
|
|
|
39
39
|
CurrencyIds: () => CurrencyIds,
|
|
40
40
|
DEFAULT_ENSNODE_URL_MAINNET: () => DEFAULT_ENSNODE_URL_MAINNET,
|
|
41
41
|
DEFAULT_ENSNODE_URL_SEPOLIA: () => DEFAULT_ENSNODE_URL_SEPOLIA,
|
|
42
|
+
DEFAULT_ENSNODE_URL_SEPOLIA_V2: () => DEFAULT_ENSNODE_URL_SEPOLIA_V2,
|
|
42
43
|
ENCODED_REFERRER_BYTE_LENGTH: () => ENCODED_REFERRER_BYTE_LENGTH,
|
|
43
44
|
ENCODED_REFERRER_BYTE_OFFSET: () => ENCODED_REFERRER_BYTE_OFFSET,
|
|
44
45
|
ENSNamespaceIds: () => import_datasources11.ENSNamespaceIds,
|
|
@@ -3669,6 +3670,7 @@ var ClientError = class _ClientError extends Error {
|
|
|
3669
3670
|
var import_datasources5 = require("@ensnode/datasources");
|
|
3670
3671
|
var DEFAULT_ENSNODE_URL_MAINNET = "https://api.alpha.ensnode.io";
|
|
3671
3672
|
var DEFAULT_ENSNODE_URL_SEPOLIA = "https://api.alpha-sepolia.ensnode.io";
|
|
3673
|
+
var DEFAULT_ENSNODE_URL_SEPOLIA_V2 = "https://api.v2-sepolia.ensnode.io";
|
|
3672
3674
|
var getDefaultEnsNodeUrl = (namespace) => {
|
|
3673
3675
|
const effectiveNamespace = namespace ?? import_datasources5.ENSNamespaceIds.Mainnet;
|
|
3674
3676
|
switch (effectiveNamespace) {
|
|
@@ -3676,6 +3678,8 @@ var getDefaultEnsNodeUrl = (namespace) => {
|
|
|
3676
3678
|
return new URL(DEFAULT_ENSNODE_URL_MAINNET);
|
|
3677
3679
|
case import_datasources5.ENSNamespaceIds.Sepolia:
|
|
3678
3680
|
return new URL(DEFAULT_ENSNODE_URL_SEPOLIA);
|
|
3681
|
+
case import_datasources5.ENSNamespaceIds.SepoliaV2:
|
|
3682
|
+
return new URL(DEFAULT_ENSNODE_URL_SEPOLIA_V2);
|
|
3679
3683
|
default:
|
|
3680
3684
|
throw new Error(
|
|
3681
3685
|
`ENSNamespaceId ${effectiveNamespace} does not have a default ENSNode URL defined`
|