@cardanowall/poe-standard 0.0.0 → 0.1.0

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.
@@ -2592,11 +2592,7 @@ function validateOneUri(chunks, path, errors) {
2592
2592
  const uri = reconstructed.uri;
2593
2593
  if (uri.includes("#")) {
2594
2594
  errors.push(
2595
- issue(
2596
- "INVALID_URI",
2597
- path,
2598
- "URI contains a fragment identifier ('#'), which is forbidden"
2599
- )
2595
+ issue("INVALID_URI", path, "URI contains a fragment identifier ('#'), which is forbidden")
2600
2596
  );
2601
2597
  return;
2602
2598
  }
@@ -2626,21 +2622,13 @@ function validateOneUri(chunks, path, errors) {
2626
2622
  const cid = slashIdx === -1 ? rest : rest.slice(0, slashIdx);
2627
2623
  if (!validateCidProfile(cid)) {
2628
2624
  errors.push(
2629
- issue(
2630
- "INVALID_URI",
2631
- path,
2632
- "ipfs:// URI is not a valid CID under the CIP-309 profile"
2633
- )
2625
+ issue("INVALID_URI", path, "ipfs:// URI is not a valid CID under the CIP-309 profile")
2634
2626
  );
2635
2627
  }
2636
2628
  return;
2637
2629
  }
2638
2630
  errors.push(
2639
- issue(
2640
- "INVALID_URI",
2641
- path,
2642
- "unsupported URI scheme; v1 PoE URI set is {ar://, ipfs://}"
2643
- )
2631
+ issue("INVALID_URI", path, "unsupported URI scheme; v1 PoE URI set is {ar://, ipfs://}")
2644
2632
  );
2645
2633
  }
2646
2634
  function checkItemEnc(item, idx, errors) {