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

@ucanto/client

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ucanto/client - npm Package Compare versions

Comparing version 0.6.0 to 1.0.0

14

dist/src/connection.d.ts

@@ -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

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