@ucanto/client
Advanced tools
Comparing version 1.0.1 to 2.0.0
export function connect<T extends Record<string, any>>(options: API.ConnectionOptions<T>): API.ConnectionView<T>; | ||
export function execute<C extends API.Capability<API.Ability, `${string}:${string}`>, T extends Record<string, any>, I extends API.Transport.Tuple<API.ServiceInvocation<C, T>>>(invocations: I, connection: API.Connection<T>): Promise<API.InferServiceInvocations<I, T>>; | ||
export function execute<C extends API.Capability<API.Ability, `${string}:${string}`, any>, T extends Record<string, any>, I extends API.Transport.Tuple<API.ServiceInvocation<C, T>>>(invocations: I, connection: API.Connection<T>): Promise<API.InferServiceInvocations<I, T>>; | ||
import * as API from "@ucanto/interface"; | ||
@@ -13,3 +13,3 @@ /** | ||
constructor(options: API.ConnectionOptions<T>); | ||
id: API.Principal<number>; | ||
id: API.Principal<string>; | ||
options: API.ConnectionOptions<T>; | ||
@@ -25,5 +25,5 @@ encoder: API.RequestEncoder; | ||
*/ | ||
execute<C extends API.Capability<API.Ability, `${string}:${string}`>, I extends API.Transport.Tuple<API.ServiceInvocation<C, T>>>(...invocations: I): Promise<API.InferServiceInvocations<I, T>>; | ||
execute<C extends API.Capability<API.Ability, `${string}:${string}`, any>, I extends API.Transport.Tuple<API.ServiceInvocation<C, T>>>(...invocations: I): Promise<API.InferServiceInvocations<I, T>>; | ||
} | ||
export {}; | ||
//# sourceMappingURL=connection.d.ts.map |
{ | ||
"name": "@ucanto/client", | ||
"description": "UCAN RPC Client", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"keywords": [ | ||
@@ -24,3 +24,3 @@ "UCAN", | ||
"dependencies": { | ||
"@ucanto/interface": "^1.0.0", | ||
"@ucanto/interface": "^2.0.0", | ||
"multiformats": "^9.8.1" | ||
@@ -32,5 +32,5 @@ }, | ||
"@types/mocha": "^9.1.0", | ||
"@ucanto/principal": "^1.0.1", | ||
"@ucanto/core": "^1.0.1", | ||
"@ucanto/transport": "^1.0.1", | ||
"@ucanto/principal": "^2.0.0", | ||
"@ucanto/core": "^2.0.0", | ||
"@ucanto/transport": "^2.0.0", | ||
"@web-std/fetch": "^4.1.0", | ||
@@ -37,0 +37,0 @@ "@web-std/file": "^3.0.2", |
Sorry, the diff of this file is not supported yet
5471
+ Added@ipld/dag-ucan@4.0.0-beta(transitive)
+ Added@ucanto/interface@2.0.0(transitive)
- Removed@ipld/dag-ucan@3.0.0-beta(transitive)
- Removed@ucanto/interface@1.0.0(transitive)
Updated@ucanto/interface@^2.0.0