@ipld/dag-ucan
Advanced tools
Comparing version 1.1.0-beta to 1.1.1-beta
@@ -9,7 +9,7 @@ import type { MultihashDigest, MultihashHasher } from "multiformats/hashes/interface"; | ||
export declare type Fact = Record<string, unknown>; | ||
export interface Issuer<A extends number = number> extends Signer<A> { | ||
export interface Agent { | ||
did(): DID; | ||
} | ||
export interface Audience { | ||
did(): DID; | ||
export declare type Audience = Agent; | ||
export interface Issuer<A extends number = number> extends Signer<A>, Agent { | ||
} | ||
@@ -16,0 +16,0 @@ export declare type Version = `${number}.${number}.${number}`; |
{ | ||
"name": "@ipld/dag-ucan", | ||
"description": "UCAN codec for IPLD", | ||
"version": "1.1.0-beta", | ||
"version": "1.1.1-beta", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "UCAN", |
@@ -80,2 +80,4 @@ import * as UCAN from "./ucan.js" | ||
data.body.facts = data.body.facts || [] | ||
data.body.nonce = data.body.nonce || undefined | ||
data.body.notBefore = data.body.notBefore || undefined | ||
return View.cbor(data) | ||
@@ -82,0 +84,0 @@ } catch (error) { |
@@ -16,9 +16,8 @@ import type { | ||
export interface Issuer<A extends number = number> extends Signer<A> { | ||
export interface Agent { | ||
did(): DID | ||
} | ||
export interface Audience { | ||
did(): DID | ||
} | ||
export type Audience = Agent | ||
export interface Issuer<A extends number = number> extends Signer<A>, Agent {} | ||
@@ -25,0 +24,0 @@ export type Version = `${number}.${number}.${number}` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
48412
1139