@helia/ipns 10.0.8 → 10.1.0-16fc74d3
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/README.md +11 -13
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +3 -3
- package/dist/src/index.d.ts +11 -13
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +11 -13
- package/dist/src/index.js.map +1 -1
- package/dist/src/pb/ipns.d.ts +9 -9
- package/dist/src/pb/ipns.d.ts.map +1 -1
- package/dist/src/pb/ipns.js +24 -10
- package/dist/src/pb/ipns.js.map +1 -1
- package/dist/src/pb/metadata.d.ts +2 -2
- package/dist/src/pb/metadata.d.ts.map +1 -1
- package/dist/src/pb/metadata.js +17 -3
- package/dist/src/pb/metadata.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +11 -13
- package/src/pb/ipns.ts +35 -19
- package/src/pb/metadata.ts +21 -5
- package/dist/typedoc-urls.json +0 -68
package/src/pb/metadata.ts
CHANGED
|
@@ -58,23 +58,31 @@ export namespace IPNSPublishMetadata {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
return obj
|
|
61
|
-
}, function * (reader,
|
|
61
|
+
}, function * (reader, prefix, length, opts = {}) {
|
|
62
62
|
const end = length == null ? reader.len : reader.pos + length
|
|
63
63
|
|
|
64
|
+
if (prefix !== '.') {
|
|
65
|
+
yield {
|
|
66
|
+
field: prefix.endsWith('.') ? prefix.substring(0, prefix.length - 1) : prefix,
|
|
67
|
+
type: 'start',
|
|
68
|
+
message: 'IPNSPublishMetadata'
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
64
72
|
while (reader.pos < end) {
|
|
65
73
|
const tag = reader.uint32()
|
|
66
74
|
|
|
67
75
|
switch (tag >>> 3) {
|
|
68
76
|
case 1: {
|
|
69
77
|
yield {
|
|
70
|
-
field: `${prefix}
|
|
78
|
+
field: `${prefix}keyName`,
|
|
71
79
|
value: reader.string()
|
|
72
80
|
}
|
|
73
81
|
break
|
|
74
82
|
}
|
|
75
83
|
case 2: {
|
|
76
84
|
yield {
|
|
77
|
-
field: `${prefix}
|
|
85
|
+
field: `${prefix}lifetime`,
|
|
78
86
|
value: reader.uint32()
|
|
79
87
|
}
|
|
80
88
|
break
|
|
@@ -85,6 +93,14 @@ export namespace IPNSPublishMetadata {
|
|
|
85
93
|
}
|
|
86
94
|
}
|
|
87
95
|
}
|
|
96
|
+
|
|
97
|
+
if (prefix !== '.') {
|
|
98
|
+
yield {
|
|
99
|
+
field: prefix.endsWith('.') ? prefix.substring(0, prefix.length - 1) : prefix,
|
|
100
|
+
type: 'end',
|
|
101
|
+
message: 'IPNSPublishMetadata'
|
|
102
|
+
}
|
|
103
|
+
}
|
|
88
104
|
})
|
|
89
105
|
}
|
|
90
106
|
|
|
@@ -92,12 +108,12 @@ export namespace IPNSPublishMetadata {
|
|
|
92
108
|
}
|
|
93
109
|
|
|
94
110
|
export interface IPNSPublishMetadataKeyNameFieldEvent {
|
|
95
|
-
field: '
|
|
111
|
+
field: '.keyName'
|
|
96
112
|
value: string
|
|
97
113
|
}
|
|
98
114
|
|
|
99
115
|
export interface IPNSPublishMetadataLifetimeFieldEvent {
|
|
100
|
-
field: '
|
|
116
|
+
field: '.lifetime'
|
|
101
117
|
value: number
|
|
102
118
|
}
|
|
103
119
|
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"codec": "https://ipfs.github.io/helia/functions/_helia_ipns.IPNSEntry.ValidityType.codec.html",
|
|
3
|
-
"ValidityType": "https://ipfs.github.io/helia/enums/_helia_ipns.IPNSEntry.ValidityType.html",
|
|
4
|
-
"IPNSEntryDataFieldEvent": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSEntry.IPNSEntryDataFieldEvent.html",
|
|
5
|
-
"IPNSEntryPublicKeyFieldEvent": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSEntry.IPNSEntryPublicKeyFieldEvent.html",
|
|
6
|
-
"IPNSEntrySequenceFieldEvent": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSEntry.IPNSEntrySequenceFieldEvent.html",
|
|
7
|
-
"IPNSEntrySignatureV1FieldEvent": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSEntry.IPNSEntrySignatureV1FieldEvent.html",
|
|
8
|
-
"IPNSEntrySignatureV2FieldEvent": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSEntry.IPNSEntrySignatureV2FieldEvent.html",
|
|
9
|
-
"IPNSEntryTtlFieldEvent": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSEntry.IPNSEntryTtlFieldEvent.html",
|
|
10
|
-
"IPNSEntryValidityFieldEvent": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSEntry.IPNSEntryValidityFieldEvent.html",
|
|
11
|
-
"IPNSEntryValidityTypeFieldEvent": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSEntry.IPNSEntryValidityTypeFieldEvent.html",
|
|
12
|
-
"IPNSEntryValueFieldEvent": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSEntry.IPNSEntryValueFieldEvent.html",
|
|
13
|
-
"decode": "https://ipfs.github.io/helia/functions/_helia_ipns.IPNSEntry.decode.html",
|
|
14
|
-
"encode": "https://ipfs.github.io/helia/functions/_helia_ipns.IPNSEntry.encode.html",
|
|
15
|
-
"stream": "https://ipfs.github.io/helia/functions/_helia_ipns.IPNSEntry.stream.html",
|
|
16
|
-
"CreateIPNSRecordOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.CreateIPNSRecordOptions.html",
|
|
17
|
-
"IPNS": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNS.html",
|
|
18
|
-
".:IPNS": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNS.html",
|
|
19
|
-
"IPNSComponents": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSComponents.html",
|
|
20
|
-
".:IPNSComponents": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSComponents.html",
|
|
21
|
-
"IPNSEntry": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSEntry.html",
|
|
22
|
-
"IPNSOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSOptions.html",
|
|
23
|
-
".:IPNSOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSOptions.html",
|
|
24
|
-
"IPNSPublishResult": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSPublishResult.html",
|
|
25
|
-
".:IPNSPublishResult": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSPublishResult.html",
|
|
26
|
-
"IPNSRecordData": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSRecordData.html",
|
|
27
|
-
".:IPNSRecordData": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSRecordData.html",
|
|
28
|
-
"IPNSResolveOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSResolveOptions.html",
|
|
29
|
-
".:IPNSResolveOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSResolveOptions.html",
|
|
30
|
-
"IPNSResolver": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSResolver.html",
|
|
31
|
-
".:IPNSResolver": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSResolver.html",
|
|
32
|
-
"IPNSResolveResult": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSResolveResult.html",
|
|
33
|
-
".:IPNSResolveResult": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSResolveResult.html",
|
|
34
|
-
"IPNSResolverOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSResolverOptions.html",
|
|
35
|
-
".:IPNSResolverOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSResolverOptions.html",
|
|
36
|
-
"IPNSRouting": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSRouting.html",
|
|
37
|
-
"IPNSRoutingGetOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSRoutingGetOptions.html",
|
|
38
|
-
"IPNSRoutingPutOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.IPNSRoutingPutOptions.html",
|
|
39
|
-
"PublishOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.PublishOptions.html",
|
|
40
|
-
".:PublishOptions": "https://ipfs.github.io/helia/interfaces/_helia_ipns.PublishOptions.html",
|
|
41
|
-
"PublishResult": "https://ipfs.github.io/helia/interfaces/_helia_ipns.PublishResult.html",
|
|
42
|
-
"PubSub": "https://ipfs.github.io/helia/interfaces/_helia_ipns.PubSub.html",
|
|
43
|
-
"PubSubEvents": "https://ipfs.github.io/helia/interfaces/_helia_ipns.PubSubEvents.html",
|
|
44
|
-
"PubSubMessage": "https://ipfs.github.io/helia/interfaces/_helia_ipns.PubSubMessage.html",
|
|
45
|
-
"PubsubRoutingComponents": "https://ipfs.github.io/helia/interfaces/_helia_ipns.PubsubRoutingComponents.html",
|
|
46
|
-
"PubSubSubscription": "https://ipfs.github.io/helia/interfaces/_helia_ipns.PubSubSubscription.html",
|
|
47
|
-
"PubSubSubscriptionChangeData": "https://ipfs.github.io/helia/interfaces/_helia_ipns.PubSubSubscriptionChangeData.html",
|
|
48
|
-
"DatastoreProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.DatastoreProgressEvents.html",
|
|
49
|
-
".:DatastoreProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.DatastoreProgressEvents.html",
|
|
50
|
-
"HeliaRoutingProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.HeliaRoutingProgressEvents.html",
|
|
51
|
-
"IPNSRoutingProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.IPNSRoutingProgressEvents.html",
|
|
52
|
-
"PublishProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.PublishProgressEvents.html",
|
|
53
|
-
".:PublishProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.PublishProgressEvents.html",
|
|
54
|
-
"PubSubProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.PubSubProgressEvents.html",
|
|
55
|
-
"ResolveProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.ResolveProgressEvents.html",
|
|
56
|
-
".:ResolveProgressEvents": "https://ipfs.github.io/helia/types/_helia_ipns.ResolveProgressEvents.html",
|
|
57
|
-
"createIPNSRecord": "https://ipfs.github.io/helia/functions/_helia_ipns.createIPNSRecord.html",
|
|
58
|
-
"heliaIPNSRouting": "https://ipfs.github.io/helia/functions/_helia_ipns.heliaIPNSRouting.html",
|
|
59
|
-
"ipns": "https://ipfs.github.io/helia/functions/_helia_ipns.ipns.html",
|
|
60
|
-
".:ipns": "https://ipfs.github.io/helia/functions/_helia_ipns.ipns.html",
|
|
61
|
-
"ipnsResolver": "https://ipfs.github.io/helia/functions/_helia_ipns.ipnsResolver.html",
|
|
62
|
-
".:ipnsResolver": "https://ipfs.github.io/helia/functions/_helia_ipns.ipnsResolver.html",
|
|
63
|
-
"ipnsSelector": "https://ipfs.github.io/helia/functions/_helia_ipns.ipnsSelector.html",
|
|
64
|
-
"ipnsValidator": "https://ipfs.github.io/helia/functions/_helia_ipns.ipnsValidator.html",
|
|
65
|
-
"multihashFromIPNSRoutingKey": "https://ipfs.github.io/helia/functions/_helia_ipns.multihashFromIPNSRoutingKey.html",
|
|
66
|
-
"multihashToIPNSRoutingKey": "https://ipfs.github.io/helia/functions/_helia_ipns.multihashToIPNSRoutingKey.html",
|
|
67
|
-
"pubSubIPNSRouting": "https://ipfs.github.io/helia/functions/_helia_ipns.pubSubIPNSRouting.html"
|
|
68
|
-
}
|