@wovin/core 0.1.25 → 0.1.27
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/applog.min.js +2 -1
- package/dist/blockstore/index.d.ts +21 -0
- package/dist/blockstore/index.d.ts.map +1 -0
- package/dist/blockstore.d.ts +2 -0
- package/dist/blockstore.d.ts.map +1 -0
- package/dist/blockstore.min.js +26 -0
- package/dist/blockstore.min.js.map +1 -0
- package/dist/{chunk-ZGU3O24G.min.js → chunk-CWVWWFE3.min.js} +6 -6
- package/dist/chunk-CWVWWFE3.min.js.map +1 -0
- package/dist/{chunk-USEP3ZEM.min.js → chunk-LHD7NNK6.min.js} +2 -2
- package/dist/{chunk-ITZTLALV.min.js → chunk-MCMSRRF7.min.js} +2 -2
- package/dist/chunk-MCMSRRF7.min.js.map +1 -0
- package/dist/{chunk-SA7YLEF6.min.js → chunk-N2LOFNFT.min.js} +20 -8
- package/dist/chunk-N2LOFNFT.min.js.map +1 -0
- package/dist/{chunk-CWGXD56S.min.js → chunk-NKGFXL72.min.js} +18 -13
- package/dist/{chunk-CWGXD56S.min.js.map → chunk-NKGFXL72.min.js.map} +1 -1
- package/dist/chunk-QO2KMGDN.min.js +3771 -0
- package/dist/chunk-QO2KMGDN.min.js.map +1 -0
- package/dist/{chunk-R7EMHBM3.min.js → chunk-XWBLRTV5.min.js} +783 -4064
- package/dist/chunk-XWBLRTV5.min.js.map +1 -0
- package/dist/{chunk-HHFNRKOI.min.js → chunk-YUH56CPQ.min.js} +2 -2
- package/dist/index.min.js +16 -13
- package/dist/ipfs.min.js +5 -4
- package/dist/ipns/ipns-record.d.ts +34 -0
- package/dist/ipns/ipns-record.d.ts.map +1 -0
- package/dist/ipns.d.ts +2 -0
- package/dist/ipns.d.ts.map +1 -0
- package/dist/ipns.min.js +6419 -0
- package/dist/ipns.min.js.map +1 -0
- package/dist/pubsub/pubsub-types.d.ts +1 -1
- package/dist/pubsub/pubsub-types.d.ts.map +1 -1
- package/dist/pubsub/snap-push.d.ts +2 -2
- package/dist/pubsub/snap-push.d.ts.map +1 -1
- package/dist/pubsub.min.js +5 -4
- package/dist/query.min.js +4 -3
- package/dist/retrieve/update-thread.d.ts +8 -1
- package/dist/retrieve/update-thread.d.ts.map +1 -1
- package/dist/retrieve.min.js +9 -6
- package/dist/thread.min.js +2 -1
- package/package.json +11 -1
- package/dist/chunk-ITZTLALV.min.js.map +0 -1
- package/dist/chunk-R7EMHBM3.min.js.map +0 -1
- package/dist/chunk-SA7YLEF6.min.js.map +0 -1
- package/dist/chunk-ZGU3O24G.min.js.map +0 -1
- /package/dist/{chunk-USEP3ZEM.min.js.map → chunk-LHD7NNK6.min.js.map} +0 -0
- /package/dist/{chunk-HHFNRKOI.min.js.map → chunk-YUH56CPQ.min.js.map} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
createDebugName,
|
|
5
5
|
g,
|
|
6
6
|
observableArrayMap
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XWBLRTV5.min.js";
|
|
8
8
|
import {
|
|
9
9
|
autorun,
|
|
10
10
|
comparer,
|
|
@@ -62,4 +62,4 @@ export {
|
|
|
62
62
|
includes,
|
|
63
63
|
includedIn
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
65
|
+
//# sourceMappingURL=chunk-YUH56CPQ.min.js.map
|
package/dist/index.min.js
CHANGED
|
@@ -1,22 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
updateThreadFromSnapshot,
|
|
3
|
+
withBlockCache
|
|
4
|
+
} from "./chunk-N2LOFNFT.min.js";
|
|
1
5
|
import "./chunk-5MMGBK2U.min.js";
|
|
2
6
|
import "./chunk-7IDQIMQO.min.js";
|
|
3
7
|
import {
|
|
4
8
|
fetchSnapshotChainUntil
|
|
5
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CWVWWFE3.min.js";
|
|
6
10
|
import {
|
|
7
11
|
agentToShortHash,
|
|
8
12
|
integratePub,
|
|
9
13
|
isShare,
|
|
10
14
|
isSubscription
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import {
|
|
13
|
-
includedIn,
|
|
14
|
-
includes,
|
|
15
|
-
queryDivergencesByPrev
|
|
16
|
-
} from "./chunk-HHFNRKOI.min.js";
|
|
17
|
-
import {
|
|
18
|
-
updateThreadFromSnapshot
|
|
19
|
-
} from "./chunk-SA7YLEF6.min.js";
|
|
15
|
+
} from "./chunk-MCMSRRF7.min.js";
|
|
20
16
|
import {
|
|
21
17
|
carFromBlob,
|
|
22
18
|
chunkApplogs,
|
|
@@ -33,8 +29,13 @@ import {
|
|
|
33
29
|
prepareSnapshotForPush,
|
|
34
30
|
streamReaderToIterable,
|
|
35
31
|
unchunkApplogsBlock
|
|
36
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NKGFXL72.min.js";
|
|
37
33
|
import "./chunk-QPGEBDMJ.min.js";
|
|
34
|
+
import {
|
|
35
|
+
includedIn,
|
|
36
|
+
includes,
|
|
37
|
+
queryDivergencesByPrev
|
|
38
|
+
} from "./chunk-YUH56CPQ.min.js";
|
|
38
39
|
import {
|
|
39
40
|
QueryNode,
|
|
40
41
|
QueryResult,
|
|
@@ -61,7 +62,7 @@ import {
|
|
|
61
62
|
throwOnTimeout,
|
|
62
63
|
withTimeout,
|
|
63
64
|
withoutDeleted
|
|
64
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-LHD7NNK6.min.js";
|
|
65
66
|
import {
|
|
66
67
|
AppLogNoCidTB,
|
|
67
68
|
AppLogNoCidTBC,
|
|
@@ -162,7 +163,7 @@ import {
|
|
|
162
163
|
withAg,
|
|
163
164
|
withPvFrom,
|
|
164
165
|
withTs
|
|
165
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-XWBLRTV5.min.js";
|
|
166
167
|
import {
|
|
167
168
|
BOOL,
|
|
168
169
|
Bool,
|
|
@@ -175,6 +176,7 @@ import {
|
|
|
175
176
|
arrayIfSingle,
|
|
176
177
|
checkParityTB
|
|
177
178
|
} from "./chunk-HYMC7W6S.min.js";
|
|
179
|
+
import "./chunk-QO2KMGDN.min.js";
|
|
178
180
|
import "./chunk-KEHU7HGZ.min.js";
|
|
179
181
|
import "./chunk-PHITDXZT.min.js";
|
|
180
182
|
export {
|
|
@@ -332,6 +334,7 @@ export {
|
|
|
332
334
|
updateThreadFromSnapshot,
|
|
333
335
|
variableNameWithoutQuestionmark,
|
|
334
336
|
withAg,
|
|
337
|
+
withBlockCache,
|
|
335
338
|
withPvFrom,
|
|
336
339
|
withTimeout,
|
|
337
340
|
withTs,
|
package/dist/ipfs.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchSnapshotChainUntil
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CWVWWFE3.min.js";
|
|
4
4
|
import {
|
|
5
5
|
carFromBlob,
|
|
6
6
|
collectDagBlocks,
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
makeCarBlob,
|
|
12
12
|
makeCarOut,
|
|
13
13
|
streamReaderToIterable
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NKGFXL72.min.js";
|
|
15
15
|
import "./chunk-QPGEBDMJ.min.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-LHD7NNK6.min.js";
|
|
17
17
|
import {
|
|
18
18
|
MULTICODEC_IPNS_KEY,
|
|
19
19
|
areCidsEqual,
|
|
@@ -29,8 +29,9 @@ import {
|
|
|
29
29
|
prepareForPub,
|
|
30
30
|
toIpnsString,
|
|
31
31
|
tryParseCID
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-XWBLRTV5.min.js";
|
|
33
33
|
import "./chunk-HYMC7W6S.min.js";
|
|
34
|
+
import "./chunk-QO2KMGDN.min.js";
|
|
34
35
|
import "./chunk-KEHU7HGZ.min.js";
|
|
35
36
|
import "./chunk-PHITDXZT.min.js";
|
|
36
37
|
export {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { unmarshalIPNSRecord } from 'ipns';
|
|
2
|
+
import type { CID } from 'multiformats/cid';
|
|
3
|
+
export interface SignedIPNSRecord {
|
|
4
|
+
recordBytes: Uint8Array;
|
|
5
|
+
ipnsName: string;
|
|
6
|
+
value: string;
|
|
7
|
+
sequence: bigint;
|
|
8
|
+
}
|
|
9
|
+
/** Derive IPNS name string (k51...) from Ed25519 private key bytes */
|
|
10
|
+
export declare function ipnsNameFromPrivateKey(privKeyBytes: Uint8Array): string;
|
|
11
|
+
/**
|
|
12
|
+
* Create a signed IPNS record (protobuf wire format).
|
|
13
|
+
* Same bytes can be published to any naming service.
|
|
14
|
+
*/
|
|
15
|
+
export declare function createSignedIPNSRecord(privateKey: Uint8Array, cid: CID, sequence: bigint, lifetimeMs?: number): Promise<SignedIPNSRecord>;
|
|
16
|
+
export { unmarshalIPNSRecord };
|
|
17
|
+
/** A target that can receive a signed IPNS record */
|
|
18
|
+
export interface IPNSPublishTarget {
|
|
19
|
+
name: string;
|
|
20
|
+
publish(ipnsName: string, recordBytes: Uint8Array): Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Resolve current IPNS sequence number from a naming service.
|
|
24
|
+
* Returns null if the name was never published (404).
|
|
25
|
+
* Throws on network/server errors.
|
|
26
|
+
*/
|
|
27
|
+
export declare function resolveIPNSSequence(nameServiceUrl: string, ipnsName: string): Promise<bigint | null>;
|
|
28
|
+
/**
|
|
29
|
+
* Create a signed IPNS record and publish to all configured targets.
|
|
30
|
+
* Resolves sequence from sequenceServiceUrl, creates record once, fans out.
|
|
31
|
+
* Throws if ALL targets fail; warns on partial failure.
|
|
32
|
+
*/
|
|
33
|
+
export declare function publishIPNSRecord(privateKey: Uint8Array, cid: CID, targets: IPNSPublishTarget[], sequenceServiceUrl?: string): Promise<SignedIPNSRecord>;
|
|
34
|
+
//# sourceMappingURL=ipns-record.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ipns-record.d.ts","sourceRoot":"","sources":["../../src/ipns/ipns-record.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuC,mBAAmB,EAAE,MAAM,MAAM,CAAA;AAI/E,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAE3C,MAAM,WAAW,gBAAgB;IAChC,WAAW,EAAE,UAAU,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CAChB;AAED,sEAAsE;AACtE,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,UAAU,GAAG,MAAM,CAGvE;AAED;;;GAGG;AACH,wBAAsB,sBAAsB,CAC3C,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,EACR,QAAQ,EAAE,MAAM,EAChB,UAAU,SAA4B,GACpC,OAAO,CAAC,gBAAgB,CAAC,CAO3B;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAA;AAE9B,qDAAqD;AACrD,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACjE;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CACxC,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA0BxB;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CACtC,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,iBAAiB,EAAE,EAC5B,kBAAkB,SAA8B,GAC9C,OAAO,CAAC,gBAAgB,CAAC,CAuB3B"}
|
package/dist/ipns.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ipns.d.ts","sourceRoot":"","sources":["../src/ipns.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
|