@helia/ipns 10.1.0-dc9e15bc → 10.1.1
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 +4 -4
- package/dist/index.min.js.map +3 -3
- 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/dist/typedoc-urls.json +68 -0
- package/package.json +4 -4
- package/src/pb/ipns.ts +35 -19
- package/src/pb/metadata.ts +21 -5
package/dist/src/pb/ipns.d.ts
CHANGED
|
@@ -20,39 +20,39 @@ export declare namespace IPNSEntry {
|
|
|
20
20
|
}
|
|
21
21
|
const codec: () => Codec<IPNSEntry>;
|
|
22
22
|
interface IPNSEntryValueFieldEvent {
|
|
23
|
-
field: '
|
|
23
|
+
field: '.value';
|
|
24
24
|
value: Uint8Array<ArrayBuffer>;
|
|
25
25
|
}
|
|
26
26
|
interface IPNSEntrySignatureV1FieldEvent {
|
|
27
|
-
field: '
|
|
27
|
+
field: '.signatureV1';
|
|
28
28
|
value: Uint8Array<ArrayBuffer>;
|
|
29
29
|
}
|
|
30
30
|
interface IPNSEntryValidityTypeFieldEvent {
|
|
31
|
-
field: '
|
|
31
|
+
field: '.validityType';
|
|
32
32
|
value: IPNSEntry.ValidityType;
|
|
33
33
|
}
|
|
34
34
|
interface IPNSEntryValidityFieldEvent {
|
|
35
|
-
field: '
|
|
35
|
+
field: '.validity';
|
|
36
36
|
value: Uint8Array<ArrayBuffer>;
|
|
37
37
|
}
|
|
38
38
|
interface IPNSEntrySequenceFieldEvent {
|
|
39
|
-
field: '
|
|
39
|
+
field: '.sequence';
|
|
40
40
|
value: bigint;
|
|
41
41
|
}
|
|
42
42
|
interface IPNSEntryTtlFieldEvent {
|
|
43
|
-
field: '
|
|
43
|
+
field: '.ttl';
|
|
44
44
|
value: bigint;
|
|
45
45
|
}
|
|
46
46
|
interface IPNSEntryPublicKeyFieldEvent {
|
|
47
|
-
field: '
|
|
47
|
+
field: '.publicKey';
|
|
48
48
|
value: Uint8Array<ArrayBuffer>;
|
|
49
49
|
}
|
|
50
50
|
interface IPNSEntrySignatureV2FieldEvent {
|
|
51
|
-
field: '
|
|
51
|
+
field: '.signatureV2';
|
|
52
52
|
value: Uint8Array<ArrayBuffer>;
|
|
53
53
|
}
|
|
54
54
|
interface IPNSEntryDataFieldEvent {
|
|
55
|
-
field: '
|
|
55
|
+
field: '.data';
|
|
56
56
|
value: Uint8Array<ArrayBuffer>;
|
|
57
57
|
}
|
|
58
58
|
function encode(obj: Partial<IPNSEntry>): Uint8Array<ArrayBuffer>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ipns.d.ts","sourceRoot":"","sources":["../../../src/pb/ipns.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;IAC/B,WAAW,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;IACrC,YAAY,CAAC,EAAE,SAAS,CAAC,YAAY,CAAA;IACrC,QAAQ,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;IACnC,WAAW,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;IACrC,IAAI,CAAC,EAAE,UAAU,CAA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A4B,GAAG,8BAA8B,GAAG,uBAAuB,CAAC,CAEhX;CACF"}
|
package/dist/src/pb/ipns.js
CHANGED
|
@@ -109,70 +109,77 @@ export var IPNSEntry;
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
return obj;
|
|
112
|
-
}, function* (reader,
|
|
112
|
+
}, function* (reader, prefix, length, opts = {}) {
|
|
113
113
|
const end = length == null ? reader.len : reader.pos + length;
|
|
114
|
+
if (prefix !== '.') {
|
|
115
|
+
yield {
|
|
116
|
+
field: prefix.endsWith('.') ? prefix.substring(0, prefix.length - 1) : prefix,
|
|
117
|
+
type: 'start',
|
|
118
|
+
message: 'IPNSEntry'
|
|
119
|
+
};
|
|
120
|
+
}
|
|
114
121
|
while (reader.pos < end) {
|
|
115
122
|
const tag = reader.uint32();
|
|
116
123
|
switch (tag >>> 3) {
|
|
117
124
|
case 1: {
|
|
118
125
|
yield {
|
|
119
|
-
field: `${prefix}
|
|
126
|
+
field: `${prefix}value`,
|
|
120
127
|
value: reader.bytes()
|
|
121
128
|
};
|
|
122
129
|
break;
|
|
123
130
|
}
|
|
124
131
|
case 2: {
|
|
125
132
|
yield {
|
|
126
|
-
field: `${prefix}
|
|
133
|
+
field: `${prefix}signatureV1`,
|
|
127
134
|
value: reader.bytes()
|
|
128
135
|
};
|
|
129
136
|
break;
|
|
130
137
|
}
|
|
131
138
|
case 3: {
|
|
132
139
|
yield {
|
|
133
|
-
field: `${prefix}
|
|
140
|
+
field: `${prefix}validityType`,
|
|
134
141
|
value: IPNSEntry.ValidityType.codec().decode(reader)
|
|
135
142
|
};
|
|
136
143
|
break;
|
|
137
144
|
}
|
|
138
145
|
case 4: {
|
|
139
146
|
yield {
|
|
140
|
-
field: `${prefix}
|
|
147
|
+
field: `${prefix}validity`,
|
|
141
148
|
value: reader.bytes()
|
|
142
149
|
};
|
|
143
150
|
break;
|
|
144
151
|
}
|
|
145
152
|
case 5: {
|
|
146
153
|
yield {
|
|
147
|
-
field: `${prefix}
|
|
154
|
+
field: `${prefix}sequence`,
|
|
148
155
|
value: reader.uint64()
|
|
149
156
|
};
|
|
150
157
|
break;
|
|
151
158
|
}
|
|
152
159
|
case 6: {
|
|
153
160
|
yield {
|
|
154
|
-
field: `${prefix}
|
|
161
|
+
field: `${prefix}ttl`,
|
|
155
162
|
value: reader.uint64()
|
|
156
163
|
};
|
|
157
164
|
break;
|
|
158
165
|
}
|
|
159
166
|
case 7: {
|
|
160
167
|
yield {
|
|
161
|
-
field: `${prefix}
|
|
168
|
+
field: `${prefix}publicKey`,
|
|
162
169
|
value: reader.bytes()
|
|
163
170
|
};
|
|
164
171
|
break;
|
|
165
172
|
}
|
|
166
173
|
case 8: {
|
|
167
174
|
yield {
|
|
168
|
-
field: `${prefix}
|
|
175
|
+
field: `${prefix}signatureV2`,
|
|
169
176
|
value: reader.bytes()
|
|
170
177
|
};
|
|
171
178
|
break;
|
|
172
179
|
}
|
|
173
180
|
case 9: {
|
|
174
181
|
yield {
|
|
175
|
-
field: `${prefix}
|
|
182
|
+
field: `${prefix}data`,
|
|
176
183
|
value: reader.bytes()
|
|
177
184
|
};
|
|
178
185
|
break;
|
|
@@ -183,6 +190,13 @@ export var IPNSEntry;
|
|
|
183
190
|
}
|
|
184
191
|
}
|
|
185
192
|
}
|
|
193
|
+
if (prefix !== '.') {
|
|
194
|
+
yield {
|
|
195
|
+
field: prefix.endsWith('.') ? prefix.substring(0, prefix.length - 1) : prefix,
|
|
196
|
+
type: 'end',
|
|
197
|
+
message: 'IPNSEntry'
|
|
198
|
+
};
|
|
199
|
+
}
|
|
186
200
|
});
|
|
187
201
|
}
|
|
188
202
|
return _codec;
|
package/dist/src/pb/ipns.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ipns.js","sourceRoot":"","sources":["../../../src/pb/ipns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,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AAa,CAAC,GAAG,EAAE,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,CAAA;IACpD,CAAC;IAFe,gBAAM,SAErB,CAAA;IAED,SAAgB,MAAM,CAAE,GAAgC,EAAE,IAA+B;QACvF,OAAO,aAAa,CAAC,GAAG,EAAE,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,CAAA;IACpD,CAAC;IAFe,gBAAM,SAErB,CAAA;AACH,CAAC,EAvRgB,SAAS,KAAT,SAAS,QAuRzB"}
|
|
@@ -7,11 +7,11 @@ export interface IPNSPublishMetadata {
|
|
|
7
7
|
export declare namespace IPNSPublishMetadata {
|
|
8
8
|
const codec: () => Codec<IPNSPublishMetadata>;
|
|
9
9
|
interface IPNSPublishMetadataKeyNameFieldEvent {
|
|
10
|
-
field: '
|
|
10
|
+
field: '.keyName';
|
|
11
11
|
value: string;
|
|
12
12
|
}
|
|
13
13
|
interface IPNSPublishMetadataLifetimeFieldEvent {
|
|
14
|
-
field: '
|
|
14
|
+
field: '.lifetime';
|
|
15
15
|
value: number;
|
|
16
16
|
}
|
|
17
17
|
function encode(obj: Partial<IPNSPublishMetadata>): Uint8Array<ArrayBuffer>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/pb/metadata.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,yBAAiB,mBAAmB,CAAC;IAG5B,MAAM,KAAK,QAAO,KAAK,CAAC,mBAAmB,CA+
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/pb/metadata.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,yBAAiB,mBAAmB,CAAC;IAG5B,MAAM,KAAK,QAAO,KAAK,CAAC,mBAAmB,CA+FjD,CAAA;IAED,UAAiB,oCAAoC;QACnD,KAAK,EAAE,UAAU,CAAA;QACjB,KAAK,EAAE,MAAM,CAAA;KACd;IAED,UAAiB,qCAAqC;QACpD,KAAK,EAAE,WAAW,CAAA;QAClB,KAAK,EAAE,MAAM,CAAA;KACd;IAED,SAAgB,MAAM,CAAE,GAAG,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,UAAU,CAAC,WAAW,CAAC,CAElF;IAED,SAAgB,MAAM,CAAE,GAAG,EAAE,UAAU,GAAG,cAAc,EAAE,IAAI,CAAC,EAAE,aAAa,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,CAExH;IAED,SAAgB,MAAM,CAAE,GAAG,EAAE,UAAU,GAAG,cAAc,EAAE,IAAI,CAAC,EAAE,aAAa,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,oCAAoC,GAAG,qCAAqC,CAAC,CAE5L;CACF"}
|
package/dist/src/pb/metadata.js
CHANGED
|
@@ -43,21 +43,28 @@ export var IPNSPublishMetadata;
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
return obj;
|
|
46
|
-
}, function* (reader,
|
|
46
|
+
}, function* (reader, prefix, length, opts = {}) {
|
|
47
47
|
const end = length == null ? reader.len : reader.pos + length;
|
|
48
|
+
if (prefix !== '.') {
|
|
49
|
+
yield {
|
|
50
|
+
field: prefix.endsWith('.') ? prefix.substring(0, prefix.length - 1) : prefix,
|
|
51
|
+
type: 'start',
|
|
52
|
+
message: 'IPNSPublishMetadata'
|
|
53
|
+
};
|
|
54
|
+
}
|
|
48
55
|
while (reader.pos < end) {
|
|
49
56
|
const tag = reader.uint32();
|
|
50
57
|
switch (tag >>> 3) {
|
|
51
58
|
case 1: {
|
|
52
59
|
yield {
|
|
53
|
-
field: `${prefix}
|
|
60
|
+
field: `${prefix}keyName`,
|
|
54
61
|
value: reader.string()
|
|
55
62
|
};
|
|
56
63
|
break;
|
|
57
64
|
}
|
|
58
65
|
case 2: {
|
|
59
66
|
yield {
|
|
60
|
-
field: `${prefix}
|
|
67
|
+
field: `${prefix}lifetime`,
|
|
61
68
|
value: reader.uint32()
|
|
62
69
|
};
|
|
63
70
|
break;
|
|
@@ -68,6 +75,13 @@ export var IPNSPublishMetadata;
|
|
|
68
75
|
}
|
|
69
76
|
}
|
|
70
77
|
}
|
|
78
|
+
if (prefix !== '.') {
|
|
79
|
+
yield {
|
|
80
|
+
field: prefix.endsWith('.') ? prefix.substring(0, prefix.length - 1) : prefix,
|
|
81
|
+
type: 'end',
|
|
82
|
+
message: 'IPNSPublishMetadata'
|
|
83
|
+
};
|
|
84
|
+
}
|
|
71
85
|
});
|
|
72
86
|
}
|
|
73
87
|
return _codec;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../src/pb/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAStF,MAAM,KAAW,mBAAmB,
|
|
1
|
+
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../src/pb/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAStF,MAAM,KAAW,mBAAmB,CAyHnC;AAzHD,WAAiB,mBAAmB;IAClC,IAAI,MAAkC,CAAA;IAEzB,yBAAK,GAAG,GAA+B,EAAE;QACpD,I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AAC,EAzHgB,mBAAmB,KAAnB,mBAAmB,QAyHnC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helia/ipns",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.1",
|
|
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",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"test:electron-main": "aegir test -t electron-main"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@helia/interface": "7.1.1
|
|
53
|
+
"@helia/interface": "^7.1.1",
|
|
54
54
|
"@ipld/dag-cbor": "^10.0.1",
|
|
55
55
|
"@ipshipyard/crypto": "^1.1.0",
|
|
56
56
|
"@ipshipyard/keychain": "^1.0.2",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"interface-datastore": "^10.0.1",
|
|
67
67
|
"multiformats": "^14.0.0",
|
|
68
68
|
"progress-events": "^1.1.0",
|
|
69
|
-
"protons-runtime": "^7.
|
|
69
|
+
"protons-runtime": "^7.1.0",
|
|
70
70
|
"race-signal": "^2.0.0",
|
|
71
71
|
"timestamp-nano": "^1.0.1",
|
|
72
72
|
"uint8arraylist": "^3.0.2",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"datastore-core": "^12.0.1",
|
|
79
79
|
"it-drain": "^3.0.12",
|
|
80
80
|
"it-last": "^3.0.11",
|
|
81
|
-
"protons": "^9.0
|
|
81
|
+
"protons": "^9.1.0",
|
|
82
82
|
"sinon": "^22.0.0",
|
|
83
83
|
"sinon-ts": "^2.0.0"
|
|
84
84
|
},
|
package/src/pb/ipns.ts
CHANGED
|
@@ -139,72 +139,80 @@ export namespace IPNSEntry {
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
return obj
|
|
142
|
-
}, function * (reader,
|
|
142
|
+
}, function * (reader, prefix, length, opts = {}) {
|
|
143
143
|
const end = length == null ? reader.len : reader.pos + length
|
|
144
144
|
|
|
145
|
+
if (prefix !== '.') {
|
|
146
|
+
yield {
|
|
147
|
+
field: prefix.endsWith('.') ? prefix.substring(0, prefix.length - 1) : prefix,
|
|
148
|
+
type: 'start',
|
|
149
|
+
message: 'IPNSEntry'
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
145
153
|
while (reader.pos < end) {
|
|
146
154
|
const tag = reader.uint32()
|
|
147
155
|
|
|
148
156
|
switch (tag >>> 3) {
|
|
149
157
|
case 1: {
|
|
150
158
|
yield {
|
|
151
|
-
field: `${prefix}
|
|
159
|
+
field: `${prefix}value`,
|
|
152
160
|
value: reader.bytes()
|
|
153
161
|
}
|
|
154
162
|
break
|
|
155
163
|
}
|
|
156
164
|
case 2: {
|
|
157
165
|
yield {
|
|
158
|
-
field: `${prefix}
|
|
166
|
+
field: `${prefix}signatureV1`,
|
|
159
167
|
value: reader.bytes()
|
|
160
168
|
}
|
|
161
169
|
break
|
|
162
170
|
}
|
|
163
171
|
case 3: {
|
|
164
172
|
yield {
|
|
165
|
-
field: `${prefix}
|
|
173
|
+
field: `${prefix}validityType`,
|
|
166
174
|
value: IPNSEntry.ValidityType.codec().decode(reader)
|
|
167
175
|
}
|
|
168
176
|
break
|
|
169
177
|
}
|
|
170
178
|
case 4: {
|
|
171
179
|
yield {
|
|
172
|
-
field: `${prefix}
|
|
180
|
+
field: `${prefix}validity`,
|
|
173
181
|
value: reader.bytes()
|
|
174
182
|
}
|
|
175
183
|
break
|
|
176
184
|
}
|
|
177
185
|
case 5: {
|
|
178
186
|
yield {
|
|
179
|
-
field: `${prefix}
|
|
187
|
+
field: `${prefix}sequence`,
|
|
180
188
|
value: reader.uint64()
|
|
181
189
|
}
|
|
182
190
|
break
|
|
183
191
|
}
|
|
184
192
|
case 6: {
|
|
185
193
|
yield {
|
|
186
|
-
field: `${prefix}
|
|
194
|
+
field: `${prefix}ttl`,
|
|
187
195
|
value: reader.uint64()
|
|
188
196
|
}
|
|
189
197
|
break
|
|
190
198
|
}
|
|
191
199
|
case 7: {
|
|
192
200
|
yield {
|
|
193
|
-
field: `${prefix}
|
|
201
|
+
field: `${prefix}publicKey`,
|
|
194
202
|
value: reader.bytes()
|
|
195
203
|
}
|
|
196
204
|
break
|
|
197
205
|
}
|
|
198
206
|
case 8: {
|
|
199
207
|
yield {
|
|
200
|
-
field: `${prefix}
|
|
208
|
+
field: `${prefix}signatureV2`,
|
|
201
209
|
value: reader.bytes()
|
|
202
210
|
}
|
|
203
211
|
break
|
|
204
212
|
}
|
|
205
213
|
case 9: {
|
|
206
214
|
yield {
|
|
207
|
-
field: `${prefix}
|
|
215
|
+
field: `${prefix}data`,
|
|
208
216
|
value: reader.bytes()
|
|
209
217
|
}
|
|
210
218
|
break
|
|
@@ -215,6 +223,14 @@ export namespace IPNSEntry {
|
|
|
215
223
|
}
|
|
216
224
|
}
|
|
217
225
|
}
|
|
226
|
+
|
|
227
|
+
if (prefix !== '.') {
|
|
228
|
+
yield {
|
|
229
|
+
field: prefix.endsWith('.') ? prefix.substring(0, prefix.length - 1) : prefix,
|
|
230
|
+
type: 'end',
|
|
231
|
+
message: 'IPNSEntry'
|
|
232
|
+
}
|
|
233
|
+
}
|
|
218
234
|
})
|
|
219
235
|
}
|
|
220
236
|
|
|
@@ -222,47 +238,47 @@ export namespace IPNSEntry {
|
|
|
222
238
|
}
|
|
223
239
|
|
|
224
240
|
export interface IPNSEntryValueFieldEvent {
|
|
225
|
-
field: '
|
|
241
|
+
field: '.value'
|
|
226
242
|
value: Uint8Array<ArrayBuffer>
|
|
227
243
|
}
|
|
228
244
|
|
|
229
245
|
export interface IPNSEntrySignatureV1FieldEvent {
|
|
230
|
-
field: '
|
|
246
|
+
field: '.signatureV1'
|
|
231
247
|
value: Uint8Array<ArrayBuffer>
|
|
232
248
|
}
|
|
233
249
|
|
|
234
250
|
export interface IPNSEntryValidityTypeFieldEvent {
|
|
235
|
-
field: '
|
|
251
|
+
field: '.validityType'
|
|
236
252
|
value: IPNSEntry.ValidityType
|
|
237
253
|
}
|
|
238
254
|
|
|
239
255
|
export interface IPNSEntryValidityFieldEvent {
|
|
240
|
-
field: '
|
|
256
|
+
field: '.validity'
|
|
241
257
|
value: Uint8Array<ArrayBuffer>
|
|
242
258
|
}
|
|
243
259
|
|
|
244
260
|
export interface IPNSEntrySequenceFieldEvent {
|
|
245
|
-
field: '
|
|
261
|
+
field: '.sequence'
|
|
246
262
|
value: bigint
|
|
247
263
|
}
|
|
248
264
|
|
|
249
265
|
export interface IPNSEntryTtlFieldEvent {
|
|
250
|
-
field: '
|
|
266
|
+
field: '.ttl'
|
|
251
267
|
value: bigint
|
|
252
268
|
}
|
|
253
269
|
|
|
254
270
|
export interface IPNSEntryPublicKeyFieldEvent {
|
|
255
|
-
field: '
|
|
271
|
+
field: '.publicKey'
|
|
256
272
|
value: Uint8Array<ArrayBuffer>
|
|
257
273
|
}
|
|
258
274
|
|
|
259
275
|
export interface IPNSEntrySignatureV2FieldEvent {
|
|
260
|
-
field: '
|
|
276
|
+
field: '.signatureV2'
|
|
261
277
|
value: Uint8Array<ArrayBuffer>
|
|
262
278
|
}
|
|
263
279
|
|
|
264
280
|
export interface IPNSEntryDataFieldEvent {
|
|
265
|
-
field: '
|
|
281
|
+
field: '.data'
|
|
266
282
|
value: Uint8Array<ArrayBuffer>
|
|
267
283
|
}
|
|
268
284
|
|
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
|
|