Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ucanto/validator

Package Overview
Dependencies
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ucanto/validator - npm Package Compare versions

Comparing version 9.0.0 to 9.0.1

8

package.json
{
"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'
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc