From 3523c8ed49a1f472a37a0c14d50ef54442f91cbe Mon Sep 17 00:00:00 2001 From: "aegir[bot]" Date: Thu, 21 Mar 2024 21:26:43 +0000 Subject: [PATCH] docs: update documentation [skip ci] --- functions/createVerifiedFetch.html | 2 +- functions/verifiedFetch-1.html | 4 ++-- interfaces/CIDDetail.html | 4 ++-- interfaces/CIDDetailError.html | 4 ++-- interfaces/ContentTypeParser.html | 2 +- interfaces/CreateVerifiedFetchInit.html | 4 ++-- interfaces/CreateVerifiedFetchOptions.html | 4 ++-- interfaces/ResourceDetail.html | 4 ++-- interfaces/VerifiedFetch.html | 4 ++-- interfaces/VerifiedFetchInit.html | 2 +- types/BubbledProgressEvents.html | 2 +- types/Resource.html | 2 +- types/VerifiedFetchProgressEvents.html | 2 +- 13 files changed, 20 insertions(+), 20 deletions(-) diff --git a/functions/createVerifiedFetch.html b/functions/createVerifiedFetch.html index 2e1019db..c4a7fa2c 100644 --- a/functions/createVerifiedFetch.html +++ b/functions/createVerifiedFetch.html @@ -1,2 +1,2 @@ createVerifiedFetch | @helia/verified-fetch

Function createVerifiedFetch

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns Promise<VerifiedFetch>

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/verifiedFetch-1.html b/functions/verifiedFetch-1.html index 8ff172b6..83a025bf 100644 --- a/functions/verifiedFetch-1.html +++ b/functions/verifiedFetch-1.html @@ -1,3 +1,3 @@ -verifiedFetch | @helia/verified-fetch

Methods

start +verifiedFetch | @helia/verified-fetch

Methods

Methods

Generated using TypeDoc

\ No newline at end of file +

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/CIDDetail.html b/interfaces/CIDDetail.html index 40adfae5..be479b9c 100644 --- a/interfaces/CIDDetail.html +++ b/interfaces/CIDDetail.html @@ -1,3 +1,3 @@ -CIDDetail | @helia/verified-fetch
interface CIDDetail {
    cid: CID<unknown, number, number, Version>;
    path: string;
}

Hierarchy (view full)

Properties

cid +CIDDetail | @helia/verified-fetch
interface CIDDetail {
    cid: CID<unknown, number, number, Version>;
    path: string;
}

Hierarchy (view full)

Properties

Properties

cid: CID<unknown, number, number, Version>
path: string

Generated using TypeDoc

\ No newline at end of file +

Properties

cid: CID<unknown, number, number, Version>
path: string

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/CIDDetailError.html b/interfaces/CIDDetailError.html index aa4092ed..1fd0e3e6 100644 --- a/interfaces/CIDDetailError.html +++ b/interfaces/CIDDetailError.html @@ -1,4 +1,4 @@ -CIDDetailError | @helia/verified-fetch

Interface CIDDetailError

interface CIDDetailError {
    cid: CID<unknown, number, number, Version>;
    error: Error;
    path: string;
}

Hierarchy (view full)

Properties

cid +CIDDetailError | @helia/verified-fetch

Interface CIDDetailError

interface CIDDetailError {
    cid: CID<unknown, number, number, Version>;
    error: Error;
    path: string;
}

Hierarchy (view full)

Properties

Properties

cid: CID<unknown, number, number, Version>
error: Error
path: string

Generated using TypeDoc

\ No newline at end of file +

Properties

cid: CID<unknown, number, number, Version>
error: Error
path: string

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/ContentTypeParser.html b/interfaces/ContentTypeParser.html index 80b68cf4..34eef87e 100644 --- a/interfaces/ContentTypeParser.html +++ b/interfaces/ContentTypeParser.html @@ -4,4 +4,4 @@ undefined, application/octet-stream will be used.

interface ContentTypeParser ((bytes, fileName?) => undefined | string | Promise<undefined | string>)

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns undefined | string | Promise<undefined | string>

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/CreateVerifiedFetchInit.html b/interfaces/CreateVerifiedFetchInit.html index 8c630f61..02a00d74 100644 --- a/interfaces/CreateVerifiedFetchInit.html +++ b/interfaces/CreateVerifiedFetchInit.html @@ -1,6 +1,6 @@ CreateVerifiedFetchInit | @helia/verified-fetch

Interface CreateVerifiedFetchInit

Instead of passing a Helia instance, you can pass a list of gateways and routers, and a HeliaHTTP instance will be created for you.

-
interface CreateVerifiedFetchInit {
    dnsResolvers?: DNSResolver[] | DNSResolvers;
    gateways: string[];
    routers?: string[];
}

Properties

interface CreateVerifiedFetchInit {
    dnsResolvers?: DNSResolver[] | DNSResolvers;
    gateways: string[];
    routers?: string[];
}

Properties

dnsResolvers?: DNSResolver[] | DNSResolvers

In order to parse DNSLink records, we need to resolve DNS queries. You can @@ -10,4 +10,4 @@

We use cloudflare and google's dnsJsonOverHttps resolvers by default.

Default

[dnsJsonOverHttps('https://mozilla.cloudflare-dns.com/dns-query'),dnsJsonOverHttps('https://dns.google/resolve')]
 
-
gateways: string[]
routers?: string[]

Generated using TypeDoc

\ No newline at end of file +
gateways: string[]
routers?: string[]

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/CreateVerifiedFetchOptions.html b/interfaces/CreateVerifiedFetchOptions.html index dcdfc4b2..9e4a6756 100644 --- a/interfaces/CreateVerifiedFetchOptions.html +++ b/interfaces/CreateVerifiedFetchOptions.html @@ -1,8 +1,8 @@ -CreateVerifiedFetchOptions | @helia/verified-fetch

Interface CreateVerifiedFetchOptions

interface CreateVerifiedFetchOptions {
    contentTypeParser?: ContentTypeParser;
}

Properties

contentTypeParser? +CreateVerifiedFetchOptions | @helia/verified-fetch

Interface CreateVerifiedFetchOptions

interface CreateVerifiedFetchOptions {
    contentTypeParser?: ContentTypeParser;
}

Properties

contentTypeParser?: ContentTypeParser

A function to handle parsing content type from bytes. The function you provide will be passed the first set of bytes we receive from the network, and should return a string that will be used as the value for the Content-Type header in the response.

Default

undefined
 
-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/ResourceDetail.html b/interfaces/ResourceDetail.html index 576fe217..bc57d9bc 100644 --- a/interfaces/ResourceDetail.html +++ b/interfaces/ResourceDetail.html @@ -1,2 +1,2 @@ -ResourceDetail | @helia/verified-fetch

Interface ResourceDetail

interface ResourceDetail {
    resource: Resource;
}

Properties

Properties

resource: Resource

Generated using TypeDoc

\ No newline at end of file +ResourceDetail | @helia/verified-fetch

Interface ResourceDetail

interface ResourceDetail {
    resource: Resource;
}

Properties

Properties

resource: Resource

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/VerifiedFetch.html b/interfaces/VerifiedFetch.html index 0d039141..a6a6e646 100644 --- a/interfaces/VerifiedFetch.html +++ b/interfaces/VerifiedFetch.html @@ -1,3 +1,3 @@ -VerifiedFetch | @helia/verified-fetch

Interface VerifiedFetch

interface VerifiedFetch {
    start(): Promise<void>;
    stop(): Promise<void>;
    (resource, options?): Promise<Response>;
}

Methods

start +VerifiedFetch | @helia/verified-fetch

Interface VerifiedFetch

interface VerifiedFetch {
    start(): Promise<void>;
    stop(): Promise<void>;
    (resource, options?): Promise<Response>;
}

Methods

Methods

Generated using TypeDoc

\ No newline at end of file +

Methods

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/VerifiedFetchInit.html b/interfaces/VerifiedFetchInit.html index 98a922d5..d065b491 100644 --- a/interfaces/VerifiedFetchInit.html +++ b/interfaces/VerifiedFetchInit.html @@ -2,7 +2,7 @@

This interface contains all the same fields as the options object passed to fetch in browsers, plus an onProgress option to listen for progress events.

-
interface VerifiedFetchInit {
    body?: null | BodyInit;
    cache?: RequestCache;
    credentials?: RequestCredentials;
    headers?: HeadersInit;
    integrity?: string;
    keepalive?: boolean;
    method?: string;
    mode?: RequestMode;
    onProgress?: ((evt) => void);
    priority?: RequestPriority;
    redirect?: RequestRedirect;
    referrer?: string;
    referrerPolicy?: ReferrerPolicy;
    signal?: null | AbortSignal;
    window?: null;
}

Hierarchy

Properties

interface VerifiedFetchInit {
    body?: null | BodyInit;
    cache?: RequestCache;
    credentials?: RequestCredentials;
    headers?: HeadersInit;
    integrity?: string;
    keepalive?: boolean;
    method?: string;
    mode?: RequestMode;
    onProgress?: ((evt) => void);
    priority?: RequestPriority;
    redirect?: RequestRedirect;
    referrer?: string;
    referrerPolicy?: ReferrerPolicy;
    signal?: null | AbortSignal;
    window?: null;
}

Hierarchy

Properties

body? cache? credentials? headers? diff --git a/types/BubbledProgressEvents.html b/types/BubbledProgressEvents.html index d489ab25..bdbfc010 100644 --- a/types/BubbledProgressEvents.html +++ b/types/BubbledProgressEvents.html @@ -1 +1 @@ -BubbledProgressEvents | @helia/verified-fetch

Generated using TypeDoc

\ No newline at end of file +BubbledProgressEvents | @helia/verified-fetch

Generated using TypeDoc

\ No newline at end of file diff --git a/types/Resource.html b/types/Resource.html index d971ebde..82a26762 100644 --- a/types/Resource.html +++ b/types/Resource.html @@ -1,2 +1,2 @@ Resource | @helia/verified-fetch
Resource: string | CID

The types for the first argument of the verifiedFetch function.

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/types/VerifiedFetchProgressEvents.html b/types/VerifiedFetchProgressEvents.html index 322ed23b..dad1e251 100644 --- a/types/VerifiedFetchProgressEvents.html +++ b/types/VerifiedFetchProgressEvents.html @@ -1 +1 @@ -VerifiedFetchProgressEvents | @helia/verified-fetch

Type alias VerifiedFetchProgressEvents

VerifiedFetchProgressEvents: ProgressEvent<"verified-fetch:request:start", CIDDetail> | ProgressEvent<"verified-fetch:request:info", string> | ProgressEvent<"verified-fetch:request:progress:chunk", CIDDetail> | ProgressEvent<"verified-fetch:request:end", CIDDetail> | ProgressEvent<"verified-fetch:request:error", CIDDetailError>

Generated using TypeDoc

\ No newline at end of file +VerifiedFetchProgressEvents | @helia/verified-fetch

Type alias VerifiedFetchProgressEvents

VerifiedFetchProgressEvents: ProgressEvent<"verified-fetch:request:start", CIDDetail> | ProgressEvent<"verified-fetch:request:info", string> | ProgressEvent<"verified-fetch:request:progress:chunk", CIDDetail> | ProgressEvent<"verified-fetch:request:end", CIDDetail> | ProgressEvent<"verified-fetch:request:error", CIDDetailError>

Generated using TypeDoc

\ No newline at end of file