@ucanto/client
Advanced tools
Comparing version 0.6.0 to 1.0.0
@@ -1,9 +0,9 @@ | ||
export function connect<T>(options: API.ConnectionOptions<T>): API.ConnectionView<T>; | ||
export function execute<C extends API.UCAN.Capability<API.UCAN.Ability, `${string}:${string}`>, T, I extends API.Transport.Tuple<API.ServiceInvocation<C, T>>>(invocations: I, connection: API.Connection<T>): Promise<API.InferServiceInvocations<I, T>>; | ||
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>>; | ||
import * as API from "@ucanto/interface"; | ||
/** | ||
* @template T | ||
* @template {Record<string, any>} T | ||
* @implements {API.ConnectionView<T>} | ||
*/ | ||
declare class Connection<T> implements API.ConnectionView<T> { | ||
declare class Connection<T extends Record<string, any>> implements API.ConnectionView<T> { | ||
/** | ||
@@ -13,3 +13,3 @@ * @param {API.ConnectionOptions<T>} options | ||
constructor(options: API.ConnectionOptions<T>); | ||
id: API.UCAN.Identity; | ||
id: API.Principal<number>; | ||
options: API.ConnectionOptions<T>; | ||
@@ -19,3 +19,3 @@ encoder: API.RequestEncoder; | ||
channel: API.Channel<T>; | ||
hasher: API.UCAN.MultihashHasher<number>; | ||
hasher: API.MultihashHasher<number>; | ||
/** | ||
@@ -26,5 +26,5 @@ * @template {API.Capability} C | ||
*/ | ||
execute<C extends API.UCAN.Capability<API.UCAN.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}`>, 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": "0.6.0", | ||
"version": "1.0.0", | ||
"keywords": [ | ||
@@ -23,13 +23,21 @@ "UCAN", | ||
"homepage": "https://github.com/web3-storage/ucanto", | ||
"scripts": { | ||
"test:web": "playwright-test test/**/*.spec.js --cov && nyc report", | ||
"test:node": "c8 --check-coverage --branches 100 --functions 100 --lines 100 mocha test/**/*.spec.js", | ||
"test": "npm run test:node", | ||
"coverage": "c8 --reporter=html mocha test/test-*.js && npm_config_yes=true npx st -d coverage -p 8080", | ||
"typecheck": "tsc --build", | ||
"build": "tsc --build" | ||
}, | ||
"dependencies": { | ||
"@ucanto/interface": "^0.7.0", | ||
"multiformats": "^9.6.4" | ||
"@ucanto/interface": "^1.0.0", | ||
"multiformats": "^9.8.1" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.3.0", | ||
"@types/chai": "^4.3.3", | ||
"@types/chai-subset": "^1.3.3", | ||
"@types/mocha": "^9.1.0", | ||
"@ucanto/authority": "^0.5.0", | ||
"@ucanto/core": "^0.6.0", | ||
"@ucanto/transport": "^0.7.0", | ||
"@ucanto/principal": "^1.0.0", | ||
"@ucanto/core": "^1.0.0", | ||
"@ucanto/transport": "^1.0.0", | ||
"@web-std/fetch": "^4.1.0", | ||
@@ -40,6 +48,6 @@ "@web-std/file": "^3.0.2", | ||
"chai-subset": "^1.6.0", | ||
"mocha": "^9.2.2", | ||
"mocha": "^10.0.0", | ||
"nyc": "^15.1.0", | ||
"playwright-test": "^7.3.0", | ||
"typescript": "^4.7.4" | ||
"playwright-test": "^8.1.1", | ||
"typescript": "^4.8.3" | ||
}, | ||
@@ -71,11 +79,3 @@ "type": "module", | ||
}, | ||
"license": "(Apache-2.0 AND MIT)", | ||
"scripts": { | ||
"test:web": "playwright-test test/**/*.spec.js --cov && nyc report", | ||
"test:node": "c8 --check-coverage --branches 100 --functions 100 --lines 100 mocha test/**/*.spec.js", | ||
"test": "npm run test:node", | ||
"coverage": "c8 --reporter=html mocha test/test-*.js && npm_config_yes=true npx st -d coverage -p 8080", | ||
"typecheck": "tsc --build", | ||
"build": "tsc --build" | ||
} | ||
} | ||
"license": "(Apache-2.0 AND MIT)" | ||
} |
@@ -7,3 +7,3 @@ import * as API from '@ucanto/interface' | ||
* | ||
* @template T | ||
* @template {Record<string, any>} T | ||
* @param {API.ConnectionOptions<T>} options | ||
@@ -15,3 +15,3 @@ * @returns {API.ConnectionView<T>} | ||
/** | ||
* @template T | ||
* @template {Record<string, any>} T | ||
* @implements {API.ConnectionView<T>} | ||
@@ -43,3 +43,3 @@ */ | ||
* @template {API.Capability} C | ||
* @template T | ||
* @template {Record<string, any>} T | ||
* @template {API.Tuple<API.ServiceInvocation<C, T>>} I | ||
@@ -46,0 +46,0 @@ * @param {API.Connection<T>} connection |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5462
0
1
+ Added@ipld/dag-ucan@3.0.0-beta(transitive)
+ Added@ucanto/interface@1.0.0(transitive)
- Removed@ipld/dag-ucan@1.7.0-beta(transitive)
- Removed@ucanto/interface@0.7.0(transitive)
Updated@ucanto/interface@^1.0.0
Updatedmultiformats@^9.8.1