@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.
package/dist/index.js CHANGED
@@ -2808,11 +2808,7 @@ function validateOneUri(chunks, path, errors) {
2808
2808
  const uri = reconstructed.uri;
2809
2809
  if (uri.includes("#")) {
2810
2810
  errors.push(
2811
- issue(
2812
- "INVALID_URI",
2813
- path,
2814
- "URI contains a fragment identifier ('#'), which is forbidden"
2815
- )
2811
+ issue("INVALID_URI", path, "URI contains a fragment identifier ('#'), which is forbidden")
2816
2812
  );
2817
2813
  return;
2818
2814
  }
@@ -2842,21 +2838,13 @@ function validateOneUri(chunks, path, errors) {
2842
2838
  const cid = slashIdx === -1 ? rest : rest.slice(0, slashIdx);
2843
2839
  if (!validateCidProfile(cid)) {
2844
2840
  errors.push(
2845
- issue(
2846
- "INVALID_URI",
2847
- path,
2848
- "ipfs:// URI is not a valid CID under the CIP-309 profile"
2849
- )
2841
+ issue("INVALID_URI", path, "ipfs:// URI is not a valid CID under the CIP-309 profile")
2850
2842
  );
2851
2843
  }
2852
2844
  return;
2853
2845
  }
2854
2846
  errors.push(
2855
- issue(
2856
- "INVALID_URI",
2857
- path,
2858
- "unsupported URI scheme; v1 PoE URI set is {ar://, ipfs://}"
2859
- )
2847
+ issue("INVALID_URI", path, "unsupported URI scheme; v1 PoE URI set is {ar://, ipfs://}")
2860
2848
  );
2861
2849
  }
2862
2850
  function checkItemEnc(item, idx, errors) {