@blockcore/dns 0.0.12 → 0.0.13

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.
@@ -74,8 +74,14 @@ export class BlockcoreDns {
74
74
  }
75
75
  this.api.setActiveServer(nameserver.url);
76
76
  if (serviceType) {
77
- const services = await this.api.getServicesByType(serviceType);
78
- services.forEach((item) => servicesMap.set(item.domain, { ...servicesMap.get(item.domain), ...item }));
77
+ try {
78
+ const services = await this.api.getServicesByType(serviceType);
79
+ services.forEach((item) => servicesMap.set(item.domain, { ...servicesMap.get(item.domain), ...item }));
80
+ }
81
+ catch (err) {
82
+ console.warn(`Unable to load services from ${nameserver.url}`);
83
+ console.error(err);
84
+ }
79
85
  }
80
86
  }
81
87
  this.services = Array.from(servicesMap.values());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockcore/dns",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "DNS Provider package to query and resolve dynamic and decentralized DNS entries",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",