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 6.0.0 to 6.1.0

2

dist/src/error.d.ts

@@ -104,3 +104,3 @@ /**

*/
export class InvalidAudience extends Failure implements API.InvalidAudience {
export class PrincipalAlignmentError extends Failure implements API.InvalidAudience {
/**

@@ -107,0 +107,0 @@ * @param {API.UCAN.Principal} audience

@@ -94,3 +94,2 @@ export { capability } from "./capability.js";

}
import { InvalidAudience } from "./error.js";
import { capability } from "./capability.js";

@@ -107,3 +106,3 @@ import { DelegationError } from "./error.js";

}
export { Failure, UnavailableProof, MalformedCapability, DIDKeyResolutionError as DIDResolutionError, Schema, InvalidAudience };
export { Failure, UnavailableProof, MalformedCapability, DIDKeyResolutionError as DIDResolutionError, Schema };
//# sourceMappingURL=lib.d.ts.map
{
"name": "@ucanto/validator",
"description": "UCAN RPC validators",
"version": "6.0.0",
"version": "6.1.0",
"keywords": [

@@ -26,3 +26,3 @@ "UCAN",

"@ucanto/core": "^5.1.0",
"@ucanto/interface": "^6.0.0"
"@ucanto/interface": "^6.1.0"
},

@@ -29,0 +29,0 @@ "devDependencies": {

@@ -188,3 +188,3 @@ import * as API from '@ucanto/interface'

*/
export class InvalidAudience extends Failure {
export class PrincipalAlignmentError extends Failure {
/**

@@ -191,0 +191,0 @@ * @param {API.UCAN.Principal} audience

import * as API from '@ucanto/interface'
import { isDelegation, Delegation, UCAN } from '@ucanto/core'
import { isDelegation, UCAN } from '@ucanto/core'
import { capability } from './capability.js'

@@ -7,3 +7,3 @@ import * as Schema from './schema.js'

UnavailableProof,
InvalidAudience,
PrincipalAlignmentError,
Expired,

@@ -150,3 +150,6 @@ NotValidBefore,

errors.push(
new ProofError(proof.cid, new InvalidAudience(delegation.issuer, proof))
new ProofError(
proof.cid,
new PrincipalAlignmentError(delegation.issuer, proof)
)
)

@@ -597,3 +600,1 @@ } else {

}
export { InvalidAudience }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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