@cardanowall/poe-standard 0.1.0 → 0.2.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 +13 -13
- package/dist/encoder.cjs.map +1 -1
- package/dist/encoder.js.map +1 -1
- package/dist/error-codes.cjs.map +1 -1
- package/dist/error-codes.js.map +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js.map +1 -1
- package/dist/validator.cjs +4 -4
- package/dist/validator.cjs.map +1 -1
- package/dist/validator.js +4 -4
- package/dist/validator.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1735,7 +1735,7 @@ function decodeCanonicalCbor(bytes) {
|
|
|
1735
1735
|
...r,
|
|
1736
1736
|
rejectStreaming: true,
|
|
1737
1737
|
rejectDuplicateKeys: true,
|
|
1738
|
-
// A
|
|
1738
|
+
// A Label 309 record carries integers, byte/text strings, arrays, maps and
|
|
1739
1739
|
// `null` — and nothing else. Without these rejections the major-type-7
|
|
1740
1740
|
// surface leaks into the decoder: a float16/32/64 that happens to hold an
|
|
1741
1741
|
// integral value (e.g. 1.0) silently decodes to the integer 1 and passes
|
|
@@ -2281,7 +2281,7 @@ function decodeCanonicalCbor2(bytes) {
|
|
|
2281
2281
|
...r,
|
|
2282
2282
|
rejectStreaming: true,
|
|
2283
2283
|
rejectDuplicateKeys: true,
|
|
2284
|
-
// A
|
|
2284
|
+
// A Label 309 record carries integers, byte/text strings, arrays, maps and
|
|
2285
2285
|
// `null` — and nothing else. Without these rejections the major-type-7
|
|
2286
2286
|
// surface leaks into the decoder: a float16/32/64 that happens to hold an
|
|
2287
2287
|
// integral value (e.g. 1.0) silently decodes to the integer 1 and passes
|
|
@@ -2838,7 +2838,7 @@ function validateOneUri(chunks, path, errors) {
|
|
|
2838
2838
|
const cid = slashIdx === -1 ? rest : rest.slice(0, slashIdx);
|
|
2839
2839
|
if (!validateCidProfile(cid)) {
|
|
2840
2840
|
errors.push(
|
|
2841
|
-
issue("INVALID_URI", path, "ipfs:// URI is not a valid CID under the
|
|
2841
|
+
issue("INVALID_URI", path, "ipfs:// URI is not a valid CID under the Label 309 profile")
|
|
2842
2842
|
);
|
|
2843
2843
|
}
|
|
2844
2844
|
return;
|
|
@@ -2886,7 +2886,7 @@ function checkItemEnc(item, idx, errors) {
|
|
|
2886
2886
|
issue(
|
|
2887
2887
|
"UNAUTHENTICATED_CIPHER_FORBIDDEN",
|
|
2888
2888
|
[...basePath, "aead"],
|
|
2889
|
-
`'${enc.aead}' is an unauthenticated cipher;
|
|
2889
|
+
`'${enc.aead}' is an unauthenticated cipher; Label 309 mandates an authenticated (AEAD) cipher`
|
|
2890
2890
|
)
|
|
2891
2891
|
);
|
|
2892
2892
|
return;
|