@vocdoni/proto 1.15.5 → 1.15.8

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.
@@ -1743,7 +1743,7 @@ var Account = {
1743
1743
  if (message.address !== "") {
1744
1744
  writer.uint32(26).string(message.address);
1745
1745
  }
1746
- if (message.hasBackup === true) {
1746
+ if (message.hasBackup !== false) {
1747
1747
  writer.uint32(32).bool(message.hasBackup);
1748
1748
  }
1749
1749
  if (message.extra !== void 0) {
@@ -1832,7 +1832,7 @@ var Account = {
1832
1832
  if (message.address !== "") {
1833
1833
  obj.address = message.address;
1834
1834
  }
1835
- if (message.hasBackup === true) {
1835
+ if (message.hasBackup !== false) {
1836
1836
  obj.hasBackup = message.hasBackup;
1837
1837
  }
1838
1838
  if (message.extra !== void 0) {
@@ -2468,6 +2468,9 @@ function longToNumber(long) {
2468
2468
  if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
2469
2469
  throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
2470
2470
  }
2471
+ if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
2472
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
2473
+ }
2471
2474
  return long.toNumber();
2472
2475
  }
2473
2476
  if (import_minimal4.default.util.Long !== import_long.default) {
@@ -1731,7 +1731,7 @@ var Account = {
1731
1731
  if (message.address !== "") {
1732
1732
  writer.uint32(26).string(message.address);
1733
1733
  }
1734
- if (message.hasBackup === true) {
1734
+ if (message.hasBackup !== false) {
1735
1735
  writer.uint32(32).bool(message.hasBackup);
1736
1736
  }
1737
1737
  if (message.extra !== void 0) {
@@ -1820,7 +1820,7 @@ var Account = {
1820
1820
  if (message.address !== "") {
1821
1821
  obj.address = message.address;
1822
1822
  }
1823
- if (message.hasBackup === true) {
1823
+ if (message.hasBackup !== false) {
1824
1824
  obj.hasBackup = message.hasBackup;
1825
1825
  }
1826
1826
  if (message.extra !== void 0) {
@@ -2456,6 +2456,9 @@ function longToNumber(long) {
2456
2456
  if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
2457
2457
  throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
2458
2458
  }
2459
+ if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
2460
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
2461
+ }
2459
2462
  return long.toNumber();
2460
2463
  }
2461
2464
  if (import_minimal4.default.util.Long !== Long) {