From f7639975c3e80f24dad3e19d2d576093ad0455e1 Mon Sep 17 00:00:00 2001 From: "aegir[bot]" Date: Thu, 28 Mar 2024 12:55:50 +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 afb3cbce..6aeb2d57 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 2f7bb789..3a2e0938 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 aaa00de6..13aef8ca 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 a0293931..bf36a79b 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 3db5fea2..7c875c55 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 384274c1..17caae04 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 07610872..1a15d5b3 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 e918225c..f1b9c541 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 ec17da11..98ea7878 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 e14c09e4..1bbb0d32 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 59006576..8e334e92 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 58c56685..6e36fcb5 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 8753654c..a09cbac2 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