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

@web3-storage/clock

Package Overview
Dependencies
Maintainers
5
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3-storage/clock - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

dist/src/api.d.ts

2

dist/src/client/api.d.ts
import { Signer, Proof, DID, Principal, ConnectionView, Block } from '@ucanto/interface';
import { EventView } from '@web3-storage/pail/clock/api';
import { Service } from '../service';
import { Service } from '../api';
export interface InvocationConfig {

@@ -5,0 +5,0 @@ /**

@@ -9,3 +9,3 @@ /**

*/
export function advance<T>({ issuer, with: resource, proofs, audience }: import('./api').InvocationConfig, event: import("@web3-storage/pail/clock/api").EventLink<T>, options?: import("./api.js").AdvanceOptions<T> | undefined): Promise<import("@ucanto/interface").Receipt<{
export function advance<T>({ issuer, with: resource, proofs, audience }: import('./api').InvocationConfig, event: import("@web3-storage/pail/clock/api").EventLink<T>, options?: import("./api").AdvanceOptions<T> | undefined): Promise<import("@ucanto/interface").Receipt<{
head: import("@web3-storage/pail/clock/api").EventLink<T>[];

@@ -20,3 +20,3 @@ }, import("@ucanto/interface").Failure | import("@ucanto/interface").HandlerNotFound | import("@ucanto/interface").HandlerExecutionError | import("@ucanto/client").InvalidAudience | import("@ucanto/client").Unauthorized, import("@ucanto/interface").Invocation<import("@ucanto/client").Capability<import("@ucanto/client").Ability, `${string}:${string}`, unknown>>, import("@ucanto/client").SigAlg>>;

*/
export function head<T>({ issuer, with: resource, proofs, audience }: import('./api').InvocationConfig, options?: import("./api.js").RequestOptions<T> | undefined): Promise<import("@ucanto/interface").Receipt<{
export function head<T>({ issuer, with: resource, proofs, audience }: import('./api').InvocationConfig, options?: import("./api").RequestOptions<T> | undefined): Promise<import("@ucanto/interface").Receipt<{
head: import("@web3-storage/pail/clock/api").EventLink<T>[];

@@ -29,3 +29,3 @@ }, import("@ucanto/interface").Failure | import("@ucanto/interface").HandlerNotFound | import("@ucanto/interface").HandlerExecutionError | import("@ucanto/client").InvalidAudience | import("@ucanto/client").Unauthorized, import("@ucanto/interface").Invocation<import("@ucanto/client").Capability<import("@ucanto/client").Ability, `${string}:${string}`, unknown>>, import("@ucanto/client").SigAlg>>;

* @param {URL} [options.serviceURL]
* @returns {import('@ucanto/interface').ConnectionView<import('../service').Service<T>>}
* @returns {import('@ucanto/interface').ConnectionView<import('../api.js').Service<T>>}
*/

@@ -35,7 +35,5 @@ export function connect<T>(options?: {

serviceURL?: URL | undefined;
} | undefined): import("@ucanto/interface").ConnectionView<import("../service.js").Service<T>>;
export * from "./api.js";
export * from "../service.js";
} | undefined): import("@ucanto/interface").ConnectionView<import("../api.js").Service<T>>;
export const SERVICE_URL: "https://clock.web3.storage";
export const SERVICE_PRINCIPAL: "did:web:clock.web3.storage";
//# sourceMappingURL=index.d.ts.map
/**
* @template T
* @param {import('@ucanto/interface').Signer} signer
* @param {import('../service').Service<T>} service
* @param {import('../api').Service<T>} service
*/
export function createServer<T>(signer: import('@ucanto/interface').Signer, service: import("../service").Service<T>): Server.ServerView<Record<string, any>>;
export function createServer<T>(signer: import('@ucanto/interface').Signer, service: import("../api").Service<T>): Server.ServerView<import("../api").Service<T>>;
export function provide<A extends Server.API.Ability, R extends Server.API.URI<`${string}:`>, C extends Server.Caveats, O extends {}, X extends Server.API.Failure, Result extends Server.Result<O, X>>(capability: Server.CapabilityParser<Server.Match<Server.ParsedCapability<A, R, C>, Server.UnknownMatch>>, handler: (input: Server.ProviderInput<Server.ParsedCapability<A, R, C>>) => Server.Await<Result>): Server.ServiceMethod<Server.API.Capability<A, R, C>, O & Result["ok"], X & Result["error"]>;
import * as Server from '@ucanto/server';
//# sourceMappingURL=index.d.ts.map
{
"name": "@web3-storage/clock",
"version": "0.4.0",
"version": "0.4.1",
"description": "UCAN based Merkle Clock as a service.",

@@ -26,2 +26,10 @@ "type": "module",

"exports": {
".": {
"types": "./dist/src/index.d.ts",
"import": "./src/index.js"
},
"./api": {
"types": "./dist/src/api.d.ts",
"import": "./src/api.js"
},
"./client": {

@@ -31,2 +39,6 @@ "types": "./dist/src/client/index.d.ts",

},
"./client/api": {
"types": "./dist/src/client/api.d.ts",
"import": "./src/client/api.js"
},
"./capabilities": {

@@ -46,5 +58,11 @@ "types": "./dist/src/capabilities.d.ts",

],
"api": [
"dist/src/api.d.ts"
],
"client": [
"dist/src/client/index.d.ts"
],
"client/api": [
"dist/src/client/api.d.ts"
],
"capabilities": [

@@ -51,0 +69,0 @@ "dist/src/capabilities.d.ts"

import { Signer, Proof, DID, Principal, ConnectionView, Block } from '@ucanto/interface'
import { EventView } from '@web3-storage/pail/clock/api'
import { Service } from '../service'
import { Service } from '../api'

@@ -5,0 +5,0 @@ export interface InvocationConfig {

@@ -6,5 +6,2 @@ import { connect as clientConnect } from '@ucanto/client'

export * from './api.js'
export * from '../service.js'
export const SERVICE_URL = 'https://clock.web3.storage'

@@ -95,3 +92,3 @@ export const SERVICE_PRINCIPAL = 'did:web:clock.web3.storage'

* @param {URL} [options.serviceURL]
* @returns {import('@ucanto/interface').ConnectionView<import('../service').Service<T>>}
* @returns {import('@ucanto/interface').ConnectionView<import('../api.js').Service<T>>}
*/

@@ -98,0 +95,0 @@ export function connect (options) {

@@ -9,3 +9,3 @@ import { Verifier } from '@ucanto/principal'

* @param {import('@ucanto/interface').Signer} signer
* @param {import('../service').Service<T>} service
* @param {import('../api').Service<T>} service
*/

@@ -12,0 +12,0 @@ export function createServer (signer, service) {

Sorry, the diff of this file is not supported yet

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