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

@ucanto/interface

Package Overview
Dependencies
Maintainers
1
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 0.5.0 to 0.6.0

2

package.json
{
"name": "@ucanto/interface",
"description": "interface definitions for ucanto",
"version": "0.5.0",
"version": "0.6.0",
"types": "./dist/src/lib.d.ts",

@@ -6,0 +6,0 @@ "main": "./src/lib.js",

@@ -295,13 +295,15 @@ import type * as Transport from './transport.js'

export interface ConnectionOptions<T> extends Transport.EncodeOptions {
export interface OutpboundTranpsortOptions {
readonly encoder: Transport.RequestEncoder
readonly decoder: Transport.ResponseDecoder
}
export interface ConnectionOptions<T>
extends Transport.EncodeOptions,
OutpboundTranpsortOptions {
readonly id: Identity
readonly channel: Transport.Channel<T>
}
export interface Connection<T> extends Phantom<T> {
readonly encoder: Transport.RequestEncoder
readonly decoder: Transport.ResponseDecoder
readonly channel: Transport.Channel<T>
export interface Connection<T> extends Phantom<T>, ConnectionOptions<T> {
readonly id: Identity
readonly hasher: MultihashHasher

@@ -311,2 +313,3 @@ }

export interface ConnectionView<T> extends Connection<T> {
id: Identity
execute<

@@ -320,3 +323,3 @@ C extends Capability,

export interface TranpsortOptions {
export interface InboundTransportOptions {
/**

@@ -347,3 +350,5 @@ * Request decoder which is will be used by a server to decode HTTP Request

export interface ServerOptions extends TranpsortOptions, ValidatorOptions {
export interface ServerOptions
extends InboundTransportOptions,
ValidatorOptions {
/**

@@ -350,0 +355,0 @@ * Service DID which will be used to verify that received invocation

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