@ensnode/ensnode-sdk 0.0.0-next-20260401114816 → 0.0.0-next-20260401115620
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.cjs +12 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -20
- package/dist/index.d.ts +43 -20
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1055,23 +1055,27 @@ var TheGraphFallbackSchema = import_v45.z.discriminatedUnion("canFallback", [
|
|
|
1055
1055
|
]);
|
|
1056
1056
|
|
|
1057
1057
|
// src/ensapi/config/zod-schemas.ts
|
|
1058
|
+
var makeEnsApiVersionInfoSchema = (valueLabel = "ENS API version info") => import_v46.z.object({
|
|
1059
|
+
ensApi: import_v46.z.string().nonempty(`${valueLabel}.ensApi must be a non-empty string`),
|
|
1060
|
+
ensNormalize: import_v46.z.string().nonempty(`${valueLabel}.ensNormalize must be a non-empty string`)
|
|
1061
|
+
});
|
|
1058
1062
|
function makeEnsApiPublicConfigSchema(valueLabel) {
|
|
1059
1063
|
const label = valueLabel ?? "ENSApiPublicConfig";
|
|
1060
1064
|
return import_v46.z.object({
|
|
1061
|
-
version: import_v46.z.string().min(1, `${label}.version must be a non-empty string`),
|
|
1062
1065
|
theGraphFallback: TheGraphFallbackSchema,
|
|
1063
|
-
ensIndexerPublicConfig: makeEnsIndexerPublicConfigSchema(`${label}.ensIndexerPublicConfig`)
|
|
1066
|
+
ensIndexerPublicConfig: makeEnsIndexerPublicConfigSchema(`${label}.ensIndexerPublicConfig`),
|
|
1067
|
+
versionInfo: makeEnsApiVersionInfoSchema(`${label}.versionInfo`)
|
|
1064
1068
|
});
|
|
1065
1069
|
}
|
|
1066
1070
|
var makeENSApiPublicConfigSchema = makeEnsApiPublicConfigSchema;
|
|
1067
1071
|
function makeSerializedEnsApiPublicConfigSchema(valueLabel) {
|
|
1068
1072
|
const label = valueLabel ?? "ENSApiPublicConfig";
|
|
1069
1073
|
return import_v46.z.object({
|
|
1070
|
-
version: import_v46.z.string().min(1, `${label}.version must be a non-empty string`),
|
|
1071
|
-
theGraphFallback: TheGraphFallbackSchema,
|
|
1072
1074
|
ensIndexerPublicConfig: makeSerializedEnsIndexerPublicConfigSchema(
|
|
1073
1075
|
`${label}.ensIndexerPublicConfig`
|
|
1074
|
-
)
|
|
1076
|
+
),
|
|
1077
|
+
theGraphFallback: TheGraphFallbackSchema,
|
|
1078
|
+
versionInfo: makeEnsApiVersionInfoSchema(`${label}.versionInfo`)
|
|
1075
1079
|
});
|
|
1076
1080
|
}
|
|
1077
1081
|
|
|
@@ -1131,11 +1135,11 @@ var serializeENSIndexerPublicConfig = serializeEnsIndexerPublicConfig;
|
|
|
1131
1135
|
|
|
1132
1136
|
// src/ensapi/config/serialize.ts
|
|
1133
1137
|
function serializeEnsApiPublicConfig(config) {
|
|
1134
|
-
const {
|
|
1138
|
+
const { ensIndexerPublicConfig, theGraphFallback, versionInfo } = config;
|
|
1135
1139
|
return {
|
|
1136
|
-
|
|
1140
|
+
ensIndexerPublicConfig: serializeEnsIndexerPublicConfig(ensIndexerPublicConfig),
|
|
1137
1141
|
theGraphFallback,
|
|
1138
|
-
|
|
1142
|
+
versionInfo
|
|
1139
1143
|
};
|
|
1140
1144
|
}
|
|
1141
1145
|
var serializeENSApiPublicConfig = serializeEnsApiPublicConfig;
|