@ucanto/validator
Advanced tools
Comparing version 9.0.0 to 9.0.1
{ | ||
"name": "@ucanto/validator", | ||
"description": "UCAN RPC validators", | ||
"version": "9.0.0", | ||
"version": "9.0.1", | ||
"keywords": [ | ||
@@ -25,3 +25,3 @@ "UCAN", | ||
"multiformats": "^11.0.2", | ||
"@ucanto/core": "^9.0.0", | ||
"@ucanto/core": "^9.0.1", | ||
"@ucanto/interface": "^9.0.0" | ||
@@ -40,4 +40,4 @@ }, | ||
"typescript": "^5.0.4", | ||
"@ucanto/client": "^9.0.0", | ||
"@ucanto/principal": "^9.0.0" | ||
"@ucanto/principal": "^9.0.0", | ||
"@ucanto/client": "^9.0.0" | ||
}, | ||
@@ -44,0 +44,0 @@ "type": "module", |
@@ -556,6 +556,14 @@ import * as API from '@ucanto/interface' | ||
attestation, | ||
// We omit the delegation otherwise we may end up in an infinite loop | ||
proofs.filter(proof => proof != delegation), | ||
// We only consider attestations otherwise we will end up doing an | ||
// exponential scan if there are other proofs that require attestations. | ||
proofs.filter(isAttestation), | ||
config | ||
) | ||
} | ||
/** | ||
* Checks if the delegation is an attestation. | ||
* | ||
* @param {API.Delegation} proof | ||
*/ | ||
const isAttestation = proof => proof.capabilities[0]?.can === 'ucan/attest' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71828
2195
Updated@ucanto/core@^9.0.1