@helia/dnslink 1.1.3 → 1.1.4-080e4f91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +2 -2
- package/dist/src/dnslink.d.ts +1 -1
- package/dist/src/dnslink.js +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/namespaces/ipfs.d.ts +1 -1
- package/dist/src/namespaces/ipns.d.ts +1 -1
- package/package.json +1 -1
- package/src/dnslink.ts +2 -2
- package/src/index.ts +1 -1
- package/src/namespaces/ipfs.ts +1 -1
- package/src/namespaces/ipns.ts +1 -1
- package/dist/typedoc-urls.json +0 -22
package/dist/src/dnslink.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DNSLink as DNSLinkInterface, ResolveDNSLinkOptions, DNSLinkOptions, DNSLinkComponents, DNSLinkParser, DNSLinkResolveResult } from './index.
|
|
1
|
+
import type { DNSLink as DNSLinkInterface, ResolveDNSLinkOptions, DNSLinkOptions, DNSLinkComponents, DNSLinkParser, DNSLinkResolveResult } from './index.ts';
|
|
2
2
|
export declare class DNSLink<Namespaces extends Record<string, DNSLinkParser<DNSLinkResolveResult>>> implements DNSLinkInterface<ReturnType<Namespaces[keyof Namespaces]>> {
|
|
3
3
|
private readonly dns;
|
|
4
4
|
private readonly log;
|
package/dist/src/dnslink.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MAX_RECURSIVE_DEPTH, RecordType } from '@multiformats/dns';
|
|
2
2
|
import QuickLRU from 'quick-lru';
|
|
3
3
|
import { CACHE_MAX_AGE, CACHE_MAX_ANSWERS, CACHE_SIZE } from "./constants.js";
|
|
4
|
-
import { DNSLinkNotFoundError } from
|
|
4
|
+
import { DNSLinkNotFoundError } from "./errors.js";
|
|
5
5
|
import { ipfs } from "./namespaces/ipfs.js";
|
|
6
6
|
import { ipns } from "./namespaces/ipns.js";
|
|
7
7
|
export class DNSLink {
|
package/dist/src/index.js
CHANGED
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
* const result = await name.resolve('blog.ipfs.tech')
|
|
105
105
|
* ```
|
|
106
106
|
*/
|
|
107
|
-
import { DNSLink as DNSLinkClass } from
|
|
107
|
+
import { DNSLink as DNSLinkClass } from "./dnslink.js";
|
|
108
108
|
export function dnsLink(components, options = {}) {
|
|
109
109
|
return new DNSLinkClass(components, options);
|
|
110
110
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { DNSLinkParser, DNSLinkIPNSResult, DNSLinkDNSLinkResult } from '../index.
|
|
1
|
+
import type { DNSLinkParser, DNSLinkIPNSResult, DNSLinkDNSLinkResult } from '../index.ts';
|
|
2
2
|
export declare const ipns: DNSLinkParser<DNSLinkIPNSResult | DNSLinkDNSLinkResult>;
|
|
3
3
|
//# sourceMappingURL=ipns.d.ts.map
|
package/package.json
CHANGED
package/src/dnslink.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MAX_RECURSIVE_DEPTH, RecordType } from '@multiformats/dns'
|
|
2
2
|
import QuickLRU from 'quick-lru'
|
|
3
3
|
import { CACHE_MAX_AGE, CACHE_MAX_ANSWERS, CACHE_SIZE } from './constants.ts'
|
|
4
|
-
import { DNSLinkNotFoundError } from './errors.
|
|
4
|
+
import { DNSLinkNotFoundError } from './errors.ts'
|
|
5
5
|
import { ipfs } from './namespaces/ipfs.ts'
|
|
6
6
|
import { ipns } from './namespaces/ipns.ts'
|
|
7
|
-
import type { DNSLink as DNSLinkInterface, ResolveDNSLinkOptions, DNSLinkOptions, DNSLinkComponents, DNSLinkParser, DNSLinkResolveResult } from './index.
|
|
7
|
+
import type { DNSLink as DNSLinkInterface, ResolveDNSLinkOptions, DNSLinkOptions, DNSLinkComponents, DNSLinkParser, DNSLinkResolveResult } from './index.ts'
|
|
8
8
|
import type { Logger } from '@libp2p/interface'
|
|
9
9
|
import type { DNS } from '@multiformats/dns'
|
|
10
10
|
|
package/src/index.ts
CHANGED
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
* ```
|
|
106
106
|
*/
|
|
107
107
|
|
|
108
|
-
import { DNSLink as DNSLinkClass } from './dnslink.
|
|
108
|
+
import { DNSLink as DNSLinkClass } from './dnslink.ts'
|
|
109
109
|
import type { AbortOptions, ComponentLogger, PeerId } from '@libp2p/interface'
|
|
110
110
|
import type { Answer, DNS, ResolveDnsProgressEvents as ResolveProgressEvents } from '@multiformats/dns'
|
|
111
111
|
import type { CID } from 'multiformats/cid'
|
package/src/namespaces/ipfs.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CID } from 'multiformats/cid'
|
|
2
2
|
import { InvalidNamespaceError } from '../errors.ts'
|
|
3
|
-
import type { DNSLinkParser, DNSLinkIPFSResult } from '../index.
|
|
3
|
+
import type { DNSLinkParser, DNSLinkIPFSResult } from '../index.ts'
|
|
4
4
|
import type { Answer } from '@multiformats/dns'
|
|
5
5
|
|
|
6
6
|
export const ipfs: DNSLinkParser<DNSLinkIPFSResult> = (value: string, answer: Answer): DNSLinkIPFSResult => {
|
package/src/namespaces/ipns.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { peerIdFromString } from '@libp2p/peer-id'
|
|
2
2
|
import { InvalidNamespaceError } from '../errors.ts'
|
|
3
|
-
import type { DNSLinkParser, DNSLinkIPNSResult, DNSLinkDNSLinkResult } from '../index.
|
|
3
|
+
import type { DNSLinkParser, DNSLinkIPNSResult, DNSLinkDNSLinkResult } from '../index.ts'
|
|
4
4
|
import type { Answer } from '@multiformats/dns'
|
|
5
5
|
|
|
6
6
|
export const ipns: DNSLinkParser<DNSLinkIPNSResult | DNSLinkDNSLinkResult> = (value: string, answer: Answer): DNSLinkIPNSResult | DNSLinkDNSLinkResult => {
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"DNSLink": "https://ipfs.github.io/helia/interfaces/_helia_dnslink.DNSLink.html",
|
|
3
|
-
".:DNSLink": "https://ipfs.github.io/helia/interfaces/_helia_dnslink.DNSLink.html",
|
|
4
|
-
"DNSLinkComponents": "https://ipfs.github.io/helia/interfaces/_helia_dnslink.DNSLinkComponents.html",
|
|
5
|
-
".:DNSLinkComponents": "https://ipfs.github.io/helia/interfaces/_helia_dnslink.DNSLinkComponents.html",
|
|
6
|
-
"DNSLinkDNSLinkResult": "https://ipfs.github.io/helia/interfaces/_helia_dnslink.DNSLinkDNSLinkResult.html",
|
|
7
|
-
".:DNSLinkDNSLinkResult": "https://ipfs.github.io/helia/interfaces/_helia_dnslink.DNSLinkDNSLinkResult.html",
|
|
8
|
-
"DNSLinkIPFSResult": "https://ipfs.github.io/helia/interfaces/_helia_dnslink.DNSLinkIPFSResult.html",
|
|
9
|
-
".:DNSLinkIPFSResult": "https://ipfs.github.io/helia/interfaces/_helia_dnslink.DNSLinkIPFSResult.html",
|
|
10
|
-
"DNSLinkIPNSResult": "https://ipfs.github.io/helia/interfaces/_helia_dnslink.DNSLinkIPNSResult.html",
|
|
11
|
-
".:DNSLinkIPNSResult": "https://ipfs.github.io/helia/interfaces/_helia_dnslink.DNSLinkIPNSResult.html",
|
|
12
|
-
"DNSLinkOptions": "https://ipfs.github.io/helia/interfaces/_helia_dnslink.DNSLinkOptions.html",
|
|
13
|
-
".:DNSLinkOptions": "https://ipfs.github.io/helia/interfaces/_helia_dnslink.DNSLinkOptions.html",
|
|
14
|
-
"DNSLinkParser": "https://ipfs.github.io/helia/interfaces/_helia_dnslink.DNSLinkParser.html",
|
|
15
|
-
".:DNSLinkParser": "https://ipfs.github.io/helia/interfaces/_helia_dnslink.DNSLinkParser.html",
|
|
16
|
-
"DNSLinkResolveResult": "https://ipfs.github.io/helia/interfaces/_helia_dnslink.DNSLinkResolveResult.html",
|
|
17
|
-
".:DNSLinkResolveResult": "https://ipfs.github.io/helia/interfaces/_helia_dnslink.DNSLinkResolveResult.html",
|
|
18
|
-
"ResolveDNSLinkOptions": "https://ipfs.github.io/helia/interfaces/_helia_dnslink.ResolveDNSLinkOptions.html",
|
|
19
|
-
".:ResolveDNSLinkOptions": "https://ipfs.github.io/helia/interfaces/_helia_dnslink.ResolveDNSLinkOptions.html",
|
|
20
|
-
"dnsLink": "https://ipfs.github.io/helia/functions/_helia_dnslink.dnsLink.html",
|
|
21
|
-
".:dnsLink": "https://ipfs.github.io/helia/functions/_helia_dnslink.dnsLink.html"
|
|
22
|
-
}
|