@cheqd/did-provider-cheqd 4.7.1-develop.2 → 4.7.1-develop.3

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.
@@ -2273,7 +2273,7 @@ export class Cheqd {
2273
2273
  id: statusListCredential,
2274
2274
  },
2275
2275
  });
2276
- const statusMaxValue = (2 ^ (statusList.metadata.statusSize || 2)) - 1;
2276
+ const statusMaxValue = 2 ** (statusList.metadata.statusSize || 2) - 1;
2277
2277
  // validate new status value
2278
2278
  if (typeof args.newStatus !== 'number' || args.newStatus < 0 || args.newStatus > statusMaxValue) {
2279
2279
  throw new Error(`[did-provider-cheqd]: bulk update: newStatus must be 0-${statusMaxValue} (valid/revoked/suspended/unknown)`);
@@ -2701,7 +2701,7 @@ export class Cheqd {
2701
2701
  id: statusListCredential,
2702
2702
  },
2703
2703
  });
2704
- const statusMaxValue = (2 ^ (statusList.metadata.statusSize || 2)) - 1;
2704
+ const statusMaxValue = 2 ** (statusList.metadata.statusSize || 2) - 1;
2705
2705
  // validate new status value
2706
2706
  if (typeof args.newStatus !== 'number' || args.newStatus < 0 || args.newStatus > statusMaxValue) {
2707
2707
  throw new Error(`[did-provider-cheqd]: bulk update: newStatus must be 0-${statusMaxValue} (valid/revoked/suspended/unknown)`);