@orangecheck/agent-core 2.5.0 → 2.5.1
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 +38 -16
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/federation.test.ts +3 -1
- package/src/federation.ts +2 -2
- package/src/revocation-failclosed.test.ts +46 -10
- package/src/verify.ts +11 -9
package/dist/index.mjs
CHANGED
|
@@ -512,7 +512,7 @@ async function verifyDelegation(input) {
|
|
|
512
512
|
if (!input.skipRevocationCheck && !input.revocations) {
|
|
513
513
|
return err(
|
|
514
514
|
"E_MALFORMED",
|
|
515
|
-
|
|
515
|
+
'verifyDelegation requires `revocations` (query kind 30085 with "#t": [delegation id], SPEC \xA79.4) or an explicit skipRevocationCheck:true to state that revocation is not being checked'
|
|
516
516
|
);
|
|
517
517
|
}
|
|
518
518
|
if (input.revocations) {
|
|
@@ -640,7 +640,7 @@ async function verifyAction(input) {
|
|
|
640
640
|
if (!input.skipRevocationCheck && !input.revocations) {
|
|
641
641
|
return err(
|
|
642
642
|
"E_MALFORMED",
|
|
643
|
-
|
|
643
|
+
'verifyAction requires `revocations` (query kind 30085 with "#t": [id of every link in the chain], SPEC \xA79.4) or an explicit skipRevocationCheck:true'
|
|
644
644
|
);
|
|
645
645
|
}
|
|
646
646
|
let actionAnchor;
|
|
@@ -1104,7 +1104,7 @@ async function verifyFederationDelegation(input) {
|
|
|
1104
1104
|
if (!input.skipRevocationCheck && !input.revocations) {
|
|
1105
1105
|
return fail(
|
|
1106
1106
|
"E_MALFORMED",
|
|
1107
|
-
|
|
1107
|
+
'verifyFederationDelegation requires `revocations` (query kind 30085 with "#t": [delegation id], SPEC \xA79.4) or an explicit skipRevocationCheck:true to state that revocation is not being checked'
|
|
1108
1108
|
);
|
|
1109
1109
|
}
|
|
1110
1110
|
for (const rev of input.revocations ?? []) {
|