@leofcoin/chain 1.5.36 → 1.5.37

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.
@@ -475,7 +475,7 @@ const syncTimeout = 30000;
475
475
  class Protocol {
476
476
  constructor(config) {
477
477
  this.resolveTimeout = 10000;
478
- if (config.resolveTimeout)
478
+ if (config?.resolveTimeout)
479
479
  this.resolveTimeout = config.resolveTimeout;
480
480
  }
481
481
  get limit() {
package/exports/chain.js CHANGED
@@ -13,7 +13,7 @@ const syncTimeout = 30000;
13
13
  class Protocol {
14
14
  constructor(config) {
15
15
  this.resolveTimeout = 10000;
16
- if (config.resolveTimeout)
16
+ if (config?.resolveTimeout)
17
17
  this.resolveTimeout = config.resolveTimeout;
18
18
  }
19
19
  get limit() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.5.36",
3
+ "version": "1.5.37",
4
4
  "description": "Official javascript implementation",
5
5
  "exports": {
6
6
  "./node": {