From ab616a2e8049b04bb66e7a92f29a9a5c42bd5b1b Mon Sep 17 00:00:00 2001 From: "aegir[bot]" Date: Tue, 2 Apr 2024 23:30:12 +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 6aeb2d57..145f32c9 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 3a2e0938..b4c51618 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 13aef8ca..76193d35 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 bf36a79b..48e0ca07 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 7c875c55..52cf34eb 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 17caae04..8a23041e 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 1a15d5b3..db8f7d69 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 f1b9c541..da77a50f 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 98ea7878..2acd79ed 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 1bbb0d32..2bdbe7bc 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 8e334e92..077333ec 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 6e36fcb5..dec666a6 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 a09cbac2..f11f7177 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