@helia/ipns 9.1.8 → 9.1.9-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 +3 -3
- package/dist/index.min.js.map +3 -3
- package/dist/src/index.d.ts +3 -3
- package/dist/src/index.js +3 -3
- package/dist/src/ipns/publisher.d.ts +3 -3
- package/dist/src/ipns/republisher.d.ts +2 -2
- package/dist/src/ipns/republisher.js +1 -1
- package/dist/src/ipns/resolver.d.ts +3 -3
- package/dist/src/ipns/resolver.js +2 -2
- package/dist/src/ipns.d.ts +2 -2
- package/dist/src/ipns.js +2 -2
- package/dist/src/local-store.d.ts +2 -2
- package/dist/src/local-store.js +2 -2
- package/dist/src/routing/helia.d.ts +2 -2
- package/dist/src/routing/index.d.ts +6 -6
- package/dist/src/routing/index.js +2 -2
- package/dist/src/routing/pubsub.d.ts +1 -1
- package/dist/src/routing/pubsub.js +2 -2
- package/package.json +2 -2
- package/src/index.ts +6 -6
- package/src/ipns/publisher.ts +3 -3
- package/src/ipns/republisher.ts +3 -3
- package/src/ipns/resolver.ts +5 -5
- package/src/ipns.ts +5 -5
- package/src/local-store.ts +3 -3
- package/src/routing/helia.ts +2 -2
- package/src/routing/index.ts +6 -6
- package/src/routing/pubsub.ts +4 -4
- package/dist/typedoc-urls.json +0 -51
package/dist/src/index.d.ts
CHANGED
|
@@ -180,8 +180,8 @@
|
|
|
180
180
|
*/
|
|
181
181
|
import { ipnsValidator } from 'ipns/validator';
|
|
182
182
|
import { CID } from 'multiformats/cid';
|
|
183
|
-
import type { IPNSResolverComponents } from './ipns/resolver.
|
|
184
|
-
import type { IPNSRouting, IPNSRoutingProgressEvents } from './routing/index.
|
|
183
|
+
import type { IPNSResolverComponents } from './ipns/resolver.ts';
|
|
184
|
+
import type { IPNSRouting, IPNSRoutingProgressEvents } from './routing/index.ts';
|
|
185
185
|
import type { Routing, HeliaEvents } from '@helia/interface';
|
|
186
186
|
import type { AbortOptions, ComponentLogger, Libp2p, PeerId, PublicKey, TypedEventEmitter } from '@libp2p/interface';
|
|
187
187
|
import type { Keychain } from '@libp2p/keychain';
|
|
@@ -318,7 +318,7 @@ export interface IPNS {
|
|
|
318
318
|
*/
|
|
319
319
|
unpublish(keyName: string, options?: AbortOptions): Promise<void>;
|
|
320
320
|
}
|
|
321
|
-
export type { IPNSRouting } from './routing/index.
|
|
321
|
+
export type { IPNSRouting } from './routing/index.ts';
|
|
322
322
|
export type { IPNSRecord } from 'ipns';
|
|
323
323
|
export interface IPNSComponents {
|
|
324
324
|
datastore: Datastore;
|
package/dist/src/index.js
CHANGED
|
@@ -180,10 +180,10 @@
|
|
|
180
180
|
*/
|
|
181
181
|
import { ipnsValidator } from 'ipns/validator';
|
|
182
182
|
import { CID } from 'multiformats/cid';
|
|
183
|
-
import { IPNSResolver as IPNSResolverClass } from
|
|
184
|
-
import { IPNS as IPNSClass } from
|
|
183
|
+
import { IPNSResolver as IPNSResolverClass } from "./ipns/resolver.js";
|
|
184
|
+
import { IPNS as IPNSClass } from "./ipns.js";
|
|
185
185
|
import { localStore } from "./local-store.js";
|
|
186
|
-
import { helia } from
|
|
186
|
+
import { helia } from "./routing/index.js";
|
|
187
187
|
import { localStoreRouting } from "./routing/local-store.js";
|
|
188
188
|
export function ipns(components, options = {}) {
|
|
189
189
|
return new IPNSClass(components, options);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CID } from 'multiformats/cid';
|
|
2
|
-
import type { IPNSPublishResult, PublishOptions } from '../index.
|
|
3
|
-
import type { LocalStore } from '../local-store.
|
|
4
|
-
import type { IPNSRouting } from '../routing/index.
|
|
2
|
+
import type { IPNSPublishResult, PublishOptions } from '../index.ts';
|
|
3
|
+
import type { LocalStore } from '../local-store.ts';
|
|
4
|
+
import type { IPNSRouting } from '../routing/index.ts';
|
|
5
5
|
import type { AbortOptions, ComponentLogger, Libp2p, PeerId, PublicKey } from '@libp2p/interface';
|
|
6
6
|
import type { Keychain } from '@libp2p/keychain';
|
|
7
7
|
import type { Datastore } from 'interface-datastore';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { LocalStore } from '../local-store.
|
|
2
|
-
import type { IPNSRouting } from '../routing/index.
|
|
1
|
+
import type { LocalStore } from '../local-store.ts';
|
|
2
|
+
import type { IPNSRouting } from '../routing/index.ts';
|
|
3
3
|
import type { ComponentLogger, Libp2p } from '@libp2p/interface';
|
|
4
4
|
import type { Keychain } from '@libp2p/keychain';
|
|
5
5
|
export interface IPNSRepublisherComponents {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Queue, repeatingTask } from '@libp2p/utils';
|
|
2
2
|
import { createIPNSRecord, marshalIPNSRecord, unmarshalIPNSRecord } from 'ipns';
|
|
3
3
|
import { DEFAULT_REPUBLISH_CONCURRENCY, DEFAULT_REPUBLISH_INTERVAL_MS, DEFAULT_TTL_NS } from "../constants.js";
|
|
4
|
-
import { shouldRepublish } from
|
|
4
|
+
import { shouldRepublish } from "../utils.js";
|
|
5
5
|
export class IPNSRepublisher {
|
|
6
6
|
routers;
|
|
7
7
|
localStore;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CID } from 'multiformats/cid';
|
|
2
|
-
import type { IPNSResolveResult, ResolveOptions } from '../index.
|
|
3
|
-
import type { LocalStore } from '../local-store.
|
|
4
|
-
import type { IPNSRouting } from '../routing/index.
|
|
2
|
+
import type { IPNSResolveResult, ResolveOptions } from '../index.ts';
|
|
3
|
+
import type { LocalStore } from '../local-store.ts';
|
|
4
|
+
import type { IPNSRouting } from '../routing/index.ts';
|
|
5
5
|
import type { Routing } from '@helia/interface';
|
|
6
6
|
import type { ComponentLogger, PeerId, PublicKey } from '@libp2p/interface';
|
|
7
7
|
import type { Datastore } from 'interface-datastore';
|
|
@@ -7,8 +7,8 @@ import { base58btc } from 'multiformats/bases/base58';
|
|
|
7
7
|
import { CID } from 'multiformats/cid';
|
|
8
8
|
import * as Digest from 'multiformats/hashes/digest';
|
|
9
9
|
import { DEFAULT_TTL_NS } from "../constants.js";
|
|
10
|
-
import { InvalidValueError, RecordNotFoundError, RecordsFailedValidationError, UnsupportedMultibasePrefixError, UnsupportedMultihashCodecError } from
|
|
11
|
-
import { isCodec, IDENTITY_CODEC, SHA2_256_CODEC, isLibp2pCID } from
|
|
10
|
+
import { InvalidValueError, RecordNotFoundError, RecordsFailedValidationError, UnsupportedMultibasePrefixError, UnsupportedMultihashCodecError } from "../errors.js";
|
|
11
|
+
import { isCodec, IDENTITY_CODEC, SHA2_256_CODEC, isLibp2pCID } from "../utils.js";
|
|
12
12
|
const bases = {
|
|
13
13
|
[base36.prefix]: base36,
|
|
14
14
|
[base58btc.prefix]: base58btc
|
package/dist/src/ipns.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CID } from 'multiformats/cid';
|
|
2
|
-
import type { IPNSComponents, IPNS as IPNSInterface, IPNSOptions, IPNSPublishResult, IPNSResolveResult, PublishOptions, ResolveOptions } from './index.
|
|
3
|
-
import type { IPNSRouting } from './routing/index.
|
|
2
|
+
import type { IPNSComponents, IPNS as IPNSInterface, IPNSOptions, IPNSPublishResult, IPNSResolveResult, PublishOptions, ResolveOptions } from './index.ts';
|
|
3
|
+
import type { IPNSRouting } from './routing/index.ts';
|
|
4
4
|
import type { AbortOptions, PeerId, PublicKey, Startable } from '@libp2p/interface';
|
|
5
5
|
import type { MultihashDigest } from 'multiformats/hashes/interface';
|
|
6
6
|
export declare class IPNS implements IPNSInterface, Startable {
|
package/dist/src/ipns.js
CHANGED
|
@@ -2,8 +2,8 @@ import { CID } from 'multiformats/cid';
|
|
|
2
2
|
import { IPNSPublisher } from "./ipns/publisher.js";
|
|
3
3
|
import { IPNSRepublisher } from "./ipns/republisher.js";
|
|
4
4
|
import { IPNSResolver } from "./ipns/resolver.js";
|
|
5
|
-
import { localStore } from
|
|
6
|
-
import { helia } from
|
|
5
|
+
import { localStore } from "./local-store.js";
|
|
6
|
+
import { helia } from "./routing/helia.js";
|
|
7
7
|
import { localStoreRouting } from "./routing/local-store.js";
|
|
8
8
|
export class IPNS {
|
|
9
9
|
routers;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IPNSPublishMetadata } from './pb/metadata.
|
|
2
|
-
import type { DatastoreProgressEvents, GetOptions, PutOptions } from './routing/index.
|
|
1
|
+
import { IPNSPublishMetadata } from './pb/metadata.ts';
|
|
2
|
+
import type { DatastoreProgressEvents, GetOptions, PutOptions } from './routing/index.ts';
|
|
3
3
|
import type { AbortOptions, Logger } from '@libp2p/interface';
|
|
4
4
|
import type { Datastore } from 'interface-datastore';
|
|
5
5
|
export interface GetResult {
|
package/dist/src/local-store.js
CHANGED
|
@@ -2,8 +2,8 @@ import { Record } from '@libp2p/kad-dht';
|
|
|
2
2
|
import { CustomProgressEvent } from 'progress-events';
|
|
3
3
|
import { equals as uint8ArrayEquals } from 'uint8arrays/equals';
|
|
4
4
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string';
|
|
5
|
-
import { IPNSPublishMetadata } from
|
|
6
|
-
import { dhtRoutingKey, DHT_RECORD_PREFIX, ipnsMetadataKey } from
|
|
5
|
+
import { IPNSPublishMetadata } from "./pb/metadata.js";
|
|
6
|
+
import { dhtRoutingKey, DHT_RECORD_PREFIX, ipnsMetadataKey } from "./utils.js";
|
|
7
7
|
/**
|
|
8
8
|
* Read/write IPNS records to the datastore as DHT records.
|
|
9
9
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { GetOptions, PutOptions } from './index.
|
|
2
|
-
import type { IPNSRouting } from '../index.
|
|
1
|
+
import type { GetOptions, PutOptions } from './index.ts';
|
|
2
|
+
import type { IPNSRouting } from '../index.ts';
|
|
3
3
|
import type { Routing } from '@helia/interface';
|
|
4
4
|
import type { ProgressEvent } from 'progress-events';
|
|
5
5
|
export interface HeliaRoutingComponents {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { HeliaRoutingProgressEvents } from './helia.
|
|
2
|
-
import type { DatastoreProgressEvents } from '../index.
|
|
3
|
-
import type { PubSubProgressEvents } from './pubsub.
|
|
1
|
+
import type { HeliaRoutingProgressEvents } from './helia.ts';
|
|
2
|
+
import type { DatastoreProgressEvents } from '../index.ts';
|
|
3
|
+
import type { PubSubProgressEvents } from './pubsub.ts';
|
|
4
4
|
import type { IPNSPublishMetadata } from '../pb/metadata.ts';
|
|
5
5
|
import type { AbortOptions } from '@libp2p/interface';
|
|
6
6
|
import type { ProgressOptions } from 'progress-events';
|
|
@@ -23,7 +23,7 @@ export type { DatastoreProgressEvents };
|
|
|
23
23
|
export type { HeliaRoutingProgressEvents };
|
|
24
24
|
export type { PubSubProgressEvents };
|
|
25
25
|
export type IPNSRoutingProgressEvents = DatastoreProgressEvents | HeliaRoutingProgressEvents | PubSubProgressEvents;
|
|
26
|
-
export { helia } from './helia.
|
|
27
|
-
export { pubsub } from './pubsub.
|
|
28
|
-
export type { PubsubRoutingComponents, PubSub, Message, PublishResult, PubSubEvents } from './pubsub.
|
|
26
|
+
export { helia } from './helia.ts';
|
|
27
|
+
export { pubsub } from './pubsub.ts';
|
|
28
|
+
export type { PubsubRoutingComponents, PubSub, Message, PublishResult, PubSubEvents } from './pubsub.ts';
|
|
29
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { helia } from
|
|
2
|
-
export { pubsub } from
|
|
1
|
+
export { helia } from "./helia.js";
|
|
2
|
+
export { pubsub } from "./pubsub.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IPNSRouting } from './index.
|
|
1
|
+
import type { IPNSRouting } from './index.ts';
|
|
2
2
|
import type { PeerId, TypedEventTarget, ComponentLogger } from '@libp2p/interface';
|
|
3
3
|
import type { Datastore } from 'interface-datastore';
|
|
4
4
|
import type { ProgressEvent } from 'progress-events';
|
|
@@ -7,8 +7,8 @@ import { CustomProgressEvent } from 'progress-events';
|
|
|
7
7
|
import { equals as uint8ArrayEquals } from 'uint8arrays/equals';
|
|
8
8
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string';
|
|
9
9
|
import { toString as uint8ArrayToString } from 'uint8arrays/to-string';
|
|
10
|
-
import { InvalidTopicError } from
|
|
11
|
-
import { localStore } from
|
|
10
|
+
import { InvalidTopicError } from "../errors.js";
|
|
11
|
+
import { localStore } from "../local-store.js";
|
|
12
12
|
const log = logger('helia:ipns:routing:pubsub');
|
|
13
13
|
class PubSubRouting {
|
|
14
14
|
subscriptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helia/ipns",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.9-080e4f91",
|
|
4
4
|
"description": "An implementation of IPNS for Helia",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/ipfs/helia/tree/main/packages/ipns#readme",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"test:electron-main": "aegir test -t electron-main"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@helia/interface": "
|
|
76
|
+
"@helia/interface": "6.1.1-080e4f91",
|
|
77
77
|
"@libp2p/crypto": "^5.1.7",
|
|
78
78
|
"@libp2p/interface": "^3.1.0",
|
|
79
79
|
"@libp2p/kad-dht": "^16.1.0",
|
package/src/index.ts
CHANGED
|
@@ -181,13 +181,13 @@
|
|
|
181
181
|
|
|
182
182
|
import { ipnsValidator } from 'ipns/validator'
|
|
183
183
|
import { CID } from 'multiformats/cid'
|
|
184
|
-
import { IPNSResolver as IPNSResolverClass } from './ipns/resolver.
|
|
185
|
-
import { IPNS as IPNSClass } from './ipns.
|
|
184
|
+
import { IPNSResolver as IPNSResolverClass } from './ipns/resolver.ts'
|
|
185
|
+
import { IPNS as IPNSClass } from './ipns.ts'
|
|
186
186
|
import { localStore } from './local-store.ts'
|
|
187
|
-
import { helia } from './routing/index.
|
|
187
|
+
import { helia } from './routing/index.ts'
|
|
188
188
|
import { localStoreRouting } from './routing/local-store.ts'
|
|
189
|
-
import type { IPNSResolverComponents } from './ipns/resolver.
|
|
190
|
-
import type { IPNSRouting, IPNSRoutingProgressEvents } from './routing/index.
|
|
189
|
+
import type { IPNSResolverComponents } from './ipns/resolver.ts'
|
|
190
|
+
import type { IPNSRouting, IPNSRoutingProgressEvents } from './routing/index.ts'
|
|
191
191
|
import type { Routing, HeliaEvents } from '@helia/interface'
|
|
192
192
|
import type { AbortOptions, ComponentLogger, Libp2p, PeerId, PublicKey, TypedEventEmitter } from '@libp2p/interface'
|
|
193
193
|
import type { Keychain } from '@libp2p/keychain'
|
|
@@ -355,7 +355,7 @@ export interface IPNS {
|
|
|
355
355
|
unpublish(keyName: string, options?: AbortOptions): Promise<void>
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
export type { IPNSRouting } from './routing/index.
|
|
358
|
+
export type { IPNSRouting } from './routing/index.ts'
|
|
359
359
|
|
|
360
360
|
export type { IPNSRecord } from 'ipns'
|
|
361
361
|
|
package/src/ipns/publisher.ts
CHANGED
|
@@ -4,9 +4,9 @@ import { createIPNSRecord, marshalIPNSRecord, multihashToIPNSRoutingKey, unmarsh
|
|
|
4
4
|
import { CID } from 'multiformats/cid'
|
|
5
5
|
import { CustomProgressEvent } from 'progress-events'
|
|
6
6
|
import { DEFAULT_LIFETIME_MS, DEFAULT_TTL_NS } from '../constants.ts'
|
|
7
|
-
import type { IPNSPublishResult, PublishOptions } from '../index.
|
|
8
|
-
import type { LocalStore } from '../local-store.
|
|
9
|
-
import type { IPNSRouting } from '../routing/index.
|
|
7
|
+
import type { IPNSPublishResult, PublishOptions } from '../index.ts'
|
|
8
|
+
import type { LocalStore } from '../local-store.ts'
|
|
9
|
+
import type { IPNSRouting } from '../routing/index.ts'
|
|
10
10
|
import type { AbortOptions, ComponentLogger, Libp2p, PeerId, PrivateKey, PublicKey } from '@libp2p/interface'
|
|
11
11
|
import type { Keychain } from '@libp2p/keychain'
|
|
12
12
|
import type { Datastore } from 'interface-datastore'
|
package/src/ipns/republisher.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Queue, repeatingTask } from '@libp2p/utils'
|
|
2
2
|
import { createIPNSRecord, marshalIPNSRecord, unmarshalIPNSRecord } from 'ipns'
|
|
3
3
|
import { DEFAULT_REPUBLISH_CONCURRENCY, DEFAULT_REPUBLISH_INTERVAL_MS, DEFAULT_TTL_NS } from '../constants.ts'
|
|
4
|
-
import { shouldRepublish } from '../utils.
|
|
5
|
-
import type { LocalStore } from '../local-store.
|
|
6
|
-
import type { IPNSRouting } from '../routing/index.
|
|
4
|
+
import { shouldRepublish } from '../utils.ts'
|
|
5
|
+
import type { LocalStore } from '../local-store.ts'
|
|
6
|
+
import type { IPNSRouting } from '../routing/index.ts'
|
|
7
7
|
import type { AbortOptions, ComponentLogger, Libp2p, Logger, PrivateKey } from '@libp2p/interface'
|
|
8
8
|
import type { Keychain } from '@libp2p/keychain'
|
|
9
9
|
import type { RepeatingTask } from '@libp2p/utils'
|
package/src/ipns/resolver.ts
CHANGED
|
@@ -7,11 +7,11 @@ import { base58btc } from 'multiformats/bases/base58'
|
|
|
7
7
|
import { CID } from 'multiformats/cid'
|
|
8
8
|
import * as Digest from 'multiformats/hashes/digest'
|
|
9
9
|
import { DEFAULT_TTL_NS } from '../constants.ts'
|
|
10
|
-
import { InvalidValueError, RecordNotFoundError, RecordsFailedValidationError, UnsupportedMultibasePrefixError, UnsupportedMultihashCodecError } from '../errors.
|
|
11
|
-
import { isCodec, IDENTITY_CODEC, SHA2_256_CODEC, isLibp2pCID } from '../utils.
|
|
12
|
-
import type { IPNSResolveResult, ResolveOptions, ResolveResult } from '../index.
|
|
13
|
-
import type { LocalStore } from '../local-store.
|
|
14
|
-
import type { IPNSRouting } from '../routing/index.
|
|
10
|
+
import { InvalidValueError, RecordNotFoundError, RecordsFailedValidationError, UnsupportedMultibasePrefixError, UnsupportedMultihashCodecError } from '../errors.ts'
|
|
11
|
+
import { isCodec, IDENTITY_CODEC, SHA2_256_CODEC, isLibp2pCID } from '../utils.ts'
|
|
12
|
+
import type { IPNSResolveResult, ResolveOptions, ResolveResult } from '../index.ts'
|
|
13
|
+
import type { LocalStore } from '../local-store.ts'
|
|
14
|
+
import type { IPNSRouting } from '../routing/index.ts'
|
|
15
15
|
import type { Routing } from '@helia/interface'
|
|
16
16
|
import type { ComponentLogger, Logger, PeerId, PublicKey } from '@libp2p/interface'
|
|
17
17
|
import type { Datastore } from 'interface-datastore'
|
package/src/ipns.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { CID } from 'multiformats/cid'
|
|
|
2
2
|
import { IPNSPublisher } from './ipns/publisher.ts'
|
|
3
3
|
import { IPNSRepublisher } from './ipns/republisher.ts'
|
|
4
4
|
import { IPNSResolver } from './ipns/resolver.ts'
|
|
5
|
-
import { localStore } from './local-store.
|
|
6
|
-
import { helia } from './routing/helia.
|
|
5
|
+
import { localStore } from './local-store.ts'
|
|
6
|
+
import { helia } from './routing/helia.ts'
|
|
7
7
|
import { localStoreRouting } from './routing/local-store.ts'
|
|
8
|
-
import type { IPNSComponents, IPNS as IPNSInterface, IPNSOptions, IPNSPublishResult, IPNSResolveResult, PublishOptions, ResolveOptions } from './index.
|
|
9
|
-
import type { LocalStore } from './local-store.
|
|
10
|
-
import type { IPNSRouting } from './routing/index.
|
|
8
|
+
import type { IPNSComponents, IPNS as IPNSInterface, IPNSOptions, IPNSPublishResult, IPNSResolveResult, PublishOptions, ResolveOptions } from './index.ts'
|
|
9
|
+
import type { LocalStore } from './local-store.ts'
|
|
10
|
+
import type { IPNSRouting } from './routing/index.ts'
|
|
11
11
|
import type { AbortOptions, PeerId, PublicKey, Startable } from '@libp2p/interface'
|
|
12
12
|
import type { MultihashDigest } from 'multiformats/hashes/interface'
|
|
13
13
|
|
package/src/local-store.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { Record } from '@libp2p/kad-dht'
|
|
|
2
2
|
import { CustomProgressEvent } from 'progress-events'
|
|
3
3
|
import { equals as uint8ArrayEquals } from 'uint8arrays/equals'
|
|
4
4
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
5
|
-
import { IPNSPublishMetadata } from './pb/metadata.
|
|
6
|
-
import { dhtRoutingKey, DHT_RECORD_PREFIX, ipnsMetadataKey } from './utils.
|
|
7
|
-
import type { DatastoreProgressEvents, GetOptions, PutOptions } from './routing/index.
|
|
5
|
+
import { IPNSPublishMetadata } from './pb/metadata.ts'
|
|
6
|
+
import { dhtRoutingKey, DHT_RECORD_PREFIX, ipnsMetadataKey } from './utils.ts'
|
|
7
|
+
import type { DatastoreProgressEvents, GetOptions, PutOptions } from './routing/index.ts'
|
|
8
8
|
import type { AbortOptions, Logger } from '@libp2p/interface'
|
|
9
9
|
import type { Datastore } from 'interface-datastore'
|
|
10
10
|
|
package/src/routing/helia.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CustomProgressEvent } from 'progress-events'
|
|
2
|
-
import type { GetOptions, PutOptions } from './index.
|
|
3
|
-
import type { IPNSRouting } from '../index.
|
|
2
|
+
import type { GetOptions, PutOptions } from './index.ts'
|
|
3
|
+
import type { IPNSRouting } from '../index.ts'
|
|
4
4
|
import type { Routing } from '@helia/interface'
|
|
5
5
|
import type { ProgressEvent } from 'progress-events'
|
|
6
6
|
|
package/src/routing/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { HeliaRoutingProgressEvents } from './helia.
|
|
2
|
-
import type { DatastoreProgressEvents } from '../index.
|
|
3
|
-
import type { PubSubProgressEvents } from './pubsub.
|
|
1
|
+
import type { HeliaRoutingProgressEvents } from './helia.ts'
|
|
2
|
+
import type { DatastoreProgressEvents } from '../index.ts'
|
|
3
|
+
import type { PubSubProgressEvents } from './pubsub.ts'
|
|
4
4
|
import type { IPNSPublishMetadata } from '../pb/metadata.ts'
|
|
5
5
|
import type { AbortOptions } from '@libp2p/interface'
|
|
6
6
|
import type { ProgressOptions } from 'progress-events'
|
|
@@ -32,6 +32,6 @@ export type IPNSRoutingProgressEvents =
|
|
|
32
32
|
HeliaRoutingProgressEvents |
|
|
33
33
|
PubSubProgressEvents
|
|
34
34
|
|
|
35
|
-
export { helia } from './helia.
|
|
36
|
-
export { pubsub } from './pubsub.
|
|
37
|
-
export type { PubsubRoutingComponents, PubSub, Message, PublishResult, PubSubEvents } from './pubsub.
|
|
35
|
+
export { helia } from './helia.ts'
|
|
36
|
+
export { pubsub } from './pubsub.ts'
|
|
37
|
+
export type { PubsubRoutingComponents, PubSub, Message, PublishResult, PubSubEvents } from './pubsub.ts'
|
package/src/routing/pubsub.ts
CHANGED
|
@@ -7,10 +7,10 @@ import { CustomProgressEvent } from 'progress-events'
|
|
|
7
7
|
import { equals as uint8ArrayEquals } from 'uint8arrays/equals'
|
|
8
8
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
9
9
|
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
|
|
10
|
-
import { InvalidTopicError } from '../errors.
|
|
11
|
-
import { localStore } from '../local-store.
|
|
12
|
-
import type { GetOptions, IPNSRouting, PutOptions } from './index.
|
|
13
|
-
import type { LocalStore } from '../local-store.
|
|
10
|
+
import { InvalidTopicError } from '../errors.ts'
|
|
11
|
+
import { localStore } from '../local-store.ts'
|
|
12
|
+
import type { GetOptions, IPNSRouting, PutOptions } from './index.ts'
|
|
13
|
+
import type { LocalStore } from '../local-store.ts'
|
|
14
14
|
import type { PeerId, PublicKey, TypedEventTarget, ComponentLogger } from '@libp2p/interface'
|
|
15
15
|
import type { Datastore } from 'interface-datastore'
|
|
16
16
|
import type { MultihashDigest } from 'multiformats/hashes/interface'
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"IPNS": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.IPNS.html",
|
|
3
|
-
".:IPNS": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.IPNS.html",
|
|
4
|
-
"IPNSComponents": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.IPNSComponents.html",
|
|
5
|
-
".:IPNSComponents": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.IPNSComponents.html",
|
|
6
|
-
"IPNSOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.IPNSOptions.html",
|
|
7
|
-
".:IPNSOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.IPNSOptions.html",
|
|
8
|
-
"IPNSPublishResult": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.IPNSPublishResult.html",
|
|
9
|
-
".:IPNSPublishResult": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.IPNSPublishResult.html",
|
|
10
|
-
"IPNSRecordMetadata": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.IPNSRecordMetadata.html",
|
|
11
|
-
".:IPNSRecordMetadata": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.IPNSRecordMetadata.html",
|
|
12
|
-
"IPNSResolver": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.IPNSResolver.html",
|
|
13
|
-
".:IPNSResolver": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.IPNSResolver.html",
|
|
14
|
-
"IPNSResolveResult": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.IPNSResolveResult.html",
|
|
15
|
-
".:IPNSResolveResult": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.IPNSResolveResult.html",
|
|
16
|
-
"IPNSResolverOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.IPNSResolverOptions.html",
|
|
17
|
-
".:IPNSResolverOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.IPNSResolverOptions.html",
|
|
18
|
-
"PublishOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.PublishOptions.html",
|
|
19
|
-
".:PublishOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.PublishOptions.html",
|
|
20
|
-
"ResolveOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.ResolveOptions.html",
|
|
21
|
-
".:ResolveOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.ResolveOptions.html",
|
|
22
|
-
"ResolveResult": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.ResolveResult.html",
|
|
23
|
-
".:ResolveResult": "https://ipfs.github.io/helia/interfaces/_helia_ipns.index.ResolveResult.html",
|
|
24
|
-
"DatastoreProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.index.DatastoreProgressEvents.html",
|
|
25
|
-
".:DatastoreProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.index.DatastoreProgressEvents.html",
|
|
26
|
-
"PublishProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.index.PublishProgressEvents.html",
|
|
27
|
-
".:PublishProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.index.PublishProgressEvents.html",
|
|
28
|
-
"ResolveProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.index.ResolveProgressEvents.html",
|
|
29
|
-
".:ResolveProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.index.ResolveProgressEvents.html",
|
|
30
|
-
"ipns": "https://ipfs.github.io/helia/functions/_helia_ipns.index.ipns.html",
|
|
31
|
-
".:ipns": "https://ipfs.github.io/helia/functions/_helia_ipns.index.ipns.html",
|
|
32
|
-
"ipnsResolver": "https://ipfs.github.io/helia/functions/_helia_ipns.index.ipnsResolver.html",
|
|
33
|
-
".:ipnsResolver": "https://ipfs.github.io/helia/functions/_helia_ipns.index.ipnsResolver.html",
|
|
34
|
-
"GetOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.routing.GetOptions.html",
|
|
35
|
-
"./routing:GetOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.routing.GetOptions.html",
|
|
36
|
-
"IPNSRouting": "https://ipfs.github.io/helia/interfaces/_helia_ipns.routing.IPNSRouting.html",
|
|
37
|
-
"./routing:IPNSRouting": "https://ipfs.github.io/helia/interfaces/_helia_ipns.routing.IPNSRouting.html",
|
|
38
|
-
"Message": "https://ipfs.github.io/helia/interfaces/_helia_ipns.routing.Message.html",
|
|
39
|
-
"PublishResult": "https://ipfs.github.io/helia/interfaces/_helia_ipns.routing.PublishResult.html",
|
|
40
|
-
"PubSub": "https://ipfs.github.io/helia/interfaces/_helia_ipns.routing.PubSub.html",
|
|
41
|
-
"PubSubEvents": "https://ipfs.github.io/helia/interfaces/_helia_ipns.routing.PubSubEvents.html",
|
|
42
|
-
"PubsubRoutingComponents": "https://ipfs.github.io/helia/interfaces/_helia_ipns.routing.PubsubRoutingComponents.html",
|
|
43
|
-
"PutOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.routing.PutOptions.html",
|
|
44
|
-
"./routing:PutOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.routing.PutOptions.html",
|
|
45
|
-
"HeliaRoutingProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.routing.HeliaRoutingProgressEvents.html",
|
|
46
|
-
"IPNSRoutingProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.routing.IPNSRoutingProgressEvents.html",
|
|
47
|
-
"./routing:IPNSRoutingProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.routing.IPNSRoutingProgressEvents.html",
|
|
48
|
-
"PubSubProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.routing.PubSubProgressEvents.html",
|
|
49
|
-
"helia": "https://ipfs.github.io/helia/functions/_helia_ipns.routing.helia.html",
|
|
50
|
-
"pubsub": "https://ipfs.github.io/helia/functions/_helia_ipns.routing.pubsub.html"
|
|
51
|
-
}
|