@ensdomains/ensjs 3.0.0-alpha.63 → 3.0.0-alpha.64
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.
|
@@ -108,7 +108,7 @@ const largeQuery = async ({ gqlInstance }, {
|
|
|
108
108
|
errors: (0, import_errors.getClientErrors)(e)
|
|
109
109
|
});
|
|
110
110
|
}).finally(import_errors.debugSubgraphLatency);
|
|
111
|
-
const domain = response == null ? void 0 : response.domain;
|
|
111
|
+
const domain = (response == null ? void 0 : response.domain) || { subdomains: [], subdomainCount: 0 };
|
|
112
112
|
const subdomains = domain.subdomains.map(
|
|
113
113
|
({ wrappedDomain, ...subname }) => {
|
|
114
114
|
const decrypted = (0, import_labels.decryptName)(subname.name);
|
|
@@ -90,7 +90,7 @@ var largeQuery = async ({ gqlInstance }, {
|
|
|
90
90
|
errors: getClientErrors(e)
|
|
91
91
|
});
|
|
92
92
|
}).finally(debugSubgraphLatency);
|
|
93
|
-
const domain = response?.domain;
|
|
93
|
+
const domain = response?.domain || { subdomains: [], subdomainCount: 0 };
|
|
94
94
|
const subdomains = domain.subdomains.map(
|
|
95
95
|
({ wrappedDomain, ...subname }) => {
|
|
96
96
|
const decrypted = decryptName(subname.name);
|
package/package.json
CHANGED
|
@@ -150,7 +150,7 @@ const largeQuery = async (
|
|
|
150
150
|
})
|
|
151
151
|
.finally(debugSubgraphLatency)
|
|
152
152
|
|
|
153
|
-
const domain = response?.domain
|
|
153
|
+
const domain = response?.domain || { subdomains: [], subdomainCount: 0 }
|
|
154
154
|
const subdomains = domain.subdomains.map(
|
|
155
155
|
({ wrappedDomain, ...subname }: Domain) => {
|
|
156
156
|
const decrypted = decryptName(subname.name!)
|