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

@ucanto/server

Package Overview
Dependencies
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ucanto/server - npm Package Compare versions

Comparing version 8.0.1 to 8.0.2

2

dist/src/handler.d.ts

@@ -9,3 +9,3 @@ export function provide<A extends API.Ability, R extends API.URI<`${string}:`>, C extends API.Caveats, O extends {}, X extends API.Failure, Result extends API.Result<O, X>>(capability: API.CapabilityParser<API.Match<API.ParsedCapability<A, R, C>, API.UnknownMatch>>, handler: (input: API.ProviderInput<API.ParsedCapability<A, R, C>>) => API.Await<Result>): API.ServiceMethod<API.Capability<A, R, C>, O & Result["ok"], X & Result["error"]>;

export function error<T extends {}, X extends API.Failure>(error: X): API.ErrorBuilder<T, X>;
import * as API from "./api.js";
import * as API from './api.js';
//# sourceMappingURL=handler.d.ts.map

@@ -14,3 +14,3 @@ export { fail };

}>;
export function execute<S extends Record<string, any>, I extends API.Transport.Tuple<unknown>>(input: API.AgentMessage<{
export function execute<S extends Record<string, any>, I extends API.Transport.Tuple>(input: API.AgentMessage<{
In: API.InferInvocations<I>;

@@ -48,4 +48,4 @@ Out: API.Transport.Tuple<API.Receipt<any, any, API.Invocation<API.Capability<API.Ability, `${string}:${string}`, unknown>>, API.SigAlg>>;

}
import { fail } from "@ucanto/core/result.js";
import * as API from "@ucanto/interface";
import { fail } from '@ucanto/core';
import * as API from '@ucanto/interface';
/**

@@ -61,3 +61,3 @@ * @template {Record<string, any>} S

context: {
canIssue?: ((capability: API.ParsedCapability<API.Ability, API.URI<`${string}:`>, {}>, issuer: `did:${string}:${string}`) => boolean) | undefined;
canIssue?: ((capability: API.ParsedCapability<API.Ability, API.URI, {}>, issuer: `did:${string}:${string}`) => boolean) | undefined;
resolve?: ((proof: API.UCANLink<API.Capabilities, API.MulticodecCode<number, string>, API.SigAlg>) => API.Await<API.Result<API.Delegation<API.Capabilities>, API.UnavailableProof>>) | undefined;

@@ -90,5 +90,5 @@ id: API.Signer<`did:${string}:${string}`, API.SigAlg>;

}
import { Receipt } from "@ucanto/core";
import { Receipt } from '@ucanto/core';
export { capability, URI, Link, Failure, MalformedCapability } from "@ucanto/validator";
export { ok, error } from "./handler.js";
//# sourceMappingURL=server.d.ts.map
{
"name": "@ucanto/server",
"description": "UCAN RPC Server",
"version": "8.0.1",
"version": "8.0.2",
"types": "./dist/src/lib.d.ts",

@@ -25,2 +25,3 @@ "main": "./src/lib.js",

"@ucanto/interface": "^8",
"@ucanto/principal": "^8",
"@ucanto/validator": "^8"

@@ -33,3 +34,2 @@ },

"@ucanto/client": "^8",
"@ucanto/principal": "^8",
"@ucanto/transport": "^8",

@@ -44,3 +44,3 @@ "@web-std/fetch": "^4.1.0",

"playwright-test": "^8.2.0",
"typescript": "^4.9.5"
"typescript": "^5.0.4"
},

@@ -47,0 +47,0 @@ "exports": {

Sorry, the diff of this file is not supported yet

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