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

@ucanto/interface

Package Overview
Dependencies
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ucanto/interface - npm Package Compare versions

Comparing version 5.0.0 to 6.0.0

4

dist/src/lib.d.ts

@@ -167,5 +167,4 @@ import { Ability, Block as UCANBlock, ByteView, Capabilities, Capability, DID, Fact, Link as UCANLink, MultihashHasher, MultihashDigest, MultibaseDecoder, MultibaseEncoder, Phantom, Resource, Signature, Principal, MulticodecCode, SigAlg, ToJSON, SignatureJSON, JSONUnknown, JSONObject } from '@ipld/dag-ucan';

export type InvocationError = HandlerNotFound | HandlerExecutionError | InvalidAudience | Unauthorized;
export interface InvocationContext extends CanIssue {
export interface InvocationContext extends ValidatorOptions {
id: Verifier;
my?: (issuer: DID) => Capability[];
resolve?: (proof: UCANLink) => Await<Result<Delegation, UnavailableProof>>;

@@ -258,3 +257,2 @@ principal: PrincipalParser;

readonly canIssue?: CanIssue['canIssue'];
readonly my?: InvocationContext['my'];
readonly resolve?: InvocationContext['resolve'];

@@ -261,0 +259,0 @@ }

{
"name": "@ucanto/interface",
"description": "interface definitions for ucanto",
"version": "5.0.0",
"version": "6.0.0",
"types": "./dist/src/lib.d.ts",

@@ -26,3 +26,3 @@ "main": "./src/lib.js",

"devDependencies": {
"typescript": "^4.9.4"
"typescript": "^4.9.5"
},

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

@@ -287,5 +287,5 @@ import {

export interface InvocationContext extends CanIssue {
export interface InvocationContext extends ValidatorOptions {
id: Verifier
my?: (issuer: DID) => Capability[]
resolve?: (proof: UCANLink) => Await<Result<Delegation, UnavailableProof>>

@@ -464,3 +464,2 @@

readonly canIssue?: CanIssue['canIssue']
readonly my?: InvocationContext['my']
readonly resolve?: InvocationContext['resolve']

@@ -467,0 +466,0 @@ }

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