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