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.2 to 9.0.0

2

dist/src/server.d.ts

@@ -61,2 +61,3 @@ export { fail };

resolve?: ((proof: API.UCANLink<API.Capabilities, API.MulticodecCode<number, string>, API.SigAlg>) => API.Await<API.Result<API.Delegation<API.Capabilities>, API.UnavailableProof>>) | undefined;
validateAuthorization: (proofs: API.Authorization<API.ParsedCapability<API.Ability, API.URI, {}>>) => API.Await<API.Result<API.Unit, API.Revoked>>;
id: API.Signer<`did:${string}:${string}`, API.SigAlg>;

@@ -68,2 +69,3 @@ principal: API.PrincipalParser;

catch: (err: API.HandlerExecutionError) => void;
validateAuthorization: (proofs: API.Authorization<API.ParsedCapability<API.Ability, API.URI, {}>>) => API.Await<API.Result<API.Unit, API.Revoked>>;
get id(): API.Signer<`did:${string}:${string}`, API.SigAlg>;

@@ -70,0 +72,0 @@ /**

2

package.json
{
"name": "@ucanto/server",
"description": "UCAN RPC Server",
"version": "8.0.2",
"version": "9.0.0",
"types": "./dist/src/lib.d.ts",

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

@@ -66,2 +66,3 @@ import * as API from './api.js'

})
if (authorization.error) {

@@ -68,0 +69,0 @@ return authorization

@@ -20,3 +20,6 @@ import * as API from '@ucanto/interface'

*/
export const create = options => new Server(options)
export const create = options => {
const server = new Server(options)
return server
}

@@ -37,2 +40,5 @@ /**

this.catch = fail || (() => {})
this.validateAuthorization = this.context.validateAuthorization.bind(
this.context
)
}

@@ -39,0 +45,0 @@ get id() {

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